레이블이 Arista인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Arista인 게시물을 표시합니다. 모든 게시물 표시

2016년 9월 23일 금요일

Arista VXLAN HER

Arista는 두가지 VXLAN Tunneling 방식을 지원한다.

  1. RFC7348은 Broadcast, Unknown packet을 multicast packet으로 encapsulation하여 PIM router에서 Flooding하여 peer VTEP가 수신할 수 있는 방식을 설명한다.
  2. 하지만 많은 사업자들이 IP multicast를 지원하지 않는 경우가 있기 때문에 multicast가 아닌 unicast로 encapsulation하는 방식도 지원하는데 이를 HER(Head End Replication) 이라고 한다.
이번 포스트에서는 Unicast Based(HEF) VXLAN을 시험해보도록 한다.


Test Env.

  • GNS3 Local Server (1.5.2)
    • vEOS x 2 (4.16, VirtualBox, 1.5 GB)
    • c7200 x 1 (15.2(4)M8, Dynamips)
    • Ostinato (VirtualBox, 256 MB)




Test

HER VXLAN은 underday network으로 IP multicast를 사용하지 않으므로 Test network에 PIM 설정을 생략한다.

Broadcast tunneling packet


Destination IP address와 MAC address가 unicast address를 사용하고 있다.


Unknown Unicast tunneling packet


Destination IP address와 MAC address가 unicast address를 사용하고 있다.



Known unicast tunneling packet


vEOS-1#show mac address-table
          Mac Address Table
------------------------------------------------------------------
  
Vlan    Mac Address       Type        Ports      Moves   Last Move
----    -----------       ----        -----      -----   ---------
  10    0000.0000.0011    DYNAMIC     Et2        47      37 seconds ago
  10    0000.0000.0022    DYNAMIC     Vx1        1       37 seconds ago
Total Mac Addresses for this criterion: 2
  
          Multicast Mac Address Table
------------------------------------------------------------------
  
Vlan    Mac Address       Type        Ports
----    -----------       ----        -----
Total Mac Addresses for this criterion: 0

VXLAN 관련 확인

vxlan을 통행 learning된 mac address-table 확인

vEOS-1#show vxlan address-table
          Vxlan Mac Address Table
----------------------------------------------------------------------
  
Vlan  Mac Address     Type     Prt  Vtep             Moves   Last Move
----  -----------     ----     ---  ----             -----   ---------
  10  0000.0000.0022  DYNAMIC  Vx1  2.2.2.2          1       0:00:54 ago
Total Remote Mac Addresses for this criterion: 1


vxlan를 통해 수신된 peer VTEP list

vEOS-1#show vxlan vtep
Remote vteps for Vxlan1:
2.2.2.2
Total number of remote vteps:  1


Configuration

vEOS-1


! Command: show running-config
 ! device: vEOS-1 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
no lldp run
!
hostname vEOS-1
!
spanning-tree mode mstp
!
no aaa root
!
vlan 10
!
interface Ethernet1
   no switchport
   ip address 10.1.1.2/30
!
interface Ethernet2
   switchport access vlan 10
!
interface Ethernet3
!
interface Ethernet4
!
interface Loopback0
   ip address 1.1.1.1/32
!
interface Management1
!
interface Vxlan1
   vxlan source-interface Loopback0
   vxlan udp-port 4789
   vxlan vlan 10 vni 4096
   vxlan flood vtep 2.2.2.2
!
ip routing
!
router ospf 1
   router-id 1.1.1.1
   network 1.1.1.1/32 area 0.0.0.0
   network 10.1.1.0/30 area 0.0.0.0
   max-lsa 12000
!
!
end

c7200


Building configuration...

Current configuration : 1343 bytes
!
! Last configuration change at 17:24:29 UTC Fri Sep 23 2016
upgrade fpd auto
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname c7200
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
redundancy
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex half
!
interface FastEthernet1/0
 ip address 10.1.1.1 255.255.255.252
 duplex auto
 speed auto
 no keepalive
!
interface FastEthernet1/1
 ip address 20.1.1.1 255.255.255.252
 duplex auto
 speed auto
 no keepalive
!
router ospf 1
 router-id 5.5.5.5
 network 5.5.5.5 0.0.0.0 area 0
 network 10.1.1.0 0.0.0.3 area 0
 network 20.1.1.0 0.0.0.3 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
no cdp log mismatch duplex
no cdp run
!
!
!
control-plane
!
!
!
mgcp profile default
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line vty 0 4
 login
 transport input all
!
!
end


vEOS-2


! Command: show running-config
 ! device: vEOS-2 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
no lldp run
!
hostname vEOS-2
!
spanning-tree mode mstp
!
no aaa root
!
vlan 10
!
interface Ethernet1
   no switchport
   ip address 20.1.1.2/30
!
interface Ethernet2
   switchport access vlan 10
!
interface Ethernet3
!
interface Ethernet4
!
interface Loopback0
   ip address 2.2.2.2/32
!
interface Management1
!
interface Vxlan1
   vxlan source-interface Loopback0
   vxlan udp-port 4789
   vxlan vlan 10 vni 4096
   vxlan flood vtep 1.1.1.1
!
ip routing
!
router ospf 1
   router-id 2.2.2.2
   network 2.2.2.2/32 area 0.0.0.0
   network 20.1.1.0/30 area 0.0.0.0
   max-lsa 12000
!
!
end


후기



  • Cisco 장비가 underlay network으로 IP multicast를 사용함으로써 PIM ASM 똫는 PIM Bidir를 장비별로 요구하는데 반해, Unicast IP를 사용함으로써 Deployment의 제약이 적은것 같다.

