Leftovers: Leftovers: MPLS, Multicast, MPLS, Multicast, Gateways - - PDF document

leftovers leftovers mpls multicast mpls multicast
SMART_READER_LITE
LIVE PREVIEW

Leftovers: Leftovers: MPLS, Multicast, MPLS, Multicast, Gateways - - PDF document

COLE POLYTECHNIQUE FDRALE DE LAUSANNE Leftovers: Leftovers: MPLS, Multicast, MPLS, Multicast, Gateways and Firewalls, Gateways and Firewalls, VPNs VPNs Jean- -Yves Le Boudec Yves Le Boudec Jean Fall 2009 Fall 2009 1 Part 1:


slide-1
SLIDE 1

1

Leftovers: Leftovers: MPLS, Multicast, MPLS, Multicast, Gateways and Firewalls, Gateways and Firewalls, VPNs VPNs

Jean Jean-

  • Yves Le Boudec

Yves Le Boudec Fall 2009 Fall 2009

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE

slide-2
SLIDE 2

2

Part 1: Firewalls

TCP/IP architecture separates hosts and routers

network = packet transportation only private networks may want more protection

“access control”

  • ne component is a firewall

definition: a firewall is a system that

separates Internet from intranet: all traffic must go through firewall

  • nly authorized traffic may go through

firewall itself cannot be penetrated

Components of a firewall

filtering router application or transport gateway

slide-3
SLIDE 3

3

Filtering Routers

A router sees all packets and may do more than packet forwarding as defined by IP

filtering rules based on :

port numbers, protocol type, control bits in TCP header (SYN packets)

Example

filtering router prot srce addr dest addr srce dest action port port 1 tcp * 198.87.9.2 >1023 23 permit 2 tcp * 198.87.9.3 >1023 25 permit 3 tcp 129.132.100.7 198.87.9.2 >1023 119 permit 4 * * * * * deny intranet Internet

slide-4
SLIDE 4

4

The example show 4 rules applied to the ports shown

  • rule 1 allows telnet connections from the outside to the machine 198.87.9.2
  • rule 2 allows email to be sent to machine 198.87.9.3
  • rule 3 allows news to be sent to machine 198.87.9.2, but only from machine 129.132.100.7
  • rule 4 forbids all other packets.

Designing the set of rules employed in a firewall is a complex task; the set shown on the picture is much simpler than a real configuration. Packet filtering alone offers little protection because it is difficult to design a safe set of rules and at the same time offer full service to the intranet users.

slide-5
SLIDE 5

5

Application Layer Gateways

Application layer gateway is a layer 7 intermediate system

normally not used according to the TCP/IP architecture but mainly used for access control also used for interworking issues

Principle:

proxy principle: viewed by client as a server and by server as a client supports access control restrictions, authentication, encryption, etc

HTTP server HTTP client gateway logic TCP/IP TCP/IP HTTP client TCP/IP HTTP server HTTP Gateway 1 GET xxx.. 2 GET xxx.. 3 data 4 data intranet Internet A B

slide-6
SLIDE 6

6

  • 1. User at A sends an HTTP request. It is not sent to the final destination but to the application

layer gateway. This results from the configuration at the client.

  • 2. The gateway checks whether the transaction is authorized. Encryption may be performed.

Then the HTTP request is issued again from the gateway to B as though it would be originating from A.

  • 3. A response comes from B, probably under the form of a MIME header and data. The gateway

may also check the data, possibly decrypt, or reject the data.

  • 4. If it accepts to pass it further, it is sent to A as though it would be coming from B.

Application layer gateways can be made for all application level protocols. They can be used for access control, but also for interworking, for example between IPv4 and IPv6.

slide-7
SLIDE 7

7

Transport Gateway

Similar to application gateways but at the level of TCP connections

independent of application code requires client software to be aware of the gateway

Transport Gateway (SOCKS Server) 1 GET xxx.. data :1080 SYN ACK SYN ACK SYN ACK A B :80 SYN connection relay request to B :80 ACK data relay OK 1 2 3 4

