75

 · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

������������������ ��� ����� ��

���������� ������������

������ ��������������

Page 2:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

������������������ ��� ����� ��

���������� ������������

Page 3:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

��� ���� ������������

SWITCH

Backbone

SWITCH SWITCH

Un único dominio de Capa 2

Page 4:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����������� ������ ���������������������

ARPARP OSPF

OSPF

RIPRIP Broadcastómetro

ARPARP RIPRIP OSPFOSPF

40

40

80

80

0

0

OSPFOSPF RIPRIPARPARP

������

��������

Tramas/s

Tramas/s

BroadcastómetroSTPSTP

STPSTP STPSTP

��� ���� ������������

Page 5:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

���������� �����������

Una VLAN constituye un dominio de broadcast de Capa 2 definido de forma lógica

Dominios de

Broadcast

VLAN 1

VLAN 2

VLAN 3

VLAN 5

VLAN4

Switch con VLANs

Switch con VLANs

Switch con VLANs

Dominios de

Broadcast

Backbone

Page 6:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

������������������������

� ���������������� ������!��������������!"������#�$

� %&'�����(

� ����!�����������������")����&������

� *���+�

� ��������

� ���������������!,����������!������������

� ���!�!����������������-�+������������ ��)��������������������������$

Page 7:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� .$/ �����������$�0������������1������,�!��"��������!����$�0&�������������2���,�)�&��+����$�

� ..$/ ��������������������$�������������3����)������������!$���������$�

� ...$/ ����������$���!��������!������+����������)�����������$�.4$

� .�$/ �����������������$����������������������������������,������������������$��'$(��04�,�564

� �$/ ��������������$���&���,����!��������������������������$��'$(� 40�,��6�4

� �.$/ ��������������������$�7��!����������������������!�����$��'$(��44�

� �..$/ ������������������$� ���2������8������&����������$��'$(��9�43�:��43�������,�����$�

����� ������6������������������� !"

Page 8:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

6�)�����+�����;����� ��������

VLANroja

VLANazul

��

PWR

DIAG

FAULT

XMT

RCV

LNK/FDX1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

MDIX1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

MDI

Workgroup StackSCISCO YSTEMS

Catalyst 3000

AUI

Conexión roja-azul

Page 9:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�������������� ��!���������

�������"!

� � �� ��

� � �� ��

� �

� �

������������"� ��

;����!�����������;�����

Page 10:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

#�����

�����$!

;����!�����������;�����

� � �� ��

� � �� ��

� �

� �

��������#�%�������"��&� �����'����� �����

'����������(����%��������)���������*��������

'��)������'�������'��������������(��������

��� ���������������+###�,-.(/)

�����������"� ��

Page 11:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

<���)��������������

� ��!�������������!�����(

� 0�������������!��������<�����

� 4��������������!�������<�����

� ���&�����

� ��!���������������������+��(

� �������������!��������������������2���!&��

� ��!��������������(

� 0���������������

Page 12:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

0�!������������������

� 4���������(

� 6�)�����+!����������������!��!&��

� .�����)����+�(

� 6�)�����+!�������������!�����������

� 0��)������+�(

� 6�)�����+!�������)������������

Page 13:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� ������ �����)�������;������&"��!����(

� <�������������4���/&���

� <������������������&�����4�������/&���

������������

Page 14:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

���� &�����������

� 5�������&�������������������������������������������&����� ��������������������������������������

� �������������)������6�)���/ �.6�=�������������,����������)������+����"�����������������" &�����������

� ���������������;���!"����� &�����������3���!����,���������������������������>?;$=@� 0������������������������������!��!&�����������������

+������������ �����������!������!���)�������������)�������������.6�=�3�

�������������������������� &��������������&������������

Page 15:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

���� &��������������

� 5�������&����������������������������������������������������!"���������������������)������ ���������������������(

� .4� .4A� 6�0���� �������B� ���� �.���� A$;C�� ���<.%�

� 5�������&����������������-���,�������������!���������������2����������������)�����

Page 16:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Subred 2

11

IPX 2IPX 2 VLANsVLANs IPXIPX

Subred 1

IPX 1 IPX 1 –– broadcastbroadcast

22 33 44 55 66

VLANsVLANs IPIP

PuertosPuertos

IPX 1IPX 1

Switch con VLANs

