網頁

2009年7月22日 星期三

2009.7.22 SOL9487: BIG-IP support for neighboring VRRP/HSRP routers

SOL9487: BIG-IP support for neighboring VRRP/HSRP routers

Summary
VRRP and last hop compatibility
Disabling the auto_lasthop setting
Using the Last Hop Pools setting with HSRP
VRRP / HSRP router groups
Virtual router addressing

Summary

Virtual Router Redundancy Protocol (VRRP) and Hot Standby Router Protocol (HSRP) are router redundancy protocols designed to increase the availability of the default gateway servicing hosts on the same subnet. This increased reliability is achieved by sharing a virtual router IP address among multiple physical routers (virtual router group) to provide a fault-tolerant gateway and seamless failover in the event of a physical router failure.

When the BIG-IP system is in a routing path adjacent to VRRP/HSRP routers, the BIG-IP system's default stateful response traffic management may interfere with seamless VRRP/HSRP failover. To support the intended failover mechanics, the BIG-IP system may be configured to perform less stateful IP forwarding.

The BIG-IP system's default behavior is to return response traffic along the same path by which the request arrived, even if a routing table entry might dictate otherwise. The BIG-IP system records the MAC address from which the frame was forwarded (the last hop) and uses the same MAC address to forward response traffic instead of referring to the routing table. This last hop management behavior may interfere with the flow of traffic when a neighboring VRRP or HSRP router group experiences a failover of the master router hosting the virtual gateway IP addresses.

For example, the connection flow established for the following SSH connection shows that the BIG-IP system has recorded the MAC address 00:0f:f8:11:11:11 as its last hop address (the L2 address from which the request was sent):

VIRTUAL any:any <-> NODE 10.10.10.10:ssh
CLIENTSIDE 172.16.111.111:60710 <-> 192.168.10.1:ssh
(pkts,bits) in = (113, 76048), out = (91, 199136)
SERVERSIDE 172.16.111.111:60710 <-> 192.168.10.1:ssh
(pkts,bits) in = (91, 199136), out = (113, 76016)
PROTOCOL tcp UNIT 1 IDLE 5 (300) LASTHOP 4095 00:0f:f8:11:11:11

This last hop MAC address will be used in lieu of any routing table information to return the response to the client via the same path it arrived.

The BIG-IP system’s last hop functionality reduces both latency and network congestion by eliminating a large percentage of routing table lookups and ARP requests. The last hop functionality is efficient for most load balancing scenarios in a static L2 / L3 network (where the hops surrounding the BIG-IP system do not share or change MAC or IP addresses). However, it may interfere with protocols like HSRP/VRRP, which do share virtual MAC and IP addresses. In those cases, F5 Networks recommends modifying the default last hop configuration so response traffic may be handled more flexibly upon failure of the master router. The BIG-IP system can manage the last hop functionality with the auto_lasthop setting, which is enabled by default, or the Last Hop Pools setting.

Because VRRP and HSRP differ with regard to the use of the virtual IP address, a different BIG-IP configuration is recommended in each case:

  • To support neighboring VRRP router groups, the default global auto_lasthop setting must be disabled, and the Last Hop Pools setting may not be used.
  • To support neighboring HSRP router groups, the Last Hop Pools setting is the preferred solution, but may not work in all cases. If last hop pools are not configured, the auto_lasthop setting must be disabled.

Important: As vendor implementations may vary, F5 Networks recommends testing thoroughly to confirm actual behavior with the intended configuration.

VRRP and last hop compatibility

The BIG-IP system’s last hop functionality is not compatible with VRRP; the BIG-IP system must be able to detect a master router failure, and is unable to do so when monitoring VRRP router groups.

VRRP uses the IP address of the configured master router as the virtual router group IP address. Upon failure of the configured master router, the virtual IP address floats to the new master router. When the configured master router recovers, it again resumes hosting the virtual router group address. Since the virtual IP address is the only address available for monitoring the configured master router, and that address floats to the backup router when the configured master router fails, the IP address corresponding to the configured master router always appears available, preventing the BIG-IP system from detecting the master router failure.