slide-8
SLIDE 8

8

The transport gateway is a layer 4 intermediate system. The example shows the SOCKS gateways. SOKCS is a standard being defined by the IETF.

  • 1. A opens a TCP connection to the gateway. The destination port is the well known SOCKS server port

1080.

  • 2. A requests from the SOCKS server the opening of a TCP connection to B. A indicates the destination

port number (here, 80). The SOCKS server does various checks and accepts or rejects the connection request.

  • 3. The SOCKS server opens a new TCP connection to B, port 80. A is informed that the connection is
  • pened with success.
  • 4. Data between A and B is relayed at the SOCKS server transparently. However, there are two

distinct TCP connections with their own, distinct ack and sequence numbers. Compared to an application layer gateway, the SOCKS server is simpler because it is not involved in application layer data units; after the connection setup phase, it acts on a packet by packet level. Its performance is thus higher. However, it requires the client side to be aware of the gateway: it is not transparent. Netscape and Microsoft browsers support SOCKS gateways.

slide-9
SLIDE 9

9

An application / transport gateway alone can be used as firewall if it is the only border between two networks A more general design is one or more gateways isolated by filtering routers

Typical Firewalls Designs

intranet Internet Firewall =

  • ne dual homed gateway

intranet Internet Firewall = gateways + sacrificial subnet R2 R1

slide-10
SLIDE 10

10

Part 2: Part 2: Connection Oriented Networking Connection Oriented Networking MPLS and ATM MPLS and ATM

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE

slide-11
SLIDE 11

11

Contents

  • 1. Connection Oriented network layer. ATM

2 .MPLS (Multi Protocol Label Switching)

slide-12
SLIDE 12

12

  • 1. Frame Relay, ATM

There exists a family of data networks which is very different from IP : carrier data networks

Frame Relay, ATM, X.25

They use the Connection Oriented Network Layer They were designed to be an alternative to IP

Failed in this goal Used today as “super Ethernet” in IP backbones or at interconnection points Being replaced by MPLS

slide-13
SLIDE 13

13

Connection Oriented Network Layer : Frame Relay, ATM, X.25

Host A Host B

2 1 2 2 1 1 3

Host C

Switch S1 Switch S3 Switch S4 Switch S2 3 input conn Id

  • utput

conn Id 3 3 1 2 2 2 1 2 input conn Id

  • utput

conn Id 1 1 1 2 4 3 1 1 input conn Id

  • utput

conn Id 1 1 2 1 4 2

slide-14
SLIDE 14

14

Connection oriented = similar to telephone. Connections are also called virtual circuits. The connection oriented network layer uses connections that are known and controlled in all intermediate systems. Every packet carries a connection identifier which is either global (SNA) or local to a link (X.25, Frame Relay, ATM). The packet forwarding function is simple, based on table lookup. The control method involves

connection setup and release(building tables) connection routing

Connection oriented networks usually implement some mechanisms to control the amount of data sent on one connection, thus limiting losses due to statistical

  • multiplexing. Methods for that are: sliding window protocol, similar to that of TCP (X.25,

SNA), and rate control (Frame Relay , ATM). Connection oriented networks give better control over individual traffic flows and are thus used in public networks where tariffing is a key issue (X.25, Frame Relay). IBM network architectures are also connection oriented (SNA, APPN). ATM is a connection

  • riented network where emphasis is put on supporting both statistical multiplexing and

non- statistical multiplexing. ATM packets have a small, fixed size and are called cells.

slide-15
SLIDE 15

15

ATM

ATM is a connection oriented network architecture ATM packets (called cells) are small and fixed size (48 bytes of data + 5 bytes of header)

high performance at low cost designed for very low delay And for hrdware implementation of switching functions

The ATM connection identifier is called VPI/VCI (Virtual Path Identifier/Virtual Channel Identifier) Frame relay is the same but with packets of variable size (up to 1500 B payload)