2016년 9월 4일 일요일

Arista MLAG

개요


  1. 서로 다른 장비와 LACP 구성을 할 수 있어서 Link redundancy 뿐만 아니라 Node redundancy를 지원한다.
  2. 전체적으로는 Loop 구성이지만 STP로 인한 Block port가 발생하지 않아서 Bandwidth 효율성을 높일 수 있다.

Test Env.

  • Aboot-veos-8.0.0.iso
  • vEOS-lab-4.16.6M.vmdk
  • GNS3 VM 1.4.6 (6 CPU, 6 GB Mem)
    • 4 x vEOS (QEMU, 1,280 MB Mem)
    • 1 x Ostinato (256 MB Mem)


사전준비

GNS3 VM를 이용해서 vEOS를 QEMU로 생성하도록 한다.



Test

두 MLAG Switch간에 priority에 따라서 mlag sys-id를 선출한다.

MLAG-1의 lacp system-id



MLAG-2의 lacp system-id




이같이 선출된 mlag sys-id는 lacp-1, lacp-2 switch와 LACP를 맺을 때 system-id로 사용된다. 결국 LACP Switch는 동일한 system-id를 가진 PDU를 수신하게 된다.

LACP-1 e1 포트에서 tcpdump

MLAG-1이 보낸 PDU를 보면 Actor system id를 "00:00:ab:85:37:5e"로 보내고 있다.

LACP-1 e2 포트에서 tcpdump

MLAG-2이 보낸 PDU를 보면 Actor system id를 "00:00:ab:85:37:5e"로 보내고 있다.

MLAG-1 에서 show



절체

  • Iinitial traffic flow
    1. 1->2->6->8
    2. 8->6->2->1
  • Link 1 절체
    1. 1->3->7>8
    2. 8->6->4->3->1
  • Link 4 절체
    1. 1->3->7->8
    2. 8->6->5->3->1


Configuration

MLAG-1

! Command: show running-config
! device: mlag-1 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
hostname mlag-1
!
spanning-tree mode mstp
no spanning-tree vlan 4094
!
no aaa root
!
vlan 30
!
vlan 4094
   trunk group mlagpeer
!
interface Port-Channel3
   switchport mode trunk
   mlag 3
!
interface Port-Channel4
   switchport mode trunk
   mlag 4
!
interface Port-Channel10
   switchport mode trunk
   switchport trunk group mlagpeer
!
interface Ethernet1
   channel-group 10 mode active
!
interface Ethernet2
   channel-group 10 mode active
!
interface Ethernet3
   channel-group 3 mode active
!
interface Ethernet4
   channel-group 4 mode active
!
interface Management1
!
interface Vlan4094
   no autostate
   ip address 10.0.0.1/30
!
no ip routing
!
mlag configuration
   domain-id mlag1
   local-interface Vlan4094
   peer-address 10.0.0.2
   peer-link Port-Channel10
!
!
end

MLAG-2

! Command: show running-config
! device: mlag-2 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
hostname mlag-2
!
spanning-tree mode mstp
no spanning-tree vlan 4094
!
no aaa root
!
vlan 30
!
vlan 4094
   trunk group mlagpeer
!
interface Port-Channel3
   switchport mode trunk
   mlag 3
!
interface Port-Channel4
   switchport mode trunk
   mlag 4
!
interface Port-Channel10
   switchport mode trunk
   switchport trunk group mlagpeer
!
interface Ethernet1
   channel-group 10 mode active
!
interface Ethernet2
   channel-group 10 mode active
!
interface Ethernet3
   channel-group 3 mode active
!
interface Ethernet4
   channel-group 4 mode active
!
interface Management1
!
interface Vlan4094
   no autostate
   ip address 10.0.0.2/30
!
no ip routing
!
mlag configuration
   domain-id mlag1
   local-interface Vlan4094
   peer-address 10.0.0.1
   peer-link Port-Channel10
!
!
end

LACP-1

! Command: show running-config
! device: lacp-1 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
hostname lacp-1
!
spanning-tree mode mstp
!
no aaa root
!
vlan 30
!
interface Port-Channel3
   switchport mode trunk
!
interface Ethernet1
   channel-group 3 mode active
!
interface Ethernet2
   channel-group 3 mode active
!
interface Ethernet3
   switchport access vlan 30
!
interface Ethernet4
!
interface Management1
!
no ip routing
!
!
end

LACP-2

! Command: show running-config
! device: lacp-2 (vEOS, EOS-4.16.6M)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
hostname lacp-2
!
spanning-tree mode mstp
no spanning-tree vlan 4094
!
no aaa root
!
vlan 30
!
interface Port-Channel4
   switchport mode trunk
!
interface Ethernet1
   channel-group 4 mode active
!
interface Ethernet2
   channel-group 4 mode active
!
interface Ethernet3
   switchport access vlan 30
!
interface Ethernet4
!
interface Management1
!
no ip routing
!
!
end

후기

  • VEOS를 VMware를 통해 VM을 생성할려고 했으나, LACP구간에 Loop가 발생했다.
    • VirtualBox를 이용하는 경우는 정상 동작했으나, CPU 부하가 심했다.
  • 부하를 줄이기 위해 LACP VM은 Cisco IOU L2를 사용할려고 했으나 VEOS와 연동되지 않았다.
  • Ositnato에서 Packet을 100pps 보내면 CPU load가 심해서 그런지 일정시간 이후에는 VEOS에서 전혀 처리하지 못해서 10 pps만 보냈다.
  • Wireshark로 캡쳐할려고 했으나, QEMU간의 Link는 지원하지 않아서 VEOS의 Tcpdump를 이용했다.

홈