For example, the following VRRP configuration using the Last Hop Pool setting will result in traffic being sent to the configured master router even after it fails:

Router 1 (master) ROUTER 2 (backup)
IP=10.10.10.1 IP=10.10.10.2
MAC=00:60:cf:11:11:11 MAC=00:60:cf:22:22:22
VIP=10.10.10.1
VMAC=00:00:5e:00:01:01

pool my_vrrp_lasthop_pool {
action on svcdown reselect
monitor all gateway_icmp_transparent_short_timeout
members
10.10.10.1:any ## Real IP of router
10.10.10.2:any ## Real IP of router
}

To monitor the pool members, the BIG-IP system first sends an ARP request to learn the MAC address of each. The master router will respond to the ARP who-has 10.10.10.1? request with the virtual MAC (VMAC) address 00:00:5e:00:01:01. The backup router 10.10.10.2 will respond to the ARP who-has 10.10.10.2? request with its unique MAC address 00:60:cf:22:22:22. The BIG-IP system will send the monitor for pool member 10.10.10.1 to the VMAC.

If the configured master router fails, the backup router will assume the virtual IP and MAC addresses 10.10.10.1 and 00:00:5e:00:01:01. When the BIG-IP system again sends the monitor request for pool member 10.10.10.1 to the virtual MAC address, and receives the expected response from the backup router. Thus, the pool member corresponding to the virtual IP address will always appear healthy to the BIG-IP system, and a new pool member will not be reselected. Any traffic that originated from the failed pool member's unique source MAC address will be impacted.

With the auto_lasthop setting enabled, a similar issue arises. The BIG-IP system cannot detect a master router failure, and will continue to send response traffic to its unique MAC address. Any traffic that originated from the failed pool member's unique source MAC address will be impacted.

Therefore, when using VRRP, F5 Networks recommends disabling auto_lasthop globally and avoiding the use of last hop pools, instead depending on IP routing to forward response traffic to its next hop.

Disabling the auto_lasthop setting

To disable the auto_lasthop setting from the BIG-IP GUI, clear the auto_lasthop check box on the System->General Properties->Local Traffic screen.

To disable the auto_lasthop setting from the command line, type the following commands:

# bigpipe db Connection.AutoLasthop disable
# bigpipe save

Note: Disabling the auto_lasthop setting may affect system performance. Without it, the BIG-IP system must instead ARP for MAC addresses and perform routing table lookups rather than using last hop data from the connection table. In addition, Packet Velocity Accelerator (PVA) will also be disabled globally when the auto_lasthop setting is disabled on platforms with a PVA.

F5 Networks is currently tracking enhancement request CR100152 to enable or disable the auto_lasthop setting on a per virtual server basis in order to avoid this performance penalty for unrelated virtual servers.

Using the Last Hop Pools setting with HSRP

The Last Hop Pools setting provides both high availability and security by allowing the BIG-IP system to select an alternate L2 return path from the remaining healthy members of the last hop pool when an active member of the pool fails. Last hop pools are configured and monitored similar to firewall or router load balancing pools, but instead of containing destination addresses, they contain the IP addresses of devices from which traffic is expected.
Note: For more information, refer to SOL2211: Using auto lasthop and lasthop pools for firewall load balancing.

As with the auto_lasthop setting, the source MAC address is recorded in the connection table. When response traffic is seen, the BIG-IP system checks the status of the pool member IP address associated with the last hop address, and if the monitor status reflects that the pool member is available, the response traffic is forwarded to that pool member. If the associated pool member is not available, another member of the last hop pool is chosen, and the response traffic is forwarded to that pool member instead.

For example, the following configuration allows the BIG-IP system to use last hop information in preference to the routing table if the master router fails:

Router 1 (Active) ROUTER 2 (Standby)
IP=10.10.10.2 IP=10.10.10.3
MAC=00:0f:f8:11:11:11 MAC=00:0f:f8:22:22:22
VIP=10.10.10.1
VMAC=00:00:0C:07:AC:01

pool my_hsrp_lasthop_pool {
action on svcdown reselect
monitor all gateway_icmp_transparent_short_timeout
members
10.10.10.2:any ## Real IP of router
10.10.10.3:any ## Real IP of router
}

