The Netwok Layer IPv4 and IPv6 Part 1

Size: px
Start display at page:

Download "The Netwok Layer IPv4 and IPv6 Part 1"

Transcription

1 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 1 Jean Yves Le Boudec

2 Contents 1. The Two Principles of IP Unicast 2. IPv4 addresses 3. IPv6 addresses 4. NATs 5. Subnets and Masks Textbook Chapter 5: The Network Layer 2

3 IP Principle #1 = Structured addresses + Longest prefix match Recall goal of Internet Protocol (IP) = interconnect all systems in the world Principle #1: every interface has an IP address IP address is structured to reflect where the system is in the world every packet contains IP address of destination every system has a forwarding table ( = routing table) and performs longest prefix match on address destination 3

4 4 Forwarding table Lisa A.H1 Forwarding table to output B.* 2 A.* 0 1 to output A.* 1 B.D.* 2 B.* router R1 router R2 router R3 to: B.D.H2 Forwarding table 2 to output A.* 1 B.D.* 1 B.C.* 0 Homer B.C.H2 to output A.* 1 B.* 2 1 router R4 2 Bart B.D.H2 Forwarding table

5 IP Principle #2 = Don t use routers inside a LAN B W WiFi base station P E Ethernet concentrator B E and W P should not go through router W E goes through router Terminology: LAN = subnet IP principle 2 says: between subnets use routers, inside subnet don t 5

6 We observe a packet from W to P at 1. Which IP destination address do we see? 1 58% 9% 31% 1% 1. The IP address of P 2. The IP address of an Ethernet interface of the Ethernet concentrator 3. There is no destination IP address in the packet since communication is inside the subnet and does not go through a router 4. I don t know The IP address of P ess of an Ethernet... destination IP a... I don t know 6

7 The Internet Protocol (IP) Communication between IP hosts requires knowledge of IP addresses An IP address is unique across the whole network (= the world in general) An IP address is the address of an interface There are two versions: IPv4 (current version) and IPv6 (next version) There are two network layers: Internet4 and Internet6 Terminology: packet = IP data unit intermediate system = system that forwards data units to another system; an IP intermediate system is called a router an IP system that does not forward is called a host 7

8 2. IPv4 addresses IPv4 address Uniquely identifies one interface in the world (in principle) An IPv4 address is 32 bits, usually noted in dotted decimal notation dotted decimal: 4 integers (one integer = 8 bits) example 1: example 2: hexadecimal: 8 hexa digits (one hexa digit = 4 bits) example 1: x80 bf example 2: x81 c binary: 32 bits example 1: b example 2: b

9 Binary, Decimal and Hexadecimal Given an integer B the basis : any integer can be represented in base B by means of an alphabet of B symbols Usual cases are decimal: 234 binary: hexadecimal: ea Mapping binary < > hexa is simple: one hexa digit is 4 binary digits e = 1110 a = 1010 ea = b Mapping binary < > decimal is best done by a calculator = = 234 Special Cases to remember f = 1111 = 15 ff = = 255 9

10 Example lrcsuns :00:20:71:0D:D4 lrcpc :00:C0:B8:C2:8D in-inr :00:0C:02:78: :00:0C:17:32:96 ed2-in in-inj LRC Ring SIDI SUN DI ed0-swi ed0-ext EPFL-Backbone sic500cs Modem + PPP disun :00:20:20:46:2E stisun sw-la sw-zu-03 Switch ezci7-ethz-switch x.x ed2-el :00:07:01:a2:a5 LEMA :00:07:01:a2:a5 ezci7-ethz-switch Komsys ETHZ-Backbone lrcmac4 lrcmac4

11 11 Network Prefix Network prefixes are used in routing tables /24 is the prefix length in bits Extract from routing table at sw-la Destination Next hop / / Extract from routing table at ed0-swi Destination Next hop / / /

12 12 Special Addresses absence of address /24 this host (loopback address) for example /8, /12, /16 private networks (e.g in IEW) cannot be used on the public Internet /16 link local address (can be used only between systems on same LAN) 224/4 multicast 240/5 reserved /32 link local broadcast

13 IPv4 Packet Format Higher layer protocol 1= ICMP, 6 = TCP, 17 = UDP) Header 20 bytes (+ options, if any) payload We will see the functions of the fields other than the addresses in a following module 13

14 14 3. IPv6 Addresses The current IP is IPv4. IPv6 is the next version of IP Why a new version? IPv4 address space is too small (32 bits 4 10 addresses ) What does IPv6 do? Redefine packet format with a larger address: 128 bits ( 3 10 addresses) Otherwise essentially the same as IPv4 IPv6 is incompatible with IPv4; routers and hosts must handle both separately A can talk to W, B can talk to W, A and B cannot communicate Web browser W Application IPv6 TCP MAC IPv4 Dual Stack Local router IPv6 MAC IPv4 B HTTP TCP IPv6 A HTTP TCP IPv4