slide-16
SLIDE 16

16

ATM VPI/VCI switching

in VPI/VCI

  • ut

VPI/VCI 1 27 2 44 1 19 16 38 27 19 44 38 1 16 1 16 2 ATM cells header contains VPI/VCI

slide-17
SLIDE 17

17

ATM Adaption Layer

ATM can transport packets of size up to 64 KB ATM Adaptation Layer segments and re-assembles

in ATM end points only

AAL5 in ATM adapter AAL5 in ATM adapter

variable length packet cells ATM switches

AAL5 in ATM adapter AAL5 in ATM adapter

slide-18
SLIDE 18

18

IP over ATM: Classical IP

classical IP uses ATM as a fast Ethernet ATMARP finds ATM address

Like a telephone number, similar to IPv6 address --- not a VPI/VCI

InARP finds VPI/VCI

ARP Server (Address Resolution)

ATM H1 H2 Router Router

  • 1. Address

Resolution

  • 2. VCC

S

An ATMARP server is used:

  • H1 connects to S at boot time, by calling the ATM address of the ATMARP server
  • with InARP, S and H1 identify their IP addresses
  • when H1 has to send an IP packet to H2, it must find the ATM address of H2. H1 sends an

ATMARP request to S. S responds with the ATM address of H2. H1 calls H2. When an ATM connection is established, InARP is used to confirm the IP addresses.

slide-19
SLIDE 19

19

Why ATM ?

Simplifies routing in large networks

IP needs very large routing tables in the core network

for every packet look up more that 100 000 entries forwarding from the ISP point of view - just find the egress router

IP routing may ignore the real physical topology

ISP can put a router on the edge and use ATM/Frame Relay Virtual Path, switches in the middle edge router selects the path based on the destination address route look up done only once in the ISP network but still scalability problems

Quality of Service

ATM can natively provide guaranteed service (allocate different rates to different ATM connections) Used to share infrastructure (several operators or one network – virtual providers) Also used to multiplex many users on an access network (cable, wireless)

slide-20
SLIDE 20

20

  • 2. MPLS

IP IP over

  • ver MPLS

MPLS IP IP over

  • ver MPLS

MPLS

“Multi-Protocol Label Swapping” Goal: integrate IP and CO layer in the same concept “peer model” of integration Unlike ATM or FR (used as layer 2 by IP) Save one network MPLS packets have a label added before IP header An MPLS node acts as a combined router / CO intermediate system MPLS table combines routing and label swapping MPLS node

  • CO switch
  • IP router
slide-21
SLIDE 21

21

MPLS example

in

  • ut

a/33 b/37

a d b c

src dst out * 129.88/16 b/28 * 128.178/15 b/28 18/8 129.88/16 b/30 src dst out * 128.178/15 b/70 * 129.88/16 b/70

a b a b

in

  • ut

a/70 b/25 d/28 b/25 d/30 c/33 in

  • ut

a/25 b/77 in

  • ut

a/77 b/pop c/37 b/pop

a b a b a c b 129.88/16 128.178/15

FEC skipped in LIB

28 129.88.38.1 25 129.88.38.1 77 129.88.38.1 129.88.38.1

src= 122.1.2.3

30 129.88.3.3 33 129.88.3.3 129.88.3.3 129.88.3.3 37

src= 18.1.2.3

A B C E F D 9 7 8 1 2 3 4 5 6

slide-22
SLIDE 22

22

