Docsity

Network Layer: Understanding IP Protocols and Addressing in Computer Networks - Prof. Vict, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
Network Layer...
Network and Transport
Protocols #11
Victor S. Frost
Dan F. Servey Distinguished Professor
Electrical Engineering and Computer Science
University of Kansas
2335 Irving Hill Dr.
Lawrence, Kansas 66045
Phone: (785) 864-4833 FAX:(785) 864-7789
http://www.ittc.ku.edu/
Chapter 8
2
Network Layer...
Outline
Principles behind Internet protocols
IP
¾
Addressing
¾
Forwarding
¾
Routing
Examples of Transport Protocols
¾
TCP
¾
UDP
MPLS (Section 10.5)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40

Partial preview of the text

Download Network Layer: Understanding IP Protocols and Addressing in Computer Networks - Prof. Vict and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Network Layer...^1

Network and Transport

Protocols

Victor S. Frost

Dan F. Servey Distinguished Professor Electrical Engineering and Computer Science University of Kansas 2335 Irving Hill Dr. Lawrence, Kansas 66045 Phone: (785) 864-4833 FAX:(785) 864- e-mail: [email protected] http://www.ittc.ku.edu/

Chapter 8

Outline

„ Principles behind Internet protocols

„ IP

¾ Addressing ¾ Forwarding ¾ Routing

„ Examples of Transport Protocols

¾ TCP

¾ UDP

„ MPLS (Section 10.5)

Network Layer...^3

Internetworking

TCP/IP

„ Born out of the ARPA net in the late

1960’s

„ IP Æ Internet Protocol

„ Transport Protocols

¾ TCP Æ Transmission Control Protocol

¾ UDP Æ User Datagram Protocol

„ Open standard, runs on PDA’s, Cell

Phones, PC’s to supercomputers and

others….

Internetworking

TCP/IP: Internet Architecture

„ Application, e.g., FTP, Telnet, e-mail

Simple Mail Transfer Protocol, (SMTP)

„ Service Provider, end-to-end

communications (TCP, UDP or other)

„ Internetwork, functions to connect

networks and gateways into a total

system, (IP)

„ Subnetwork, e.g., ARPANET, Ethernet,

ATM, Frame Relay, Wireless, others…

Network Layer...^7

Internet Design Principles

„ Make sure it works ¾ Do prototypes ¾ Do not wait until standard documents are completed „ Keep it Simple „ Make clear choicesÆ avoid multiple ways of accomplishing the same thing „ Exploit Modularity Æ protocol layers „ Expect Heterogeneity ¾ Hardware ¾ OSs ¾ Transmission facilities ¾ Applications

From: “Computer Networks, 4rd Edition, A.S. Tanenbaum. Prentice Hall, 2002

Internet Design Principles

„ Avoid static options and parametersÆ best to

negotiate or adapt

„ Look for “good” design not optimum

„ Be strict when sending and tolerant when

receiving

„ Scalability

¾ # users ¾ Geographic scope ¾ Transmission speeds

„ Consider performance and cost

Network Layer...^9

IP Hourglass Architecture

From: Steve Deering http://www.iab.org/Documents/hourglass-london-ietf.pdf

Host

Access

Network Layer...^10

IP Hourglass Architecture

„ Why an internet layer?

¾ make a bigger network ¾ global addressing ¾ virtualize network to isolate end-to-end protocols from network details/changes

„ Why a single internet protocol?

¾ maximize interoperability ¾ minimize number of service interfaces

„ Why a narrow internet protocol?

¾ assumes least common network functionality to maximize number of usable networks

From: Steve Deering http://www.iab.org/Documents/hourglass-london-ietf.pdf

Network Layer...^13

Internetworking: IP

IP is connectionless

„ No call set up

„ PDU’s may be lost

„ Hides the subnet technology

from the application to allow

the use of many different

subnet technologies

Network Layer...^14

Internetworking: IPv

IP packet header