15 15 Routing Tables at ed0 swi IP address of next hop lrcsuns :00:20:71:0D:D4 Destination Next hop 2001:620:618:1a4/64 fe80::1%1 2001:620:618/48 fe80::4%2 ::/0 fe80::1% sw-la :620:618:10a::1 fe80::1 %1 stisun1 ed0-ext ed0-swi % :620:618:10b::1 2001:620:618:1a6:1:80b2:f66:1 fe80:: ed2-in :620:618:1ac::3 2001:620:618:1ac:: in-inr in-inj 2001:620:618:1ac:: DI :620:618:1ad::1 2001:620:618:1ab::1 00:00:0C:02:78:36 00:00:0C:17:32:96 LRC interface number :620:618:10b::4 fe80::4 ed2-el :620: 618:1a4::1 lrcpc :00:C0:B8:C2:8D lrcmac4 2001:620:618:1ad:0a00:20ff:fe78:30f9 08:00:20:78:30:F9

16 16 IPv6 addresses are 128 bit long and are written using hexadecimal digits an EPFL public address: 2001:620:618:1a6:0a00:20ff:fe78:30f9 an EPFL private address: fd24:ec43:12ca:1a6:0a00:20ff:fe78:30f9 This is a private address EPFL private

17 17 Compression Rules for IPv6 Addresses 1 piece = 16 bits = [0 4 ]hexa digits; leading zeroes in one piece are omitted ; prefer lower case pieces separated by : (colon) one IPv6 address uncompressed = 8 pieces :: replaces any number of 0s in more than one piece; appears only once in address uncompressed 2002:0000:0000:0000:0000:ffff:80b2:0c :0620:0618:01a6:0000:20ff:fe78:30f9 compressed 2002::ffff:80b2:c :620:618:1a6:0:20ff:fe78:30f9

18 18 A Few IPv6 Global Unicast Addresses The block 2000/3 (i.e. 2xxx and 3xxx) is allocated for global unicast addresses 2001:620::/32 Switch 2001:620:618::/48 EPFL 2001:620:8::/48 ETHZ 2a02:1200::/27 Swisscom 2001:678::/29 provider independent address 2001::/32 Teredo 2002::/16 6to4

19 19 Examples of Special Addresses EPFL Private fc00::/7 (i.e. fcxx: and fdxx:) For example fd24:ec43:12ca:1a6:a00: 20ff:fe78:30f9 fe80::/10 ::/128 absence of address ::1/128 this host (loopback address) Unique local addresses = private networks (e.g in IEW) cannot be used on the public Internet link local address (can be used only between systems on same LAN) ff00::/8 multicast ff02::1:ff00:0/104 Solicited node multicast ff02::1/128 ff02::2/128 link local broadcast all link local routers

20 IPv6 Packet Format e.g. Higher layer protocol 1= ICMP, 6 = TCP, 17 = UDP) 16 bytes Header 40 bytes (+ options, if any) We will see the functions of the fields other than the addresses in a following module payload 20

21 The dotted decimal notation for is I don t know 93% 4% 3% I don t know 21

22 The hexadecimal notation «2001::bad:babe» bits bits bits bits bits 6. None of the above 7. I don t know denotes a string of 0% 0% 0% 0% 0% 0% 0% 32 bits 44 bits 48 bits 64 bits 128 bits None of the above I don t know 22

23 4. NATs: Why invented? (Network Address Translation boxes) Goal: re use same IP address for several devices / use private addresses This is a special type of «middle box», that is violating the TCP/IP architecture Used in residential networks («ADSL Modem») Used in companies to save IP addresses 23

24 How does Network Address Translation Work? NAT box modifies IP address and port numbers (port numbers are in TCP and UDP headers see transport protocol module) Exact matching from NAT Table Implemented by iptables on Linux iptables modifies the TCP and IP headers before ( prerouting ) or after ( postrouting ) To: UDP : 1029 To: UDP : 3441 To: UDP : 1029 To: UDP : 3442 LAN IPv 4 NAT box LAN Internet udp udp udp udp 3442 NAT table 24

25 25 Creating a NAT table entry: on the fly From: TCP : 1765 To: Port 80 From: TCP : 2343 To: Port 80 LAN IPv 4 NAT box LAN Internet udp udp udp udp tcp tcp 2343 NAT table

26 Why some applications don t work with NATs S NAT Assume A behind a NAT and S in the internet Communication between A and S must be initiated by A «punch a hole through the NAT» If A and S are both behind a NAT (e.g. with voice over IP), we have a bootstrap problem A does not know its IP address as seen by S Solving this requires a third party this is what made Skype s fortune Cone or restricted NATs: third party used only to discover translated address Symmetric NAT: third party relays all traffic 26

27 When a NAT has a packet to forward and an association exists in the NAT table A. The NAT looks for a longest prefix match 82% B. The NAT looks for an exact match C. None of the above The NAT looks for a longest. 13% The NAT looks for an exact.. None of the above 3% I don t know 1% D. I don t know 27

28 From WAN to LAN, the NAT may modify A. The source port B. The destination port C. None of the above D. I don t know 65% 24% 9% 1% 28 The source port The destination port None of the above I don t know

29 Solution To: TCP : 2343 To: TCP : 1765 From LAN to WAN, the NAT modifies source port and source address From WAN to LAN, the NAT modifies destination port and destination address 29

30 5. Subnets and Masks Recall the IP principles: longest prefix match + routers between subnets only An IP system needs to know (in its forwarding table) which addresses are in same LAN as self ( = on link ) ed2 in has an IPv4 packet to destination address : packet is sent directly to : packet is sent to in inr This is done using the subnet mask dest next-hop interface /24 On-link eth /24 On-link eth /24 On-link eth / eth / eth1 30