When Router 1 fails, it is marked down by the pool monitor. The BIG-IP system then receives response traffic on a flow with a last hop address of 00:0f:f8:11:11:11. Since the pool member to which that MAC address corresponds is no longer available to pass traffic, the BIG-IP system instead selects the remaining healthy pool member and forwards the traffic to the new MAC address 00:0f:f8:22:22:22.

By default, if traffic arrives on a virtual server from a source other than those defined in the last hop pool (from a MAC address not corresponding to an IP address in the configured last hop pool), the BIG-IP system uses the routing table to forward the response traffic back to the client. This default behavior is appropriate regardless of whether traffic is expected to originate from a last hop pool member. If all traffic is expected to originate from a last hop pool member, network security may optionally be tightened by configuring the BIG-IP system to limit the MAC addresses to which a virtual server will return traffic, or even to reject the offending response traffic. To modify the BIG-IP behavior for response traffic not corresponding to a last hop pool member, you can change the value of the db variable TM.LHPNoMemberAction.

Note: For more information, refer to SOL8290: Change in Behavior: TM.LHPNoMemberAction variable allows control over routing behavior when last hop pools are used.

In order for BIG-IP to detect a master router failure and direct traffic to the new master router, last hop pools must be monitored using a transparent health monitor that ensures that each pool member can not only respond to ICMP on the local interface, but can successfully route traffic to the next hop. F5 Networks recommends a shorter timeout than the default 30 seconds to limit the amount of time a pool member appears healthy to the BIG-IP system after it has failed. Since the monitor timeout must expire before the pool member is marked down, the timeout represents the maximum number of seconds it may take the BIG-IP system to recognize the failure and reselect another pool member when the active pool member becomes unresponsive. For TCP connections, this delay is potentially recoverable, but it may be unacceptable for other protocols.

Note: A health monitor must mark the pool member down to prevent the BIG-IP system from using it and to force reselection of another member. A last hop pool member that is administratively down may still be marked up if the pool member is able to route the health monitor request through its unique IP address.

Note: For more information, refer to SOL350: Recommended health monitor frequency and timeout values and the Transparent gateway ICMP monitors section of SOL8971: Creating transparent ICMP health monitors.

Note: On platforms with a PVA, virtual servers configured to use last hop pools are not eligible for PVA Acceleration.

VRRP / HSRP router groups

Note: The following information specific to VRRP / HSRP is intended to provide context for understanding the flow of L2 and L3 traffic upon router failover, and to help you determine the most appropriate BIG-IP configuration supporting your VRRP/HSRP redundant routing infrastructure. For more information, refer to the following specifications documents:

RFC 3768: Virtual Router Redundancy Protocol (VRRP)
RFC 2281: Cisco Hot Standby Router Protocol (HSRP)

Note: VRRP is non-proprietary, while HSRP is Cisco-proprietary.

HSRP and VRRP are router redundancy protocols; they are not routing protocols and they do not advertise IP routes or affect the routing table in any manner. The members of a virtual router group use a router redundancy protocol for intergroup communications to ensure the virtual router presence always resides on only one physical router (the master router).

In both VRRP and HSRP, a set of routers is configured as a virtual router group. One router is configured as the master router, and hosts the virtual MAC address and virtual IP address shared by the virtual router group (virtual router presence) until it fails, then another router in the group is elected as master and assumes responsibility for the virtual MAC address and virtual IP address.

Members of a virtual router group exchange multicast HELLO packets to communicate the priority and state of the master virtual router. The master router transmits packets using the virtual MAC address as the source MAC address, allowing learning bridges to determine the network segment on which the virtual router currently resides.

Virtual Router Addressing

Virtual Router Group Multicast Addresses

In order to ensure the goal of only one virtual router presence at any time, the virtual router group exchanges status information using the chosen redundancy routing protocol (VRRP or HSRP). Efficient communication to all members of the group is accomplished by multicasting to the multicast group address on the local subnet.

VRRP uses multicast IP address 224.0.0.18 and IP protocol number 112. Only the master router sends multicast HELLO packets to advertise its presence on the network. Absence of these advertisements causes a new master router to be elected.