1. An IP packet arrives, at MPLS node B, with source IP address 18.1.2.3 and destination IP address 129.88.3.3. It arrives from outside the MPLS cloud, as an ordinary IP packet. The combined routing/MPLS table at B says that, for this combination of source and destination address, B should push the label 30 in front of the IP packet and forward the packet to port b. 2. The packet arrives at node C. Since the packet has a label, the nodes looks for it in the table and finds that the label should be swapped to 33 and the packet forwarded to port c. 3. Similar 4. The packet arrives at node F. The table says that a packet arriving on port c with label 37 should be sent to port b and the label should be popped (removed). 5. The packet exits as an ordinary IP packet, without MPLS label. 6. An IP packet arrives, at MPLS node B, with source IP address 122.1.2.3 and destination IP address 129.88.38.1. It arrives from outside the MPLS cloud, as an ordinary IP packet. The combined routing/MPLS table at B says that, for this combination of source and destination address, B should push the label 28 in front of the IP packet and forward the packet to port b. 7. The packet arrives at node C. Since the packet has a label, the nodes looks for it in the table and finds that the label should be swapped to 77 and the packet forwarded to port b. 8. The packet’s label was removed by node F 9. Observe how after node C this packet’s path follows the same as the previous packet’s.

slide-23
SLIDE 23

23

MPLS Terminology

LSR (Label Switch Router) Ingress LER (Label Edge Router) Egress LER (Label Edge Router) LIB (Label Information Base) 129.88/16 FEC (Forward Equivalence Class) 128.178/15

FEC in out xxx a/70 b/25 yyy c/28 d/33

LSP (Label Switched Path) a c b d

src dst out * 128.178/15 b/70 18/8 129.88/16 b/28

FEC - Label Mapping

slide-24
SLIDE 24

24

Operation of MPLS

ingress LER classifies packets to identify FEC that determines a label; inserts the label (32 bits)

Labels may be stacked on top of labels

LSR switches based on the label if present, else uses IP routing Forwarding Equivalence Classes (FEC)

group of IP packets, forwarded in the same manner, over the same path, and with the same forwarding treatment (priority) FEC may correspond to

destination IP subnet source and destination IP subnet traffic class that LER considers significant

Label Switching tables can be built using a Label Distribution Protocol, which can be implemented as an addition to the routing protocol (e.g. OSPF, IGMP, BGP)

slide-25
SLIDE 25

25

Avoid Redistribution with MPLS

AS x AS y AS z E-BGP

Alternative to redistribution or running I-BGP in all backbone routers:

Associate MPLS labels to exit points Example:

R2 creates a label switched path to 2.2.2.2 At R2: Packets to 18.1/6 are associated with this label R1 runs only IGP and MPLS – no BGP – only very small routing tables Can be used to provide quality of service

E-BGP R4 R1 R2 R5 R6 18.1/16 I-BGP MPLS IGP MPLS

2.2.2.2 2.2.20.1

To NEXT-HOP layer-2 addr 18.1/16 2.2.2.2 MPLS label 23

RIB and LIB at R2

slide-26
SLIDE 26

26

Facts to remember

There are other, non IP network layers that are connection oriented With a CO network, there are connections and labels

Labels have only local significance, may be changed at every hop

They are used to carry IP traffic or telephony or to separate services ATM is used as “super layer 2” MPLS is similar but is combined at the networking layer

slide-27
SLIDE 27

27

Part 3: IP Multicast

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE

La durée d'écoute est désormais limitée : sans action de votre part (un simple clic), la diffusion s'arrête au bout d'un temps déterminé selon les

  • stations. En effet, pour nous, diffuseurs, les technologies actuelles

imposent un coût dépendant de la durée et du nombre d'auditeurs. Plusieurs éléments nous indiquent que les internautes ayant accès à l'internet illimité ne coupent pas l'écoute, lorsqu'ils quittent leur ordinateur allumé. Radio France ne peut continuer à financer pour celui qui n'écoute

  • pas. C'est pourquoi nous avons mis en place ce système de confirmation,

un peu contraignant, mais qui nous permet de mieux contrôler les coûts de diffusion. La durée d'écoute est désormais limitée : sans action de votre part (un simple clic), la diffusion s'arrête au bout d'un temps déterminé selon les

  • stations. En effet, pour nous, diffuseurs, les technologies actuelles