31 One IP subnet must correspond to one network part An IP address is usually interpreted a network part a host part :620:618:1a6:0a00:20ff:fe78:30f9 Network part identifies subnet One subnet = one LAN All hosts in same LAN must have same network part The size of the network part may vary EPFL IPv4 network part is 24 bits ETHZ IPv4 network part 26 bits IPv6 network part is very often 64 bits 31

32 32 A system computes its network part from its IP address using the subnet mask, configured with the address = string of bits equal to 1 in network part, to 0 in host part network == IP address && mask At EPFL, IPv4 mask = and are on same subnet because && = && = IPv6 mask is very often 64 bits i.e. = ffff:ffff:ffff:ffff:: Subnet Mask The notation /<length of network part> is also used We could use the notation /24 instead of

33 Same as saying Mask = ffff:ffff:ffff:ffff:: 33

34 34 IPv4 address classes Long ago, IPv4 addresses had a class subnet mask was not necessary class A class B class C class D class E Net Id Subnet Id Host Id 10 Net Id Subnet Id Host Id 110 Net Id Host Id 1110 Multicast address Reserved This is now obsolete but many people continue to use it. Class A B C D E Range to to to to to

35 bridge? ?? ? X? bridge host A Can Host A have this address? Masks are all Yes 2. No 3. I don t know 19% 71% 10% es o w 35

36 The IPv4 Subnet Mask at ETHZ is ffff:ffff:ffff:ffff:: 8. ffff:ffff:ffff:ffff:c000:: 9. I don t know 15% 3% 9% 63% 1% 0% 0% 3% 6% ffff:ffff:ffff:ffff:: ffff:ffff:ffff:ffff:c000:: I don t know

37 The IPv6 Subnet Mask at ETHZ is /48 7. ffff:ffff:ffff:ffff:: 8. ffff:ffff:ffff:ffff:c000:: 9. I don t know 0% 0% 0% 0% 0% 0% 0% 0% 0% /48 ffff:ffff:ffff:ffff:: ffff:ffff:ffff:ffff:c000:: I don t know

38 Solution The subnet mask at ETHZ for IPv4 is 26 bits, i.e., in binary in dotted decimal, this is For IPv6 it is 64 bits (the most frequent case), i.e. ffff:ffff:ffff:ffff:: 38

39 What is the subnet broadcast address for subnet /26? I don t know 0% 0% 0% 0% 0% 0% I don t know

40 Solution The subnet address is 26 bit long and is The subnet broadcast address is obtained by setting the host part (i.e. the last 6 bits) to all 1 s. The last byte is replace the last 6 bits of the last byte by = 63 the last byte of the subnet broadcast address is 63 The subnet broadcast address is

41 Conclusion The network layer (= IP) is the center piece of communication networks IP is built on two principles: one IP address per interface and longest prefix match; this allows to compress routing tables by aggregation inside subnet, don t use routers There are (unfortunately) two versions of IP, IPv4 and IPv6; they are not compatible interworking requires some tricks (see later). NATs came as an after thought and add a different principle than IP unicast (exact match versus longest prefix match) are widely deployed NATs hide IP addresses and complicate the operation of networks 41

The Netwok Layer IPv4 and IPv6 Part 1

The Netwok Layer IPv4 and IPv6 Part 1 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 1 Jean Yves Le Boudec 2015 1 Contents 1. The Two Principles of IP Unicast 2. IPv4 addresses 3. IPv6 addresses 4. NATs 5. Subnets

More information

The Netwok Layer IPv4 and IPv6 Part 1

The Netwok Layer IPv4 and IPv6 Part 1 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 1 Jean Yves Le Boudec 2017 1 Contents 1. The Two Principles of IP Unicast 2. IPv4 addresses 3. IPv6 addresses 4. NATs 5. Subnets

More information

The Netwok Layer IPv4 and IPv6 Part 1

The Netwok Layer IPv4 and IPv6 Part 1 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 1 Jean Yves Le Boudec 2014 1 Contents 1. The Two Principles of IP Unicast 2. IPv4 addresses 3. IPv6 addresses 4. Subnets and

More information

The Netwok Layer IPv4 and IPv6 Part 1

The Netwok Layer IPv4 and IPv6 Part 1 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 1 Jean Yves Le Boudec 2014 1 Contents 1. The Two Principles of IP Unicast 2. IPv4 addresses 3. IPv6 addresses 4. Subnets and

More information

The Netwok Layer IPv4 and IPv6 Part 2

The Netwok Layer IPv4 and IPv6 Part 2 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 2 Jean Yves Le Boudec 2014 1 Contents 6. ARP 7. Host configuration 8. IP packet format Textbook Chapter 5: The Network Layer

More information

Computer Networks Principles Network Layer - IP

Computer Networks Principles Network Layer - IP Computer Networks Principles Network Layer - IP Prof. Andrzej Duda duda@imag.fr http://duda.imag.fr 1 Network Layer Overview: Datagram service IP addresses Packet forwarding principles Details of IP 2

More information

The Netwok 15 Layer IPv4 and IPv6 Part 3

The Netwok 15 Layer IPv4 and IPv6 Part 3 1 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok 15 Layer IPv4 and IPv6 Part 3 Jean Yves Le Boudec 2015 Contents 1. Fragmentation 2. Interworking h4 h6 with NATs 3. Proxy ARP Textbook Chapter 5: The

More information