From: “Computer Networks, 3rd Edition, A.S. Tanenbaum. Prentice Hall, 1996

If no options then routers use “fast path” through hardware

Network Layer...^15

Internetworking: IP

IP packet header-IPv

„ Version, enable transition between different

versions of IP datagrams

„ IHL= Number of 32 bit words in the header

„ ToS= Type of Service, enables the use of

priority queuing, basis for IP DiffServ

„ Maximum length of IP datagram (including

header) = 65,535 bytes

„ TTL field decremented at each hop if 0 then

drop packet

„ Header Checksum verifies header only

Network Layer...^16

Header Checksum

„ IP header uses check bits to detect

errors in the header

„ A checksum is calculated for header

contents

„ Checksum recalculated at every router,

so algorithm selected for ease of

implementation in software

„ Let header consist of L, 16-bit words,

b 0 , b 1 , b 2 , ..., b L-

„ The algorithm appends a 16-bit

checksum b L

From: Communication Networks:Fundamentals Concepts and Key Architectures Authors: A. Leon-Garcia and I. Widjaja

Network Layer...^19

Differentiated Services- Concept

„ Differentiated Services provide a wide range of

services through: ¾ Setting bits in the ToS at network edges and administrative boundaries, ¾ Using those bits to determine how packets are treated (Queued) by the routers inside the network, and ¾ Conditioning the marked packets at network boundaries in accordance with the requirements of each service.

Internetworking: IP Services

„ Fragmentation and reassembly

¾If PDU size > MTU(Maximum

Transfer Unit) for subnet the IP

must fragment the PDU and

reassemble at the destination

–ATM AAL 5 64 K PDU’s

– Ethernet ~1500 byte PDU's

Network Layer...^21

Internetworking:

IP Addressing

„ Every host and router interface has an IP address „ 32 bits/address Î 4.295x10 9 addresses (IPv4) „ 128 bits/address Î 3.4x10 34 addresses (IPv6) „ Addresses contains ¾ Host ID

  • Identifies a unique host on a network ¾ Network ID
  • Identifies the network that the host is connected to ¾ Initially five formats for IP addresses ( Classfull IP Addressing)

Net_id (^) [Net_id, Host_id]

Network Layer...^22

Internetworking:

Classfull IP Addressing

From: “Computer Networks, 3rd Edition, A.S. Tanenbaum. Prentice Hall, 1996

Network Layer...^25

Internetworking:

Classfull IP Addressing Notation

From: Understanding IP Addressing: Everything You Ever Wanted To Know By Chuck Semeria http://www.3com.com/nsc/501302.html

Class B Address

Network Address (^) Host Address

Network Layer...^26

Internetworking:

Classfull IP Addressing Notation

From: Understanding IP Addressing: Everything You Ever Wanted To Know By Chuck Semeria http://www.3com.com/nsc/501302.html

The "xxx" represents the host-number field

of the address which is assigned by the local

network administrator.

Network Layer...^27

Internetworking:

Classfull IP Addressing

„ Identification of class

¾ Class A 1 - 126

  • /8 Prefixes -- 8-bit network-prefix with the highest order bit set to 0 and a seven-bit network number, followed by a 24-bit host- number. ¾ Class B 128 - 191
  • /16 Prefixes -- Each Class B network address has a 16-bit network-prefix with the two highest order bits set to 1-0 and a 14-bit network number, followed by a 16-bit host-number. ¾ Class C 192 - 223
  • /24 -- Prefixes Each Class C network address has a 24-bit network-prefix with the three highest order bits set to 1-1-0 and a 21-bit network number, followed by an 8-bit host-number.

First Octet Rule

Modified from: https://www.ict.tuwien.ac.at/skripten/datenkomm/infobase/L30-IP_Technology_Basics_v4-6.pdf

Network Layer...^31

Internetworking: Subnetting

From: Understanding IP Addressing: Everything You Ever Wanted To Know By Chuck Semeria http://www.3com.com/nsc/501302.html