imposent un coût dépendant de la durée et du nombre d'auditeurs. Plusieurs éléments nous indiquent que les internautes ayant accès à l'internet illimité ne coupent pas l'écoute, lorsqu'ils quittent leur ordinateur allumé. Radio France ne peut continuer à financer pour celui qui n'écoute

  • pas. C'est pourquoi nous avons mis en place ce système de confirmation,

un peu contraignant, mais qui nous permet de mieux contrôler les coûts de diffusion.

h t t p : / / v i p h t t p . y a c a s t . n e t / V 4 / r a d i

  • f

r a n c e / f i p _ b d . m 3 u

slide-28
SLIDE 28

28

Contents

  • 1. Multicast IP
  • 2. Multicast routing protocols
  • 3. Deployment
slide-29
SLIDE 29

29

  • 1. Internet (initial) group model

Multicast/group communication

1 → n as well as n → m

Multicast addresses, IPv4

224.0.0.0 to 239.255.255.255 232/8 reserved for SSM (see later) 224/4

Multicast address, IPv6

FF00::/8

A multicast address is the logical identifier

  • f a group

No topological information, does not give any information about where the destinations (listeners) are Routers keep have to keep state information for each multicast address

host 1 194.199.25.100 194.199.25.100 source source host 3 receiver receiver 133.121.11.22 133.121.11.22 host 2 receiver receiver 194.199.25.101 194.199.25.101 multicast group 225.1.2.3

slide-30
SLIDE 30

30

Internet (initial) group model

Open model

any host may belong to a multicast group

no authorization required

host may belong to many different groups

no restriction

source may send a packet to a group no matter if it belongs to the group or not

membership not required

group is dynamic

a host may subscribe or leave at any time

host (source/receiver) does not know the identity of group members

Groups may have different scope

use TTL: LAN (local scope), Campus/admin scoping

slide-31
SLIDE 31

31

IP Multicast Principles

hosts subscribe via IGMP join messages sent to router routers build distribution tree via multicast routing sources do not know who destinations are packet multiplication is done by routers

1 S sends packets to multicast address m; there is no member, the data is simply lost at router R5. 2 A joins the multicast address m. 3 R1 informs the rest of the network that m has a member at R1; the multicast routing protocol builds a tree. Data sent by S now reach A. 4 B joins the multicast address m. 5 R4 informs the rest of the network that m has a member at R4; the multicast routing protocol adds branches to the

  • tree. Data sent by S now reach both A

and B. 1 S sends packets to multicast address m; there is no member, the data is simply lost at router R5. 2 A joins the multicast address m. 3 R1 informs the rest of the network that m has a member at R1; the multicast routing protocol builds a tree. Data sent by S now reach A. 4 B joins the multicast address m. 5 R4 informs the rest of the network that m has a member at R4; the multicast routing protocol adds branches to the

  • tree. Data sent by S now reach both A

and B. R5 R1 R2 R4 A B S to m 1 IGMP: join m 2 4 3 5 5

Multicast routing

slide-32
SLIDE 32

32

Using Multicast with IPv4 Sockets

Can only use UDP, does not work with TCP Set TTL carefully Sending to a multicast address: nothing special to do

Same as sending a packet to unicast address

Destination has to join explicitly supported by socket option

in in.h:

struct ip_mreq { struct in_addr imr_multiaddr; /* IP multicast address of group */ struct in_addr imr_interface; /* local IP address of interface */ }; struct ip_mreq mreq; rc = setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void *) &mreq, sizeof(mreq) ); IN_MULTICAST(a) tests whether a is a multicast address

slide-33
SLIDE 33

33

Source Specific Multicast (SSM)

The IP multicast model supports many to many

network (multicast routing) must find all sources and route from them A proposed alternative called SSM (Source Specific Multicast) multicast group - a channel identified by:

{@source, @multicast}

single-source model

{S, M} and {S’, M} are disjoint

  • nly S can send some traffic to {S, M}

destinations have to find who the sources are, not the network

host must learn source address out of band (Web page)