The Netwok Layer IPv4 and IPv6 Part 2

The Netwok Layer IPv4 and IPv6 Part 2 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 2 Jean Yves Le Boudec 2015 1 Contents 6. ARP 7. Host configuration 8. IP packet format Textbook Chapter 5: The Network Layer

More information

The Network 15 Layer IPv4 and IPv6 Part 3

The Network 15 Layer IPv4 and IPv6 Part 3 1 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Network 15 Layer IPv4 and IPv6 Part 3 Jean Yves Le Boudec 2017 Contents 9. Proxy ARP 10. Fragmentation 11. Interworking h4 h6 with NATs Textbook Chapter 5:

More information

The TCP/IP Architecture. Jean Yves Le Boudec 2015

The TCP/IP Architecture. Jean Yves Le Boudec 2015 The TCP/IP Architecture Jean Yves Le Boudec 2015 Objective Understand Layered Model of Communication Systems Know what MAC, IP addresses and DNS names are Chapter 2: Introduction Textbook 2 Why? TCP/IP

More information

The TCP/IP Architecture. Jean Yves Le Boudec 2015

The TCP/IP Architecture. Jean Yves Le Boudec 2015 The TCP/IP Architecture Jean Yves Le Boudec 2015 Objective Understand Layered Model of Communication Systems Know what MAC, IP addresses and DNS names are Chapter 2: Introduction Textbook 2 Why? TCP/IP

More information

The TCP/IP Architecture. Jean Yves Le Boudec 2017

The TCP/IP Architecture. Jean Yves Le Boudec 2017 The TCP/IP Architecture Jean Yves Le Boudec 2017 Objective Understand Layered Model of Communication Systems Know what MAC, IP addresses and DNS names are Textbook Chapter 2: Introduction of edition 1

More information

The TCP/IP Architecture. Jean Yves Le Boudec 2015

The TCP/IP Architecture. Jean Yves Le Boudec 2015 The TCP/IP Architecture Jean Yves Le Boudec 2015 Objective Understand Layered Model of Communication Systems Know what MAC, IP addresses and DNS names are Chapter 2: Introduction Textbook 2 Why? TCP/IP

More information

The TCP/IP Architecture. Jean Yves Le Boudec 2017

The TCP/IP Architecture. Jean Yves Le Boudec 2017 The TCP/IP Architecture Jean Yves Le Boudec 2017 Objective Understand Layered Model of Communication Systems Know what MAC, IP addresses and DNS names are Textbook Chapter 2: Introduction of edition 1

More information

IP Multicast Jean Yves Le Boudec 2014

IP Multicast Jean Yves Le Boudec 2014 IP Multicast Jean Yves Le Boudec 2014 1 IP Multicast Unicast = send to one destination Multicast = send to a group of destinations IP has multicast addresses: IPv4 : 224.0.0.0 to 239.255.255.255; IPv6:

More information

The TCP/IP Architecture Jean Yves Le Boudec 2014

The TCP/IP Architecture Jean Yves Le Boudec 2014 The TCP/IP Architecture Jean Yves Le Boudec 2014 Objective Understand Layered Model of Communication Systems Know what MAC, IP addresses and DNS names are Chapter 2: Introduction Textbook 2 TCP/IP is a

More information

The TCP/IP Architecture Jean Yves Le Boudec 2014

The TCP/IP Architecture Jean Yves Le Boudec 2014 The TCP/IP Architecture Jean Yves Le Boudec 2014 Objective Understand Layered Model of Communication Systems Know what MAC, IP addresses and DNS names are Chapter 2: Introduction Textbook 2 TCP/IP is a

More information

The Netwok Layer IPv4 and IPv6 Part 2

The Netwok Layer IPv4 and IPv6 Part 2 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 2 Jean Yves Le Boudec 2017 1 Contents 6. Host configuration 7. ARP 8. IP packet format, HL and TTL Textbook Chapter 5: The Network

More information

Internet Protocol Addressing and Routing. Redes TCP/IP

Internet Protocol Addressing and Routing. Redes TCP/IP Internet Protocol Addressing and Routing Redes TCP/IP Internet Topology Internet - WAN Gateway or router Physical Network (LAN) internet LAN LAN LAN Dotted Decimal Notation 2 7 2 6 2 5 2 4 2 3 2 2 2 1

More information

IP Multicast Jean Yves Le Boudec 2015

IP Multicast Jean Yves Le Boudec 2015 IP Multicast Jean Yves Le Boudec 2015 1 IP Multicast Unicast = send to one destination Multicast = send to a group of destinations IP has multicast addresses: IPv4 : 224.0.0.0 to 239.255.255.255; IPv6:

More information

Tunnels. Jean Yves Le Boudec 2015

Tunnels. Jean Yves Le Boudec 2015 Tunnels Jean Yves Le Boudec 2015 1. Tunnels Definition: a tunnel, also called encapsulation occurs whenever a communication layer carries packets of a layer that is not the one above e.g.: IP packet in

More information

Tunnels. Jean Yves Le Boudec 2015

Tunnels. Jean Yves Le Boudec 2015 Tunnels Jean Yves Le Boudec 2015 1. Tunnels Definition: a tunnel, also called encapsulation occurs whenever a communication layer carries packets of a layer that is not the one above e.g.: IP packet in

More information

Tunnels. Jean Yves Le Boudec 2014