DefaultDefault VLAN VLAN DefaultDefault

Subred 3

VLANsVLANs

DefaultDefault 1 1 –– 66IPX 1IPX 1 5 5 –– 66IPX 2IPX 2 1 1 –– 44IP IP 11 1 1 –– 22IP 2IP 2 3 3 –– 44IP 3IP 3 5 5 –– 66

NNúúmeromeroPuertoPuerto

�'�!���(�����&��������������

Page 17:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

���� &������&���

� 5�������&������&�����������������������������������������������!�!�����������/�&���

� 5�������&������&�����-���,�������������!���������������!�������������������+��������&���������)���

� �������&������&�������������������!����,���������������)��������!�!��&���

Page 18:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

0�!�������������������.�����)����+���������!

� .�����)����+���������(

� .�)��!��+��#���������!

“Tag”Cabecera MAC Cabecera IP Datos...

Ejemplo: Etiqueta (“tag”) Estándar 802.1 Q

Page 19:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�����������������

TAG eliminada

VLAN AVLAN B

Cabecera MAC Cab. IP Datos...

TAGañadida

11

22

33 44

55

VLAN ACabecera MAC Cabecera IP Datos...

VLAN A

VLANB

802.1Q 802.1Q

Downlink con VLANs A y B

Cabecera MAC Cab. IP Datos...

Page 20:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����������>?;$=@

Trama Trama EthernetEthernet NormalNormal

PrePreáámbumbulolo77

SFD: 1SFD: 1 DA: 6DA: 6 SA: 6SA: 6Tipo/Tipo/Longitud:Longitud:22

Datos: 48 a 1500Datos: 48 a 1500 CRC: 4CRC: 4

PrePreáámbulombulo77

Datos: Datos: 48 a 150048 a 1500 CRC: 4CRC: 4

Trama Etiquetada 802.1QTrama Etiquetada 802.1Q

22TPITPI

22TAGTAG

Bits del VLAN ID (VID) identifican 4,096 Bits del VLAN ID (VID) identifican 4,096 VLANsVLANs posiblesposiblesCFICFIPrioridadPrioridadusuariousuario

3 3 bitsbits

1 1 bitbit 12 bits12 bits

Campos insertados

SFD: 1SFD: 1 DA: 6DA: 6 SA: 6SA: 6 Tipo/Tipo/LongitudLongitud:2:2

Page 21:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�'�!�������������+�(�

��������������5�������������������

Page 22:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6�������� ����������������������)�����������������+���

� �����!������������������(

� ������+��������")��������������

� 0�������+������&�����

� �����"����.����>?;$=@����!�������������+��������������������������!������

� 0������������������)��������������8����

� ����������������������������� (� <�����4������)����

� <�����4��������

� <�������&����

� ��������������(�D��������E ,�D����B�����E

Page 23:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6�������

� ���������������2������������!������,����)����+�������������

� ��������&�,�����������������)����

� ������!�����������������������8��>?;$=@

VLAN 1

VLAN 1

VLAN 3

VLAN 2

VLAN 2

VLAN 3

VLAN 1

Page 24:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6�������� �����)����������&���������������.4

� ����)�����+���������������" ����������&����.4

� ������������������������������"����������.4

VLAN 310.20.0.0

VLAN 110.16.0.0

VLAN 210.16.1.0

Page 25:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6������� "�����

Page 26:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6�������#�$%&'()

Page 27:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6�������

� �������+���������������������������+�����������

� �����������+����#�������������

� ������������)����������!�������� ������

vlan make trunk-port gi.4.1vlan create usuarios ip id 240vlan add ports et.2.8 to usuariosvlan add ports gi.4.1 to usuarios

Page 28:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6�������

� ��������������;

VLAN 1

Usuarios en una misma VLAN e igual red IP se pueden ver

Page 29:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

VLAN 1

VLAN 2

Usuarios en distintas VLANs e igual red IP NO se pueden ver

����� ������6�������

� ��������������;

Page 30:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����� ������6�������� �������+����������)���.4����������������

� 0������.4���������������+��������������������

� �����������"���������������;�,��������F

� 5����������)�����������������������������������������!������

interface create ip usuarios vlan usuariosaddress-netmask 10.16.0.1/24mtu 1500 output-mac-encapsulationethernet_ii