HSRP uses multicast IP address 224.0.0.2 and UDP port 1985. All router group members exchange advertisements to communicate their priority and state, and coordinate the choice of the master router based on the information received from other group members.

Unique and Virtual Router IP Addresses

The master virtual router is also known as the IP address owner. VRRP and HSRP each use a slightly different approach in managing the virtual router IP address.

VRRP uses the IP address of the configured master router as the virtual router group IP address. Upon failover, the new master router assumes the virtual router group IP address. When the configured master router recovers, it again resumes hosting the virtual router group address.

Router #1 (configured master router) 10.10.10.1
Router #2 (configured backup router) 10.10.10.2

The 10.10.10.1 address floats to the active master router, and thus is always available. The 10.10.10.2 address will become unavailable if Router 2 fails.

HSRP uses a unique IP address as the virtual router group IP address. Upon failover, the new master router assumes the virtual router group IP address. When the configured master router recovers, it again resumes hosting the virtual router group address.

Router #1 (configured master router) 10.10.10.1
Router #2 (configured backup router) 10.10.10.2
Virtual Router 10.10.10.3

The 10.10.10.3 address floats to the active master router, and is always available. The 10.10.10.1 address will become unavailable if Router 1 fails. The 10.10.10.2 address will become unavailable if Router 2 fails.

Each member of a virtual router group uses its actual IP address as the source address for VRRP/HSRP multicast packets so they can identify each other.

The master router must accept IP datagrams addressed to the virtual router IP address. Backup routers must not perform this function.

Each physical router in the virtual router group must forward packets received on its unique assigned IP address regardless of Master/Backup state.

Virtual MAC Addresses

Both VRRP and HSRP use a virtual MAC address to minimize the impact of router failover on active traffic flows. The virtual MAC address floats to a new master router when multicast advertisements from the previous master router instance are no longer seen on the network.

VRRP virtual routers use Media Access Control (MAC) addresses in the form of 00-00-5E-00-01-XX. The last byte of the address (XX) is the Virtual Router Identifier (VRID), which must be unique for each virtual router in the network.

HSRP virtual routers use MAC addresses in the form of 00-00-0C-07-AC-XX. The last byte of the address (XX) is the configured HSRP group number in hexadecimal notation, which must be unique for each virtual router in the network.

The master router must forward packets addressed to the virtual router MAC address, and also must respond with the virtual MAC address to ARP requests for the virtual IP address. Backup routers must not perform these functions.

VRRP/HSRP multicast frames originating from the master router use the virtual router MAC address as the source MAC address. Frames are forwarded to the virtual router IP address by using the virtual router MAC address as the destination MAC address.

Unique MAC Addresses

Regardless of whether it is currently hosting the virtual MAC address, each physical router also hosts its own unique MAC address. Routers must forward packets received on their unique assigned MAC address regardless of Master/Backup state.

Traffic originating from a specific member of a virtual router group (other than multicast virtual router group communications) may use that router's unique physical MAC address as the source MAC address. Frames are forwarded to a router group member's real IP address by using the physical router's unique MAC address as the destination MAC address. Frames forwarded by a router group member use the physical router's unique MAC address as the source MAC address for outbound frames.

Note: For information about configuring the equivalent of IP forwarding, refer to SOL7595: Overview of IP forwarding virtual servers.

2009.7.22 這邊文章內所貼的相片都會不見

奇怪了, 之前寫的文章內的相片都會不見耶....
這是甚麼道理
這裡故意先放一張相片, 下一個禮拜再來檢查

2009年7月13日 星期一

CHT中華3.5G 華維無線網卡與Firefox瀏覽器的擴充套件

上禮拜某一天幫忙同事的某一客戶,將兩台F5 BIG-IP v9.1.0升級至v9.3.1.

因需要將設備上的License作service check的動作, 所以需要連線到F5的網站, 所以必須借3.5G無線網卡上網, 不然在這個user site是無法使用LAN直接上網的.

此客戶設備是在CHT IDC機房內, IDC有提供免費的中華3.5G-華維無線網卡可供上網.