Tunnels. Jean Yves Le Boudec 2014 Tunnels Jean Yves Le Boudec 2014 2 Menu Today: lecture Tunnels, 6to4 Link State Routing Tomorrow 11:15 12:15 Last clicker test How TOR works (presentation of best research exercise award) No lab Lab 3

More information

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William Dr. John Keeney 3BA33 TCP/IP protocol architecture with IP OSI Model Layers TCP/IP Protocol Architecture Layers TCP/IP Protocol Suite Application Layer Application Layer Telnet FTP HTTP DNS RIPng SNMP

More information

OSI Data Link & Network Layer

OSI Data Link & Network Layer OSI Data Link & Network Layer Erkki Kukk 1 Layers with TCP/IP and OSI Model Compare OSI and TCP/IP model 2 Layers with TCP/IP and OSI Model Explain protocol data units (PDU) and encapsulation 3 Addressing

More information

Computer Networking. Network Layer - IP. Prof. Andrzej Duda

Computer Networking. Network Layer - IP. Prof. Andrzej Duda Computer Networking Network Layer - IP Prof. Andrzej Duda duda@imag.fr http://duda.imag.fr 1 The transport layer relies on the services of the network layer, which provides a communication service between

More information

TCP/IP Protocol Suite and IP Addressing

TCP/IP Protocol Suite and IP Addressing TCP/IP Protocol Suite and IP Addressing CCNA 1 v3 Module 9 10/11/2005 NESCOT CATC 1 Introduction to TCP/IP U.S. DoD created the TCP/IP model. Provides reliable data transmission to any destination under

More information

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution) PART X Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution) CS422 Part 10 1 Spring 1999 Motivation For Internetworking LANs Low cost Limited distance WANs High

More information

EXAM TCP/IP NETWORKING Duration: 3 hours