To identify the Subnet the router uses a “subnet mask” Subnet mask has a “1” in each bit position of the address except the host ID

Logical AND to find network prefix

Internetworking: Subnetting

„ Base Net: 11000001.00000001.00000001 .00000000 = 193.1.1.0/ „ Subnet #0: 11000001.00000001.00000001.000 00000 = 193.1.1.0/ „ Subnet #1: 11000001.00000001.00000001.001 00000 = 193.1.1.32/ „ Subnet #2: 11000001.00000001.00000001.010 00000 = 193.1.1.64/ „ Subnet #3: 11000001.00000001.00000001.011 00000 = 193.1.1.96/ „ Subnet #4: 11000001.00000001.00000001.100 00000 = 193.1.1.128/ „ Subnet #5: 11000001.00000001.00000001.101 00000 = 193.1.1.160/ „ Subnet #6: 11000001.00000001.00000001.110 00000 = 193.1.1.192/ „ Subnet #7: 11000001.00000001.00000001.111 00000 = 193.1.1.224/

Subnet Number

Network Layer...^33

Internetworking: CIDR

„ Classless Interdomian Routing (CIDR)

„ Removes the classful address restriction

„ Extends the concept of subnetting to routers

inside the Internet

„ Partially relieves address exhaustion, allows

more efficient use of IPv4 address space

„ Supports deployment of arbitrarily sized

networks

„ Aggregation allows reduction in the size of

routing tables

From: Understanding IP Addressing: Everything You Ever Wanted To Know By Chuck Semeria http://www.3com.com/nsc/501302.html

Possible Subnet Mask Values

Modified from: https://www.ict.tuwien.ac.at/skripten/datenkomm/infobase/L30-IP_Technology_Basics_v4-6.pdf

Network Layer...^37

Internetworking:

IP Addressing

„ Indirection

¾ Multiple names may point to same address ¾ Can move a machine and just update the resolution table

„ Names also constructed in hierarchy

„ Domain name system (DNS) contain tables to

convert:

  • host.department.institution.domain to a 32-bit address

Internetworking:

IP Addressing-Common Domains

„ Top level domains to naming authorities (see Internet Corporations for Assigned Names and Numbers- ICANN; http://www.icann.org) ¾. edu ¾ .com ¾ .mil ¾ .org ¾ .gov ¾ .net ¾ .biz ¾ .{country} .il, .uk, .au „ DNS is a real time distributed data base „ Records in the DNS database include: ¾ A Æ Maps name to IP ¾ PTR (pointer) Æ Maps name to name (alias) ¾ MX (mail exchange) Æ Maps name to name of mail server

Network Layer...^39

Internetworking:

„ IP Addressing ->Example

gauss.eecs.ku.edu=> 129.237.125.

„ A different IP address can be assigned to each

physical interface on a host, note a physical

interface will have a unique physical address,

for IEEE 802.3 this is a 48-bit number

„ A host can have multiple IP addresses:

multihomed

Internetworking:

IP

newton [32] % ping armstrong ---PING Host= [129.237.125.77]: ICMP echo 56 data bytes Fri Dec 26 14:23:07 1997 armstrong.ittc.ukans.edu [+1 Secs] Echo Reply: Seq=1 CumLoss=0 RTT=2 ms [+2 Secs] Echo Reply: Seq=2 CumLoss=0 RTT=1 ms [+3 Secs] Echo Reply: Seq=3 CumLoss=0 RTT=1 ms [+4 Secs] Echo Reply: Seq=4 CumLoss=0 RTT=1 ms Fri Dec 26 14:23:14 1997 armstrong.ittc.ukans.edu ---PING Stats--- Host= [129.237.125.77] 64 byte packets Elapsed= 7 Secs Sent= 6 CumLoss= 0 RTT: 1Min 1Avg 2Max ms

(ms)| Count - HISTOGRAM : 50| 6 XXXXXX 150| 0 Each X = 1 counts