330 likes | 448 Views
Mohamed Esam. Internet Technology NETW 902 Tutorial 6. Curriculum. First 3 Chapters Chapter 4: from the chapter start (page 255) up to (page 372) Chapter 5: from page 491 to 554 . Main Points for Problems. Ch’s 1&2 Till page: 200. ALOHA Slotted ALOHA CSMA/CD
E N D
Mohamed Esam Internet TechnologyNETW 902Tutorial 6
Curriculum • First 3 Chapters • Chapter 4: from the chapter start (page 255) up to (page 372) • Chapter 5: from page 491 to 554
Main Points for Problems Ch’s 1&2 Till page: 200 • ALOHA • Slotted ALOHA • CSMA/CD • Token Ring, Token BUS & Ring Types. (last Tutorial) • BUS Segments • WLAN • FDDI • Spanning Tree • Performance of (Aloha, CSMA & Token Ring) • SONET/SDH • ATM • Virtual Connections • ISDN • Dial up • DSL Ex.1: LAN-Inter working & Spanning Tree Ex.2: MAC protocols Performance Ch’s 3 Till page: 255 Ex.3: IP Addressing, ATM & Access Networks
Internet Arch. & IP Addressing. • ARP • MTU • Routing Functions • Forwarding • Routing Principles • Distance Vector Algor. • Link State Algor. • Path Vector Algor. • Routing in Internet. • Internet Routing Protocols • ARQ • UDP • TCP • QoS Some of Ch’s 4&5 Till page: 554 Ex.4: Distance Vector & Link State Routing Ex.5: TCP
In Star Network 10.10.10.1 PC1 PC2 10.10.10.2 • Switch is the responsible device in the network for ARP. • It’s done one time after connection and then updated regularly Send data to 10.10.10.3 Data 10.10.10.3 PC3 Internet Switch Router My MAC is 3B Who has IP 10.10.10.3, reply With MAC Address to MAC:8A IP:10.10.10.0 PC4 10.10.10.4 PC5 10.10.10.5
MTU (Maximum Transmission Unit) • Sender doesn’t send larger than MTU of the used Technology. • Routers may divide the payload into smaller data units while forwarding.
Dynamic Routing Update Routing Table periodically
I- Distance Vector Algorithm • Bellman Ford Algorithm. 7 N2 N3 8 N4 6 1 5 N5 N6 4 N6 is the Destination 2 N7 N1 3 Link ID
N6 is the Destination 7 N2 N3 8 Assumes whole links have the same cost (=1). So Total path cost = number of hops. In case of same cost select randomly. Not Unique Solution N4 6 1 5 N5 N6 4 2 N7 Distance (No. of hops) Link No. N1 3
7 N2 N3 8 N4 N6 is the Destination 6 1 5 N5 N6 4 2 N7 Distance (No. of hops) Link No. Shorter than (4, 2) N1 3
7 N2 N3 8 N4 N6 is the Destination 6 1 5 N5 N6 4 2 N7 Shorter than (4, 2) Shorter than (7,3) N1 3
Repeat with All destinations Get the routing Table • N7 to All Destinations
Q3-c • Looping (Count to Infinity)
II- Link State Algorithm • Discover the neighbours: • Measure the cost to each neighbour • Flooding: Send Link State packet to all routers saying the new information; includes: • Sender ID • Packet Sequence No. (32 bits) • Packet age (TTL) • List of neighbours and corresponding Cost. • Compute shortest path to all routers using Dijkstra algorithm. Echo (Round Trip) packet
Part 2- Exerc.4 2 B 2 B 4 C 4 C 3 1 3 1 1 1 D 6 1 1 1 D 6 1 12 12 4 A 1 4 E A 1 E 5 5 Cost Link ID
A- If Duplicate Messages are not avoided 2 B 4 2 C B 3 4 1 C 3 1 1 D 1 6 1 1 1 12 D 6 1 4 12 A 1 E 4 5 A 1 E
B- Link State Database 2 B 4 C 3 1 1 1 D 6 1 12 4 A 1 E 5 Link ID Cost
C- • Using Time Stamps (Synchronized routers) • Using Seq. Number: • 32 bits address to avoid Wrap around problem. • Incremented with every new message
D- Apply Dijkstra 2 B 4 C 3 1 1 1 D 6 1 12 4 A 1 E 5 Cost Link ID
D- Apply Dijkstra Doesn’t Send to the Source Node (A) 2 B 4 C 3 1 1 1 D 6 1 12 4 A 1 E 5 Cost Link ID
D- Apply Dijkstra 2 B 4 C 3 1 1 1 D 6 1 12 4 A 1 E 5 Cost Link ID
D- Apply Dijkstra 2 B 4 C 3 1 1 1 D 6 1 12 4 A 1 E 5 Cost Link ID