n → m still possible with many 1 → n channelsrequires source selection (host- to-router source and group request)

Include-Source list of IGMPv3 MLD (Multicast Listener Discovery for IPv6), replacement of IGMP for IPv6

IANA assigned 232/8 and FF3X::/96

slide-34
SLIDE 34
  • 2. Multicast Routing

There are many multicast routing protocols to choose from What is the job ?

For every multicast address, build a shared distribution tree

This is (too) complex A much simpler situation arises if we support only SSM

34

slide-35
SLIDE 35

PIM-SSM

35

JOIN (A, G) announced with IGMP

A B D E F C

PIM JOIN (A,G) Channel (A, G) built between source and receiver

slide-36
SLIDE 36

PIM-SSM

= « Protocol Independent Multicast- Source Specific Multicast » The « routing protocol » proposed for SSM

Router keeps (S, G) state for each source S and each multicast group address G Tree is built by using unicast routing tables towards the source

PIM-JOIN messages sent from one router to upstream neighbour

There is no Path Computation algorithm, relies on routing tables built by unicast routing protocols

36

slide-37
SLIDE 37
  • 3. Deployment

IP multicast is implemented on research networks (Switch, Geant, etc) Also used by specific environments (e.g. financial) Not generally available (yet) to the general public in its general form SSM multicast deployments are starting Tunneling can be used to connect a non multicast capable network to a multicast capable one (MBONE)

within a multicast area: native multicast in a tunnel: muticast packets are encapsulated in unicast IP packets

37 multicast routers multicast routers multicast routers multicast routers sou source ce receive receiver encapsulatio capsulation dst = unicast @R2 dst = unicast @R2 decapsulat decapsulation

  • n

R2 R2 R1 R1 IP dest=adr_R2 IP dest=mcast payload

  • riginal packet

unicast only unicast only routers routers

slide-38
SLIDE 38

38

There is not only IP Multicast …

Multicast can be performed at application layer

On a network offering no IP multicast support (today’s internet) Examples: content distribution networks

Source CDN node 1 CDN node 3 CDN node 4 CDN node 2

slide-39
SLIDE 39

39

Facts to remember

IP multicast allows to reduce traffic by controlled packet replication Multicast routers are “stateful” Initial multicast allows any source to send to a multicast address

Routing is complex

Source specific multicast is simpler to deploy

Application layer multicast can be used even without IP multicast Multicast IP does not work with TCP

Ad-hoc “reliable multicast” protocols were developed

slide-40
SLIDE 40

40

Part 4 Part 4 Protocol Aspects of Security Protocol Aspects of Security

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE

slide-41
SLIDE 41

41

Protocol Aspects of Security

Security is a global issue, not covered in this lecture We discuss here how security impacts the architecture, and the relation between layers We review two examples

ssh IPSEC and VPNs

slide-42
SLIDE 42

42

Anatomy of an SSH example

9876 Email User Agent TCP IP TCP IP S POP server 110 IP network

First look at the configuration without SSH

Email user agent connects to POP server 110 is the TCP port reserved for POP 9876 is a ephemral port allocated to email user agent by the operating system

1 A pop

slide-43
SLIDE 43

43

Anatomy of an SSH example (2)

9876 Email User Agent TCP IP TCP IP S POP server 110 IP network 1 A pop ssh 1234 3456 22 sshd

slide-44
SLIDE 44

44

Anatomy of an SSH example (2)

9876 Email User Agent TCP IP TCP IP S POP server 110 IP network 1 A pop ssh 1234 3456 22 sshd

Assume A wants to use SSH to connect to the mail server S, using POP Q1: Why would A want this ? A1: to make sure that email between A and S is encrypted. Or because S is behind a firewall that does not accept TCP connections to ports other than ssh. Q2: describe the content of a packet from A to B visible at point 1. A2: contains an encrypted block of data inside a TCP packet with srce port=22, dest port=3456, IP srce=A, IP dest=S

back