裝 在自己的IBM X61 Notebook上, 在安裝時有發現Firefox內的某一add-on套件NoScript發現裝況, 當時不以為意, 也沒空閒時間處理! 當天3.5G用完後, 回到公司我有uninstall. 但沒想到也是沒有用, 後來才發現連另一add-on套件Foxmarks也故障. 今天只好將Firefox移除, 還要將C:\Documents and Settings\xxxx\Application Data\Mozilla\Firefox的目錄底下的檔案及目錄全數刪除, 再重新安裝才有用.

想不到CHT中華3.5G-華維無線網卡的驅動程式寫得如此之不好

2009年6月28日 星期日

2009.6.28 98年成功盃全國心算數學大賽中華民國國手選拔賽

009.6.28(日) 這天在劍潭海外青年活動中心舉辦98年成功盃全國心算數學大賽中華民國國手選拔賽.

在2009.6.14(Sun)剛通過全國珠算九級及心算九級測驗, 珠算是80分, 心算是100分.

這回頭一次參加成功盃全國心算數學大賽. 後來兩個項目都拿到殿軍. 整個過程都蠻新鮮的.

尚恩目前是大班, 學珠心算過半個年頭了.

想趁著還沒入小學, 課業壓力還小的時候, 在晚上先學一些些的珠心算. 這種讓小朋友去才藝班上課的舉動另一方面也是因為父母親都有上班, 而下班時間都偏晚, 去接小孩的時間都不一定, 與其讓小孩下課後無聊的待在褓姆家看電視, 那還不如送去安親才藝班學東西. 這也是很多很多家庭都會遇到同樣的問題(晚下班), 所以安親才藝班才會在街頭巷尾都看得到.

學珠心算的結果只會對計算及專注力會有幫助. 台灣的學校教育, 很不幸的是只著重計算, 所以呢學珠心算剛好可以派得上用場.

謝謝主辦單位, 提供第四名殿軍的名額讓父母親可以得到安慰.

下面是當天用手機拍的一些情景.

20090628108

20090628111 幼初組心算第四名. 幼初00054是尚恩

不懂為什麼從380分之後的都沒有印出分數出來.

這是第二張的成績單, 沒有拍第一張.第一張有第一名500分滿分的名單, 第一名共七位, 七位中的四位是同一家補習班教出來的, 單位編號是51.

20090628120 幼童組數學第四名.數000008是尚恩

這裡也是一樣的情況, 370分之後的也沒有印出分數.

20090628118

20090628122

賽後感言:

從兩份成績單來看, 尚恩的成績剛好都在殿軍的車頭, 離季軍就差個十分二十分, 等於是再答對一兩題就進去了. 繼續分析一下, 可以說成專注度還要再提高一層, 少錯一題兩題才能擠進前三名. 所以呢, 往後在練習時, 要從旁協助如何提高專注度.

而 另一項要研究的是速度. 尚恩的心算速度比珠算快, 兩位數的心算, 題目練完時答案就出來了, 而珠算的速度要如何提高…, 指法是對的, 似乎只剩練習再練習. 心算雖然速度快, 但正確率不是頂好的, 那要如何去弭補這一塊. 心算是用空撥的方式計算出來, 珠算指法只要是對的, 那麼空撥撥法也是對的, 所以還是練習再練習囉…….

要練習多久, 一天要練多久, 一個禮拜要練多久, 這就 牽扯到父母將小孩送到才藝班的目的是甚麼? 如果只是不想讓他在褓姆家看電視, 那目前這樣的練習量及今天看到的成績已經很足夠了; 而如果是要讓小孩拿更好的成績, 那尚恩現在的成績還必須再鞭策, 要再嚴格, 要再盯緊……等等, 但這不是我們要的. 所以下一步還是想辦法從旁提高專注度即可.

後續:

後來在8月16的那個禮拜,蘆洲鮑金秀林老師帶班上全國前三名的小朋友到韓國比賽了!


2009年6月26日 星期五

2009.6.26 IOS kron occurrence

我自己的範例:

kron occurrence ClearTcpTcbSchedule at 4:00 recurring
policy-list ClearTcp

kron policy-list ClearTcp
cli terminal monitor
cli debug kron all
cli clear tcp tcb *
cli u all
exit

