1
CS 4410 Operating Systems
Networking: Network Layer
Summer 2013 Cornell University
Networking: Network Layer Summer 2013 Cornell University 1 Today - - PowerPoint PPT Presentation
CS 4410 Operating Systems Networking: Network Layer Summer 2013 Cornell University 1 Today How packages are exchanged in a WAN? Network Layer IP Naming Subnetwork Forwarding Routing Algorithms 2 Protocol Stack
1
Summer 2013 Cornell University
2
3
Application Link Physical Application Link Physical Computer A Computer B Transport Transport Network Network M M Ht M Ht Hn M Ht Hn Hl Message Segment Datagram Frame
4
5
computer.
6
–
The Network Layer finds the path from the source to the destination.
–
Reserve resources for the virtual circuit.
–
Packets pass through the virtual circuit.
–
Release resources.
address and it is routed independently in the network.
address to forward the packet towards the destination-computer.
7
Version Header Length Type of service Length Identification Flags Fragment Offset Time to live Protocol Header Checksum Source IP Address (32-bit) Destination IP Address Options Data
8
–
Example: For the address 140.251.27.18 we know that:
140.251.xxx.xxx. → subnetwork address 140.251.0.0/16, mask 255.255.0.0
department is 140.251.27.xxx. → subnetwork address 140.251.27.0/24, mask 255.255.255.0
subnetwork of Linguistics.
server to obtain an IP address.
9
223.1.1.1 223.1.1.2 223.1.1.3 223.1.1.4 223.1.2.9 223.1.3.27 223.1.3.1 223.1.3.2 223.1.2.1 223.1.2.2
10
223.1.1.0, 255.255.255.0, 0 223.1.3.0, 255.255.255.0, 1 223.1.2.0, 255.255.255.0, 2
packet to go from the gateway 1 to the destination.
11
routing table?
path from the source to the destination.
routers.
the distance.
router V1 and the destination to the router V2, what is the shortest path between V1 and V2? 2 1 2 3 1 1 2 5 3 V1 V2 5
12
–
Returns the shortest path between one node and all the other nodes.
between nodes.
–
Returns the shortest path from all nodes to all nodes.
13
Computer A Application Link Physical Application Link Physical Computer B Transport Transport Network Network Link Physical Switch Link Physical Switch Link Physical Router Network
14
Switch Router
15