slide-45
SLIDE 45

45

Assume A wants to use SSH to connect to the mail server S, using POP Q1: Why would A want this ? sshd is the ssh “daemon”, i.e the ssh server. It runs on S in this example. sshd listens to the well known port 22, reserved for ssh. The user at A starts an ssh connection to S by launching the ssh client. The ssh client

  • btains a port number from the operating system (here: 3456). A opens a TCP connection

from port 3456 to S, destination port 22. A can talk to S over this TCP connection (for example, the user at A can issue commands on S). (port redirection) ssh at A opens a server port 1234. All packets received by ssh at A on port 1234 from localhost (green line) are sent to S, received by sshd at S, and sent again to S locally, to port 22. The user must decide which port on A is redirected to which port on S. The mapping so constructed is called an “SSH tunnel” The email user agent at A must be instructed to connect to a POP server at IP address = localhost and server port number = 1234 The traffic on the red TCP connection between A and S is encrypted. Different connections (called “channels”) can be multiplexed on one single TCP connection between A and S. ssh implements a sliding window protocol on top of TCP, with fixed window size, one window per channel Q2: describe the content of a packet from A to B visible at point 1. This is only one specific example, there are many other possibilities. This example is redirection of local port (ssh on A redirects the port 1234 on A to 110 on S). It is possible to redirect a remote port as well, and UDP traffic can be redirected as well. solution

slide-46
SLIDE 46

46

ssh-connect

Multiple channels multiplexed into a single connection at the ssh-trans level Channels identified by numbers on each end Channels are flow-controlled

window size - amount of data to send CHANNEL_OPEN (id, w) ssh sshd CHANNEL_CONFIRM (id, w) CHANNEL_DATA (id) CHANNEL_WINDOW (id, w1)

slide-47
SLIDE 47

47

IPSEC and VPNs

Offers protection transparent to applications Used to run applications designed for secure environment over unsecure

  • ne

example: WLAN access to EPFL network example: video player to screen

Provides

authentication (AH header)

  • r authentication and confidentiality (ESP header)

used primarily today in tunnel mode

host to host mode also exists basic building block for VPN

slide-48
SLIDE 48

48

IPSEC Tunnel Mode: Find Out how it works

VPN Router (IPSec server) wireless LAN

IP hdr IP data ESP hdr IP hdr

encrypted

IP hdr IP data

Ethernet adapter Wireless Network Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.1.33 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 Ethernet adapter Local Area Connection 2: Connection-specific DNS Suffix . : epfl.ch IP Address. . . . . . . . . . . . : 128.178.83.22 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 128.178.83.22 Ethernet adapter Wireless Network Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.1.33 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 Ethernet adapter Local Area Connection 2: Connection-specific DNS Suffix . : epfl.ch IP Address. . . . . . . . . . . . : 128.178.83.22 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 128.178.83.22

A EPFL B

slide-49
SLIDE 49

49

IPSEC Tunnel Mode: Find Out how it works -

  • Hints

What subnet does the secondary IP address 128.178.83.22 belong to ? Host A has now two IP addresses. Why ? How are they used ? What IP source address does an application on A use ? Explain how packets from host B to host A find their way. solutions

slide-50
SLIDE 50

50

IPSEC Tunnel Mode: Find Out how it works -

  • Solutions

What subnet does the secondary IP address 128.178.83.22 belong to ?

it is an EPFL subnet. The VPN router belongs to it.

Host A has now two IP addresses. Why ? How are they used ?

IP packets are generated by applications at A with source address

128.178.83.22, encrypted and encapsulated in IP packets with source address

192.168.1.33. This is a tunnel (= there is encapsulation ) . At the end of the

tunnel, the VPN router decrypts the packets, and places them on the EPFL network

What IP source address does an application on A use ?

the EPFL address 128.178.83.22

Explain how packets from host B to host A find their way.

The VPN router must perform proxy ARP – otherwise, same as access over a modem (see slide « Proxy ARP »).

back