Page 31:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� ������������������!������+���������������������������������������� ������2�����������������������F

� ��D�������0���������������E ��0�����)�����������������+������������

� 5���0�����!������������������!����+������������&"����������������!�������������

� ���������������(� ����������+0�������*������������

� 0�������1�0���0�������*������������

� ���0�������������������")��������������!���������������������

����� ������6�������

Page 32:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Usuarios en distintas VLANs y diferente red IP SÍ se pueden ver

VLAN 110.16.0.0

VLAN 210.16.1.0El router de Nivel 3

conmuta el tráfico IP entra redes

����� ������6�������

� ��������������F

Page 33:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Usuarios en distintas VLANs y diferente red IP NO se pueden ver

VLAN 2172.16.1.0

Las ACLs impiden la comunicación entre las redes IP

VLAN 1172.16.0.0

����� ������6������� * �+��

� ��������������F

Page 34:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� 5���0�����������8���������!�����������+�

� ����)��!��+����������!�����!��������������������!���������0�

� ����������������������� ������

� �-������������������)���������������+�

� ����������������������������������������������������������!���������

� ����0���������������������)������������

����� ������6������� * �+��

Page 35:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

acl usuarios permit ip 10.16.0.0/24 10.16.0.0/24acl usuarios permit ip 10.20.0.0/24 10.20.0.0/24

acl usuarios deny ip 10.16.0.0/12 10.16.0.0/12 log

acl usuarios permit ip any any

����&������-������!����������")��������������������

���)����������")��������������������������������

������!���������������������.�������

+�����������������+�

����� ������6������� * �+��

Page 36:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

acl nodo0 permit ip 172.16.0.0/24 172.16.1.0/24acl nodo0 permit ip 172.16.1.0/24 172.16.0.0/24

acl nodo0 permit ip 172.16.0.25/32 172.16.2.0/24acl nodo0 permit ip 172.16.2.0/24 172.16.0.25/32

acl nodo0 apply interface iinf000 input outputacl nodo0 apply interface iusu000 input output

4�����!����������")�����������������

4�����!����������")�����������������������������!����

������������0�����������)��

+�����������������+�

����� ������6������� * �+��

Page 37:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

2

����������'����� ����

3

��������

��������

����� ������6������������������������

Page 38:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�����������'�����'������������-.

��������-/

��������

��������

��������

��������

����� ������6��,��������������

Page 39:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