此例子為每天04:00時,會去執行clear tcp tcb *的指令

---------------------------------------------------------------------------------------------------------------------------------------------------------

kron occurrence

To specify schedule parameters for a Command Scheduler occurrence and enter kron-occurrence configuration mode, use the kron occurrence command in global configuration mode. To delete a Command Scheduler occurrence, use the no form of this command.

kron occurrence occurrence-name [user username] {in [[numdays:] numhours:] nummin | at hours:min [[month] day-of-month] [day-of-week]} {oneshot | recurring | system-startup}

no kron occurrence occurrence-name [user username] {in [[numdays:] numhours:] nummin | at hours:min [[month] day-of-month] [day-of-week]} {oneshot | recurring | system-startup}

Examples

The following example shows how to create a Command Scheduler occurrence named info-three and schedule it to run every three days, 10 hours, and 50 minutes. The EXEC CLI in the policy named three-day-list is configured to run as part of occurrence info-three.

Router(config)# kron occurrence info-three user IT2 in 3:10:50 recurring
Router(config-kron-occurrence)# policy-list three-day-list

The following example shows how to create a Command Scheduler occurrence named auto-mkt and schedule it to run once on June 4 at 5:30 a.m. The EXEC CLI in the policies named mkt-list and mkt-list2 are configured to run as part of occurrence auto-mkt.

Router(config)# kron occurrence auto-mkt user marketing at 5:30 jun 4 oneshot
Router(config-kron-occurrence)# policy-list mkt-list
Router(config-kron-occurrence)# policy-list mkt-list2

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

kron policy-list

To specify a name for a Command Scheduler policy and enter kron-policy configuration mode, use the kron policy-list command in global configuration mode. To delete the policy list, use the no form of this command.

kron policy-list list-name

no kron policy-list list-name

Syntax Description

list-name

String from 1 to 31 characters that specifies the name of the policy.

Examples

The following example shows how to create a policy named sales-may and configure EXEC CLI commands to run the CNS command that retrieves an image from a server:

Router(config)# kron policy-list sales-may
Router(config-kron-policy)# cli cns image retrieve server https://10.21.2.3/imgsvr/ status
https://10.21.2.5/status/

2009年6月25日 星期四

2009.6.25 Upgrading Firewalls in Failover Mode—Active-Standby

以下的步驟非常的清楚明瞭

  1. Download the new OS image into the primary firewall
  2. Save the running configuration on the primary unit
  3. Power off the primary unit and remove its network connections
  4. Restore power to the primary unit
    • Verify that the new operating system release is loaded and that it appears to run correctly
  5. Power the primary unit off again and reconnect its interface connections.
  6. Download the new OS image into the secondary unit
  7. Power off the secondary unit and restore power to the primary unit
  8. Remove network connections to the secondary unit
  9. Restore power to the secondary unit
    • Verify that the new operating system release is loaded and that it appears to run correctly
  10. Power off the secondary unit again, and then reconnect its interface connections.
  11. Restore power to the secondary unit again
  12. The secondary unit should boot up and assume the standby failover role.

2009年6月19日 星期五

2009.6.19 Some well known Ethernet multicast addresses

2009.6.19 Some well known Ethernet multicast addresses

Ethernet multicast address Type Field Usage

01-00-0C-CC-CC-CC 0x0802 CDP (Cisco Discovery Protocol), VTP (VLAN Trunking Protocol)

01-00-0C-CC-CC-CD 0x0802 Cisco Shared Spanning Tree Protocol Address

01-80-C2-00-00-00 0x0802 Spanning Tree Protocol (for bridges) IEEE 802.1D

01-80-C2-00-00-02 0x0809 Ethernet OAM Protocol IEEE 802.3ah

01-00-5E-xx-xx-xx 0x0800 IPv4 IGMP Multicast Address

33-33-00-00-00-00 0x86DD IPv6 Neighbor Discovery

33-33-xx-xx-xx-xx 0x86DD IPv6 Multicast Address (RFC 3307)

image

2009.6.19 Reserved address blocks

2009.6.19 Reserved address blocks

image

追蹤者