EXAM TCP/IP NETWORKING Duration: 3 hours SCIPER: First name: Family name: EXAM TCP/IP NETWORKING Duration: 3 hours Jean-Yves Le Boudec January 2013 INSTRUCTIONS 1. Write your solution into this document and return it to us (you do not need to

More information

The MAC Layer. Jean Yves Le Boudec 2015

The MAC Layer. Jean Yves Le Boudec 2015 The MAC Layer Jean Yves Le Boudec 2015 1 Contents 1. MAC as Shared Medium : The Ethernet Myth and the WiFi Reality 2. MAC on cabled systems: the world of switches 3. Format and addresses 4. Virtual LANs

More information

IP Multicast Jean Yves Le Boudec 2017

IP Multicast Jean Yves Le Boudec 2017 IP Multicast Jean Yves Le Boudec 2017 1 IP Multicast Unicast = send to one destination Multicast = send to a group of destinations IP has multicast addresses: 224.0.0.0/4 (i.e. 224.0.0.0 to 239.255.255.255)

More information

EXAM TCP/IP NETWORKING Duration: 3 hours

EXAM TCP/IP NETWORKING Duration: 3 hours SCIPER: First name: Family name: EXAM TCP/IP NETWORKING Duration: 3 hours Jean-Yves Le Boudec January 2018 INSTRUCTIONS 1. Write your solution into this document and return it to us (you do not need to

More information

Chapter Motivation For Internetworking

Chapter Motivation For Internetworking Chapter 17-20 Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution 1 Motivation For Internetworking LANs Low cost Limited distance WANs High cost Unlimited distance

More information

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions SCIPER: First name: Family name: EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions Jean-Yves Le Boudec January 2018 INSTRUCTIONS 1. Write your solution into this document and return it to us (you

More information

The MAC Layer. Jean Yves Le Boudec 2015

The MAC Layer. Jean Yves Le Boudec 2015 The MAC Layer Jean Yves Le Boudec 2015 1 Contents 1. MAC as Shared Medium : The Ethernet Myth and the WiFi Reality 2. MAC on cabled systems: the world of switches 3. Format and addresses 4. Virtual LANs

More information

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6 RMIT University Data Communication and Net-Centric Computing COSC 1111/2061 Internetworking IPv4, IPv6 Technology Slide 1 Lecture Overview During this lecture, we will understand The principles of Internetworking

More information

IPv6 Feature Facts

IPv6 Feature Facts 12.1.2 IPv6 Feature Facts The current IP addressing standard, version 4, will eventually run out of unique addresses, so a new system is being developed. It is named IP version 6 or IPv6. You should know

More information

Planning for Information Network

Planning for Information Network Planning for Information Network Lecture 7: Introduction to IPv6 Assistant Teacher Samraa Adnan Al-Asadi 1 IPv6 Features The ability to scale networks for future demands requires a limitless supply of

More information

OSI Data Link & Network Layer

OSI Data Link & Network Layer OSI Data Link & Network Layer Erkki Kukk 1 Layers with TCP/IP and OSI Model Compare OSI and TCP/IP model 2 Layers with TCP/IP and OSI Model Explain protocol data units (PDU) and encapsulation 3 Addressing

More information

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000 IP Addresses The IP addresses are unique. An IPv4 address is a 32-bit address. An IPv6 address is a 128-bit address. The address space of IPv4 is 2 32 or 4,294,967,296. The address space of IPv6 is 2 128

More information

TSIN02 - Internetworking

TSIN02 - Internetworking Lecture 2: The Internet Protocol Literature: Forouzan: ch 4-9 and ch 27 2004 Image Coding Group, Linköpings Universitet Outline About the network layer Tasks Addressing Routing Protocols 2 Tasks of the

More information

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley. IPv4 addressing, NAT http://xkcd.com/195/ Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Some materials copyright 1996-2012 J.F Kurose and K.W. Ross, All Rights

More information

Network Layer/IP Protocols

Network Layer/IP Protocols Network Layer/IP Protocols 1 Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2 IPv4 packet header 3 IPv4 Datagram Header Format version of the IP protocol (4 BIts) IP header

More information

CIS-331 Final Exam Spring 2018 Total of 120 Points. Version 1

CIS-331 Final Exam Spring 2018 Total of 120 Points. Version 1 Version 1 Instructions 1. Write your name and version number on the top of the yellow paper and the routing tables sheet. 2. Answer Question 2 on the routing tables sheet. 3. Answer Questions 1, 3, 4,

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 1 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what

More information

OSI Data Link & Network Layer

OSI Data Link & Network Layer OSI Data Link & Network Layer Erkki Kukk 1 Layers with TCP/IP and OSI Model Compare OSI and TCP/IP model 2 Layers with TCP/IP and OSI Model Explain protocol data units (PDU) and encapsulation 3 Addressing

More information

PUCPR. Internet Protocol. Edgard Jamhour E N G L I S H S E M E S T E R

PUCPR. Internet Protocol. Edgard Jamhour E N G L I S H S E M E S T E R PUCPR Internet Protocol Address Resolution and Routing Edgard Jamhour 2014 E N G L I S H S E M E S T E R 1. Address Resolution The IP address does not identify, indeed, a computer, but a network interface.

More information

Chapter 06 IP Address

Chapter 06 IP Address Chapter 06 IP Address IP Address Internet address Identifier used at IP layer 32 bit binary address The address space of IPv4 is 2 32 or 4,294,967,296 Consists of netid and hosted IP Address Structure

More information

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address Outline IP The Internet Protocol o IP Address IP subnetting CIDR o ARP Protocol o IP Function o Fragmentation o NAT o IPv6 2 IP Address o Hostname & IP Address IP Address o The Address ping www.nu.ac.th

More information

IPv6 : Internet Protocol Version 6

IPv6 : Internet Protocol Version 6 IPv6 : Internet Protocol Version 6 History Internet growth was faster than anticipated In early 1990 s, it was realized that we may run out of IPv4 addresses somewhere between 2000 and 2010 Also, experiences

More information

History. IPv6 : Internet Protocol Version 6. IPv4 Year-Wise Allocation (/8s)

History. IPv6 : Internet Protocol Version 6. IPv4 Year-Wise Allocation (/8s) History IPv6 : Internet Protocol Version 6 Internet growth was faster than anticipated In early 1990 s, it was realized that we may run out of IPv4 addresses somewhere between 2000 and 2010 Also, experiences

More information

EXAM TCP/IP NETWORKING Duration: 3 hours

EXAM TCP/IP NETWORKING Duration: 3 hours SCIPER: First name: Family name: EXAM TCP/IP NETWORKING Duration: 3 hours Jean-Yves Le Boudec January 2017 INSTRUCTIONS 1. Write your solution into this document and return it to us (you do not need to

More information

IPv6. (Internet Protocol version 6)

IPv6. (Internet Protocol version 6) IPv6 Réseaux 1 IPv6 (Internet Protocol version 6) 2 IPv6 IP version 6 is the new version of the Internet Protocol (IP) The standardization process started in the 90s The main elements of IPv4 are still

More information

SEN366 (SEN374) (Introduction to) Computer Networks

SEN366 (SEN374) (Introduction to) Computer Networks SEN366 (SEN374) (Introduction to) Computer Networks Prof. Dr. Hasan Hüseyin BALIK (12 th Week) The Internet Protocol 12.Outline Principles of Internetworking Internet Protocol Operation Internet Protocol

More information

Connection Oriented Networking MPLS and ATM

Connection Oriented Networking MPLS and ATM ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE Connection Oriented Networking MPLS and ATM Jean-Yves Le Boudec Fall 0 Contents. Connection Oriented network layer. ATM.MPLS (Multi Protocol Label Switching) .

More information

CCNA Questions/Answers IPv6. Select the valid IPv6 address from given ones. (Choose two) A. FE63::0043::11:21 B :2:11.1 C.

CCNA Questions/Answers IPv6. Select the valid IPv6 address from given ones. (Choose two) A. FE63::0043::11:21 B :2:11.1 C. Select the valid IPv6 address from given ones. (Choose two) A. FE63::0043::11:21 B. 191.2.1.2:2:11.1 C. 2001::98 D. 2002:c0a8:101::42 E. :2001:: F. 2002.cb0a:3cdd:1::1 Answer: C, D. 2013 1 Which method

More information

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask 1 2 3 4 5 6 7 8 9 10 Unit C - Network Addressing Objectives Describe the purpose of an IP address and Subnet Mask and how they are used on the Internet. Describe the types of IP Addresses available. Describe

More information

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri Department of Computer and IT Engineering University of Kurdistan Network Layer By: Dr. Alireza Abdollahpouri What s the Internet: nuts and bolts view PC server wireless laptop cellular handheld millions

More information

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions SCIPER: First name: Family name: EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions Jean-Yves Le Boudec January 2013 INSTRUCTIONS 1. Write your solution into this document and return it to us (you

More information

The MAC Layer. Contents. Textbook. Jean Yves Le Boudec Fall 2012

The MAC Layer. Contents. Textbook. Jean Yves Le Boudec Fall 2012 The MAC Layer Jean Yves Le Boudec Fall 2012 1 Contents 1. MAC as Shared Medium : The Ethernet Myth and the WiFi Reality 2. MAC as interconnection at small scale : Why Ethernet became a point to point technology

More information

TCP/IP Protocol Suite

TCP/IP Protocol Suite TCP/IP Protocol Suite Computer Networks Lecture 5 http://goo.gl/pze5o8 TCP/IP Network protocols used in the Internet also used in today's intranets TCP layer 4 protocol Together with UDP IP - layer 3 protocol

More information

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses Internet Organization Addresses TCP/IP Protocol stack Forwarding Jörg Liebeherr, 1998-2003 1 What defines the Internet? 1. Use of a globally unique address space based on Internet Addresses 2. Support

More information

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

McGraw-Hill The McGraw-Hill Companies, Inc., 2000 !! McGraw-Hill The McGraw-Hill Companies, Inc., 2000 "#$% & '$# )1 ) ) )6 ) )* )- ). )0 )1! )11 )1 )1 )16 )1 3'' 4", ( ( $ ( $ $$+, $$, /+ & 23,4 )/+ &4 $ 53" Network Layer Position of network layer Figure

More information

Chapter 7: IP Addressing CCENT Routing and Switching Introduction to Networks v6.0

Chapter 7: IP Addressing CCENT Routing and Switching Introduction to Networks v6.0 Chapter 7: IP Addressing CCENT Routing and Switching Introduction to Networks v6.0 CCNET v6 13 Chapter 7 - Sections & Objectives 7.1 IPv4 Network Addresses Convert between binary and decimal numbering

More information

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia IP - The Internet Protocol Based on the slides of Dr. Jorg Liebeherr, University of Virginia Orientation IP (Internet Protocol) is a Network Layer Protocol. IP: The waist of the hourglass IP is the waist

More information

Internet Fundamentals

Internet Fundamentals Internet Fundamentals Lecture-10 IPv4 19.2 19-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router)

More information

NETWORK LAYER: IP Addressing

NETWORK LAYER: IP Addressing NETWORK LAYER: IP Addressing McGraw-Hill The McGraw-Hill Companies, Inc., 2004 2000 Position of network layer McGraw-Hill The McGraw-Hill Companies, Inc., 2004 Network layer duties McGraw-Hill The McGraw-Hill

More information

Lecture 8 Network Layer: Logical addressing

Lecture 8 Network Layer: Logical addressing Data Communications ACOE412 Lecture 8 Network Layer: Logical addressing Spring 2009 1 0. Overview In this lecture we will cover the following topics: 14.Network Layer: Logical addressing 14.1 IPv4 Addresses

More information

TCP/IP Network Essentials

TCP/IP Network Essentials TCP/IP Network Essentials Linux System Administration and IP Services AfNOG 2012 Layers Complex problems can be solved using the common divide and conquer principle. In this case the internals of the Internet

More information

7th Slide Set Computer Networks

7th Slide Set Computer Networks Prof. Dr. Christian Baun 7th Slide Set Computer Networks Frankfurt University of Applied Sciences WS1718 1/49 7th Slide Set Computer Networks Prof. Dr. Christian Baun Frankfurt University of Applied Sciences

More information

The Interconnection Structure of. The Internet. EECC694 - Shaaban

The Interconnection Structure of. The Internet. EECC694 - Shaaban The Internet Evolved from the ARPANET (the Advanced Research Projects Agency Network), a project funded by The U.S. Department of Defense (DOD) in 1969. ARPANET's purpose was to provide the U.S. Defense

More information

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE. TCP/IP for Dummies. Jean-Yves Le Boudec

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE. TCP/IP for Dummies. Jean-Yves Le Boudec ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE TCP/IP for Dummies Jean-Yves Le Boudec 1 This lecture may not be for you First take quiz 1 (given in class) correct answer = +1 wrong answer = -1 no answer = 0

More information

CIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1

CIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1 Version 1 1. (20 Points) Given the class A network address 121.0.0.0 will be divided into multiple subnets. a. (5 Points) How many bits will be necessary to address 8,100 subnets? b. (5 Points) What is

More information

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008 Networks an overview dr. C. P. J. Koymans Informatics Institute University of Amsterdam February 4, 2008 dr. C. P. J. Koymans (UvA) Networks February 4, 2008 1 / 53 1 Network modeling Layered networks

More information

CSC 4900 Computer Networks: Network Layer

CSC 4900 Computer Networks: Network Layer CSC 4900 Computer Networks: Network Layer Professor Henry Carter Fall 2017 Chapter 4: Network Layer 4. 1 Introduction 4.2 What s inside a router 4.3 IP: Internet Protocol Datagram format 4.4 Generalized

More information

The MAC Layer. Clicker registration

The MAC Layer. Clicker registration The MAC Layer Jean Yves Le Boudec Fall 2012 1 Clicker registration Please note your clicker number Register it using the link on moodle before today 23:59 This will allow you to verify that your fun grade

More information

IP: Addressing, ARP, Routing

IP: Addressing, ARP, Routing IP: Addressing, ARP, Routing Network Protocols and Standards Autumn 2004-2005 Oct 21, 2004 CS573: Network Protocols and Standards 1 IPv4 IP Datagram Format IPv4 Addressing ARP and RARP IP Routing Basics

More information

IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa

IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa IP Basics Unix/IP Preparation Course June 29, 2010 Layers Complex problems can be solved using the common divide and conquer principle. In this case the internals of the Internet are divided into separate

More information

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane This presentation is adapted from slides produced by Jim Kurose and Keith Ross for their book, Computer Networking:

More information

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1 Version 1 1. (20 Points) Given the class A network address 119.0.0.0 will be divided into a maximum of 15,900 subnets. a. (5 Points) How many bits will be necessary to address the 15,900 subnets? b. (5

More information

IP Addressing - Subnetting

IP Addressing - Subnetting IP Addressing - Subnetting The Two Parts of an IP Address 32 Bits Prefix Host Prefix Length IP Address Classes Classes are now considered obsolete But you have to learn them because Everyone in the industry

More information

MODULE: NETWORKS MODULE CODE: CAN1102C. Duration: 2 Hours 15 Mins. Instructions to Candidates:

MODULE: NETWORKS MODULE CODE: CAN1102C. Duration: 2 Hours 15 Mins. Instructions to Candidates: BSc.(Hons) Computer Science with Network Security BEng (Hons) Telecommunications Cohort: BCNS/17B/FT Examinations for 2017-2018 / Semester 2 Resit Examinations for BCNS/15A/FT, BTEL/15B/FT & BTEL/16B/FT

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

Chapter 19 Network Layer: Logical Addressing 19.1

Chapter 19 Network Layer: Logical Addressing 19.1 Chapter 19 Network Layer: Logical Addressing 19.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 19-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that

More information

Network layer: Overview. Network Layer Functions

Network layer: Overview. Network Layer Functions Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

IP - The Internet Protocol

IP - The Internet Protocol IP - The Internet Protocol 1 Orientation IP s current version is Version 4 (IPv4). It is specified in RFC 891. TCP UDP Transport Layer ICMP IP IGMP Network Layer ARP Network Access Link Layer Media 2 IP:

More information

Networking Fundamentals

Networking Fundamentals Networking Fundamentals Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (http://creativecommons.org/licenses/by-nc/4.0/)

More information

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions SCIPER: First name: Family name: EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions Jean-Yves Le Boudec January 2016 INSTRUCTIONS 1. Write your solution into this document and return it to us (you

More information

The Internet Protocol (IP)

The Internet Protocol (IP) The Internet Protocol (IP) The Blood of the Internet (C) Herbert Haas 2005/03/11 "Information Superhighway is really an acronym for 'Interactive Network For Organizing, Retrieving, Manipulating, Accessing

More information

Basics of communication. Grundlagen der Rechnernetze Introduction 31

Basics of communication. Grundlagen der Rechnernetze Introduction 31 Basics of communication Grundlagen der Rechnernetze Introduction 31 Types of communication H9 H8 H1 H7 R1 N3 H2 N1 R3 H3 R2 N2 H6 H5 H4 Unicast communication where a piece of information is sent from one

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Network Layer IPv4, Format and Addressing,, IPv6 Prof. Lina Battestilli Fall 2017 Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Introduction (forwarding and routing) Review of queueing theory Routing algorithms Link state, Distance Vector Router design and operation IP: Internet Protocol IPv4 (datagram format, addressing,

More information

ECE 4450:427/527 - Computer Networks Spring 2017

ECE 4450:427/527 - Computer Networks Spring 2017 ECE 4450:427/527 - Computer Networks Spring 2017 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 6.2: IP Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527 Computer Networks

More information

Addressing and Routing

Addressing and Routing Addressing and Routing Andrew Scott a.scott@lancaster.ac.uk Physical/ Hardware Addresses Aka MAC* or link(-layer) address Can only talk to things on same link Unique ID given to every network interface

More information

CSCI-1680 Network Layer:

CSCI-1680 Network Layer: CSCI-1680 Network Layer: Wrapup Rodrigo Fonseca Based partly on lecture notes by Jennifer Rexford, Rob Sherwood, David Mazières, Phil Levis, John JannoA Administrivia Homework 2 is due tomorrow So we can

More information

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security Introduction to Computer Networks CS 166: Introduction to Computer Systems Security Network Communication Communication in modern networks is characterized by the following fundamental principles Packet

More information

Introduction to Internetworking

Introduction to Internetworking Introduction to Internetworking Introductory terms Communications Network Facility that provides data transfer services An internet Collection of communications networks interconnected by bridges and/or

More information

Computer Network Addressing. The TCP/IP Layers and Addresses. Topics. The Internet Communication. The TCP/IP Layers and Addresses IP Address

Computer Network Addressing. The TCP/IP Layers and Addresses. Topics. The Internet Communication. The TCP/IP Layers and Addresses IP Address Topics Computer Addressing The / Layers and Addresses Computer and Data Communication Laboratory I 2 The Internet Communication The / Layers and Addresses 4 Protocol Layers / Protocol Stack OSI and / SMTP

More information

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1 Version 1 Instructions Write your name on the exam paper. Write your name and version number on the top of the yellow paper. Answer Question 1 on the exam paper. Answer Questions 2-4 on the yellow paper.

More information