/-(-(-(.,�.44(.44(.44(.4.

/-(-(-(3�.44(.44(.44(.4.

/-(-(-(,�.44(.44(.44(.4.

/-(-(-(/.�.44(.44(.44(.4.

/-(-(-(/5�.44(.44(.44(.4.

/-(-(-(.-�.44(.44(.44(.4.

/-(-(-(.3�.44(.44(.44(.4.

/-(-(-(-�.44(.44(.44(.4.

����� ������6��6��������!���������� ������������

Page 40:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�������������������������

������������������������ ������������������������

��������

��������

��������

��������

��������� ���������

����� ������6��6��������!���������� ������������

Page 41:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� ��!��(

� 5�������������������

� ������������)������������;(�

� ������+��������")����������

� 0�������+�����&�����

� ���� ���������F(�

� ��&�����.4�

� 4��!��������")����������2�������0�

� 0�������������������;�/ ������F

� �0�(�6�)�����+����������������������������-�����

� �����!����������������������(

� *��&���

� .���������

����� ������6�������

Page 42:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

������������������ ��� ����� ��

���������� ������������

Page 43:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� �������� -.��� ������� ���������/��������� 0������������� ����0�������������� ��������� ��������1���0������������� ����2 ����3��� ���0��3�"�������

� ������������� �������4��������5���0� �������� 6�����������0�����0����#

� ��4� -����*�*�����4��������5������/� �&4� -������&�4��������5������/� "�!�� -"��������������!�������/

����4��������5�����������

Page 44:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Conexión

PPP Datos

� �&4������4�������������� � �����

� ������ ��������������������� 7� �����0��������������� �����0�� ���������� �������'�

� ���0����� ��"!��������� �����0������������

� ��������� ������������� ����������

� ����8�����7����������������-���/

� +7�����5��9���7�:�����7����������������-+9��/

� �!*+9��

����4��������5�� � � � ���

Page 45:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� �������� ��� ��0�������������� �������� ����� ������������ �����������������������������������'

� ;.,���������������� ���"�#� "���0������������5�

� ����������� ;.,����������������� ���"���������� ���"�������������<='

� "���0�������������� ����������� "������� ���������� ��������0��;.,�������4����%1%$%%

����4��������5�� � � � ���

Protocolode entrega

GRE Header

Payload Protocol

Información(x Octetos)

GRE (Generic Routing Encapsulation Protocol)

Page 46:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� ,�����������5���4��������� &����� ����������� �������� ��+����

� ��������� ������������0����� ����>���������� ?������ 4+��- �����������1���/

� �������� ������ ?������ �������;.,�&� ;.,�� ����4��������1� ���� ��5������������� ������� ��"�3��0����,?"���"�@'

� A���������� ��� � ������ ������� � ������ �� �

����4��������5�� � � � ����

Media Header

IPHeader

GREHeader

PPPPayload

PPPHeader

Page 47:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� +0���4�3��&4���� ��������0�����������������������5�

� �&4���� ���������� ����� ��� ������ �0 ���������&������� �����������5����������� ��+���&� +���B��������&�C�8����5�-�&C/� ��4�

� �&4���0 ��� �� �����������������������'� �&4��������� � ��?A�� �&4���� 0�� �����������������5���� �����4���� ������� �������������� ;.,'

����4��������5�� � � � ����

IP Header

UDP Header

L2TP Header

UserData

PPP IPHeader

Page 48:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Capa de Transporte

Capa de Red

Capa de Enlace

Capa Física

TCP, UDP

IP

Protocolos de enlaceInfrastructura física

����4��������5�� � � � ��� �

IPSec

L2TP/ PPTP

� Protocolo abierto, basado en estándares, protocolo de seguridad de capa de red.� Pensado para proteger datagramas IP� Robustos Mecanismos para

autenticación y encriptación� Puede proteger todo el datagrama o

únicamente el protocolo de capasuperior (Modo Transporte o Túnel)

Page 49:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� "�!���������� ��D��E ����������

� �4��������G 4������ ������������ �������������������.4��,���

G ������� ����������.������

G 0�!��������� :����:��

� �42���G 4������ �������!���!�����

G 4������������������������ ������ .4

G *���,��*���,

����4��������5� ! � �� � � � ��� �

Page 50:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

AuthenticationHeader

(AH)

EncapsulatingSecurityPayload

(ESP)

!�

!�

"���5��� �������

!�!�,!�

�!��9

+����������� ���� ���-,�����������/

������������������5�� ���� ���

+� �����

o Dos protocolos diferentes

����4��������5�� � � � ��� �

Page 51:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����4��������5�� � � � ��� � ��� ! ������ ���"���#�

StandardIPheader

ESPHeader

TCP Data ESPTrailer

OptionalESPAuthentication

Security Parameter Index (SPI)

Número de secuencia

Payload (tamaño variable)

Padding (0-255) Pad Ln.Next Hdr.

Datos Autenticación (ICV, variable)

Autenticado

Encriptado

Cabecera ESP

TCP y Datos

ESP trailer

OriginalIPheader

TCP DataPaqueteOriginal

PaqueteModoTransporte

Page 52:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����4��������5�� � � � ��� � � ! �$� � "���#�

Cabecera IP, TCP y Datos

NewIPheader

ESPHeader

OriginalIPheader

TCP Data ESPTrailer

OptionalESPAuthentication

Security Parameter Index (SPI)

Padding (0-255) Pad Ln. Next Hdr.

Cabecera ESP

ESP trailer

OriginalIPheader

TCP Data

PaqueteOriginal

PaqueteModoTúnel

Número de secuencia

Payload (tamaño variable)Encriptado

Autenticado

Datos Autenticación (ICV, variable)

Page 53:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����4��������5�� � � � ��� � � ! � "%&#�

Se autenticala cabecera IP

NewIPheader

AH OriginalIPheader

TCP Data

OriginalIPheader

AH TCP Data

Security Parameter Index (SPI)

Número de secuencia

Datos de Autenticación (variable)

OriginalIPheader

TCP DataPaqueteOriginal

PaqueteModoTransporte

Next header Payload Ln. Reservado

PaqueteModo Túnel

Autenticado

Page 54:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� F)�G ��������������� ������ ��������H� 9����������� ��������� ��� ��������������� ����������

� ���������� ��������������� ����������� ������� �������

����4��������5�� ! �� � �� � � � �

Escenario PPTP / PPP L2TP / PPP IPSecTransport

IPSecTunnel

Accesoremoto

ConexiónOficinas

Extranet

Intranet segura

(IP)

(IP)

Page 55:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� "���5����&4�����"�!����&4���������� ������������� ��������

� �������������������� +�����*�*���

�"�!���������� ������������� �����0������

�"�!���������� � ���� 0������0� ��������������

�"�!���������� ������������� ����������

��&4���������� �����0����*�����

"���5����0 �������� �������5��0������������ ���� ������� ��������'������ �������� �0��������� ���������� ����������7������������ �������� �0����'

����4��������5������ ����� �

Page 56:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����4��������5'� � ���� �� � � � � ����(��� �

PPTP / PPP

L2TP / PPP

L2TP/ IPSecTransport

IPSecTúnel

Autenticaciónde usuario

Autenticaciónde máquina

Compatibilidadcon NAT

Multi-protocoloTuneliza la dirección IP

Autenticaciónde paquetes

SoportaMulticast

Segúnfabricante

Segúnfabricante

Page 57:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

������ ������������� �( %�� ������

Aut

entic

ació

nE

ncri

ptac

ión

"A,!3�6A,!

�����,�-.+</

�3�"��I"�J�+���������

��.�A"?!

��!0����+��

+������0������

""I,

��,��

���!*+9��

������J�+9��

�&4���4�"�!�������

P = Propio de PPP I = Propio de IPSec

Page 58:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�������4������������B���������4������������B���4��4���

"�!��"�!��-A�����/-A�����/

!������������������-!�/"��������I���,1�7��5��-"I,/�

Page 59:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� K7���8��������!�����������������H

� ������8�����������������������������������:���� 7���������))���&��������������

� 7���������!��������������������-���������������

"�!��� ������%�� ��� ��"�%#

SA’s are uni-directionalRequire one for each direction

Identified by an SPI (Security Parameter Index)

Can be created Manually or Dynamically

* ,�����������5���70

* ���7������������5���70

* ���-�9���,!�/

* !��!����������

* !������*4�0�

* I�������*4�0�

Page 60:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� K7������"I,H� ���������8������1�7��5���7������0�����7�������7��!����������'

� "I,�����������������������0�8�:����1�7��5���7�������0��������0������'�

� ��������1�7��5�����7��!�������������L

� ����������0�����I���������7��������*��0������I���

� 47����������!������*��0��8��7��������:����5�M �������������������7���'

"�!����� �� ��) ���*�+��, �"�)�#

Page 61:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Provides a protocol for two authenticated parties to agree on secure and secret keying material.

(Internet Security Association and Key Management Protocol)

Provides a flexible framework

Oakley / SKEMEISAKMP

IKE

(Oakley Key Resolution)

IPSecInternet Key Exchange (IKE)

Page 62:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Phase 1 can use either:• Oakley Main Mode• Oakley Aggressive Mode

Phase 2 uses:• Oakley Quick Mode

Phase 1Establish secure channel

(IKE SA)

Phase 2Negotiate general

purpose SAs

IPSecNode A

IPSecNode B

IPSecNode A

IPSecNode B

"�!����� �� ��) ���*�+��, �"�)�#

IKE has two Phases of operation

Page 63:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

SA Header

Header SA

ResponderInitiator

o Designed to exchange a “Master Secret” - Very processor intensive!o Phase 1 is done infrequently – once per day o Phase 1 can support multiple phase 2 sessionso Main Mode is a 6 step handshake process

"�!���)��- , ��� ��. �+�� �/�"����� ! #

Which Option would you like?

I would like option 2

Header Key Noncer

Noncei Key Header�

Here’s my Public DH Key

Here’s my Public DH Key

Sigi [Cert] IDi Header

Header IDr [Cert] Sigr

Encrypted

EncryptedHere’s my ID for you to check

Here’s my ID for you to check

Page 64:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Noncei Key SA Header

Sigi [Cert] Header

ResponderInitiator

Header SA Key Noncer IDr [Cert] Sig

o Aggressive Mode is quick but less secure o This mode does not protect the User IDo 3 Step negotiation process

"�!���+�� �/�"%,,� ��0 �� ! #

Page 65:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

Header Hash2 SA Noncer [Key] [Idui/Idur]

[Idui/IDur] [Key] NonceI SA Hash1 Header

ResponderInitiator

o Phase 2 is used to exchange the SAs and keys that will be used to protect the user data

o This phase is done every few minutes

Hash3 Header Can you decrypt this?Hash Checks OK

Can you decrypt this? Hash Checks OK?

Which options?

Can you decrypt this? Hash Checks OK? I accept Option 2 ?

"�!���+�� ���"1��2�� ! #

Generate Keys

Page 66:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

+��������

� C�����8���������3���0��������������3����4������7�����8��

� 4�������!����/���������������

� 4�������������������������)���0�����/��/���

� 0�����&������)�������,/��/����,��4��������

� C������������������������������������&4�

� ������������9����/���������������

� 0��&������)���&����0�����/��/�������*���,/��/*���,��4��������$

� C���0�����������������������"�!��

� 4����������&���,��!�)����������,���������������������$

� *������������)���*���,/��/*���,��4��������

� �����������)���������!����!B���������,���������������

� C���0��������������� ����������������������"�!��J�&4�

Page 67:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

0�����������4�

� 5�������+�������������� ,���5����5�������3����1� ��3������� ��,�!�,��0�����������������$

� .��������������������������!������+��������������������������������������"�� ��������.����2�,�����

� !�5���� �����2��!�������������������$

Page 68:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

� 5���4�������!�������5��������!�����

������������������������������1�������

����2 ���� ��$�$�.��������$

Red IP / Internetpor red privada:

• Segura

• Autónoma

• Calidad garantizada(QoS)Por red pública:

• Económica

• Flexible

• Escalable (-)

0�����������4�

Page 69:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

%���������������

� C��0�.����

� +�4�

� �A!�(�� =;>BH;CIB

� =;>BHC=;B3�

� F??H;9$

� A�������-.4+J.A!"/

Remote Office

Central corporativa

Remote Office

Dial Up(IPsec)Internet

PlataformaVPN e IP Core

ADSL

CATV

Frame Relay

IDC

L2TP

L2TP

Page 70:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�4�

� ����������������7������ ���!���������������4�$

� ����������+������������������������&��������)����������1�����*���,�4�������*���,�4����&������������,������)����������.������

Internet

Cliente VPN

Servidor VPN

Firewall GatewayVPN

ServidorIntranet

Texto claro

Encriptado

Host Intranet

Page 71:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

����������4�

� ����������������7������ ���!�������������4�

� �����������������2�"��.4�� �������������")���������,���������������$

Internet

Cliente VPN

Firewall

DMZ

Servidor VPNpara centros asociados

Servidor VPNpara clientes

ServidorVPN Intranet

Encriptado

Page 72:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

*���,�4�

���������������-���!����������

�����������������"������������������������)������ ����������������")��������1�������*���, �4��

�������������D������2��E ����1���������*���, �4�

Internet

VPN GatewayVPN Gateway

LANRemota

LANServidor Intranet

Servidor Intranet

Texto claro

Encriptado

Page 73:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

�4�����0����������

� ���������������-���!����������� ��������2������������������")����������������� �����������-������!���"������� ,�����,� ��������!����������!����(

� 6���������")������������� 7��'���������������")�����������������

Internet

Gateway VPN

GatewayVPN

LAN Remota LAN

Texto claro

Cliente VPN

Encriptado

Page 74:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

���0��!����+�������������94��

����� �����

������������������ ��������!������������!����

���"�����#�$!����!�

��������������%��"$&��'"(

������������������ ��������!�����������!����

������������������ ��������!������������!����

������������������ ��������!�����������!����

Page 75:  · PPP IP Header. Capa de Transporte Capa de Red Capa de Enlace Capa Física TCP, UDP IP Protocolos de enlace Infrastructura física 4 ˆˆ ˆ5 ˜ ˇ IPSec L2TP/ PPTP Protocolo abierto,

0+!��)�������.4���

Gestor depolíticas

Gestor declaves

Firewall

PseudoIP

Interceptor

Nivel de red

IP

TCP, UDP, ...

Aplicación

HW

IPSec

Nivel de usuario

Kernel

IKE

SA