F5 BIGIP基本故障排除&;常见问题处理 - 图文

更新时间:2024-01-10 04:09:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

F5 BIG-IP V9产品的常见问题处理手册

2013-08-15

F5 BIG-IP V9产品

的常见问题处理手册

F5 BIG-IP V9产品的常见问题处理手册

目 录

第1章 初始化设置相关问题处理说明 ................................................................. 1

1.1. 如何通过机器前面板LCD边上的按键设置BIG-IP的管理网口地址?............... 1 1.2. 为什么通过LCD边上的按键设置BIG-IP的管理网口地址失败?...................... 1 1.3. 申请License时出现以下错误提示如何处理? .................................................. 2 1.4. BIG-IP系统如何进行配置备份和恢复? ........................................................... 2 1.5. 如何将BIG-IP的配置恢复到出厂设置? ........................................................... 3

第2章 日常维护 ................................................................................................. 4

2.1. 如何操作BIG-IP前面板上的LCD按键? ......................................................... 4 2.2. 如何解读LED(设备关面板上的状态灯)显示的信息? ........................................ 5 2.3. 如何与BIG-IP进行文件传输? ......................................................................... 6 2.4. 如何实时监视BIG-IP的连接状态? .................................................................. 7 2.5. 如何实时监视BIG-IP的流量情况? .................................................................. 7 2.6. 如何监控BIG-IP的性能指标? ......................................................................... 7

第3章 异常处理 ................................................................................................. 8

3.1. 当处于主机的BIG-IP突然发生故障时,如何尽快恢复业务? ........................... 8 3.2. 如果修改配置以后,导致业务异常如何处理? .................................................. 8 3.3. 故障诊断时,有时需要用到命令行,如何用命令行登陆BIG-IP? ..................... 9 3.4. BIG-IP系统处于Inoperational状态如何处理? .............................................. 10 3.5. 通过Web界面修改配置以后,重新启动BIG-IP以后,发现配置丢失如何处理?

...................................................................................................................... 11

第4章 WEB与命令行管理 ............................................................................... 13

4.1. 通过WEB界面修改配置时出现General Database Error错误,如何处理? .. 13 4.2. SSH访问具有密码加密传输的优点,请问从哪里获取SSH客户端? ............. 13 4.3. 为什么无法用Telnet登陆到BIG-IP的命令行? ............................................. 14 4.4. BIG-IP系统Web管理员admin密码忘记了,如何恢复? .............................. 14 4.5. BIG-IP系统root密码忘记了,如何恢复? ..................................................... 14 4.6. 默认的用户名和口令不安全,如何添加新用户或修改现有用户? .................... 15 4.7. 如果忘记了SCCP的密码,如何恢复SCCP的密码到出厂设置? .................. 15 4.1. 如何将BIG-IP监控到的服务器UP/DOWN信息发到外部Syslog服务器上? . 18

F5 BIG-IP V9产品的常见问题处理手册

4.2. BIG-IP Syslog的事件类型有哪些? ............................................................. 18 4.3. 如何设定BIG-IP Syslog的事件级别? ......................................................... 20 4.4. BIG-IP Syslog事件记录的格式是怎么样的? ............................................... 21 4.5. 网络设备通常有收集系统信息的宏命令,F5有没有相应命令? ...................... 22 4.6. 如何查询设备的序列号?................................................................................ 23 4.7. 如何使用TCPDUMP进行Troubleshooting? ................................................ 24 4.8. 对某一Virtual Server用TCPDUMP命令无法抓到包如何处理?.................... 26 4.9. TCPDUMP出现“truncated-ip - 1215 bytes missing!”信息是不是说明网络上有

丢包? ............................................................................................................ 26 4.10. TCPDUMP 命令中的-i interface中的interface用VLAN名称(如external或internal)与接口编号(1.1或2.1)有什么区别? .......................................... 26 4.11. TCPDUMP 命令中出现“pcap_loop: Error: Interface packet capture busy”错误

信息? ............................................................................................................ 28

第5章 配置管理 ............................................................................................... 30

5.1. 如何备份BIG-IP LTM的配置 ......................................................................... 30 5.2. 备份的配置文件中包含哪些内容 ..................................................................... 31 5.3. 恢复BIG-IP LTM的配置Restoring configuration data ................................... 31

第6章 技术支持相关问题 ................................................................................. 35

6.1. 寻求F5技术支持时,要提供哪些信息与资料? ............................................. 35 6.2. 如何获得更多关于F5产品的技术支持资料、如何查找故障处理办法? .......... 35 6.3. 如果BIG-IP系统损坏(非硬件故障),如何重装系统? ..................................... 36 6.4. BIG-IP发生硬件故障以后的更换流程? ......................................................... 37 6.5. 如何进入单用户模式Solution ID: SOL4178 Booting BIG-IP in single user mode37 6.6. 如何重置root与web admin密码Solution ID: SOL3350 Changing account passwords for the command line and Configuration utility .............................. 39 6.1.1 Changing Root and Support Passwords ............................................................... 39 6.1.2 Changing an Administrative Account Password .................................................... 40

第7章 技术支持相关问题 ..................................................... 错误!未定义书签。

文档名称: F5 BIG-IP V9产品的常见问题处理手册

第1章 初始化设置相关问题处理说明

1.1. 如何通过机器前面板LCD边上的按键设置BIG-IP的管理网口地

址?

通过LCD按键修改管理网口IP地址的方法如下:

1. 按红色X按键进入Options选项;

2. 在液晶面板上通过按键按以下顺序设置管理网口的网络地址:

Options->System->IP Address/Netmask->Commit

1.2. 为什么通过LCD边上的按键设置BIG-IP的管理网口地址失败?

如果通过LCD按键修改完IP地址以后,选择Commit,地址无法成功改变(例如出现IP地址为全零的情况),很有可能是管理口IP地址与系统内已经配置发生冲突。出现这种情况,关机重启以后,另选一个IP网段来设置管理网口地址。

警告:在设置好网络管理口地址以后,通过网络登陆到BIG-IP上进行其它配置更改时,都要保证网络管理口的网络连接完好。否则有时会出现修改的配置无法被成功加载应用的情况,因为网络管理口为Down的情况会妨碍配置文件的加载。

2013-8-15

第1页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

1.3. 申请License时出现以下错误提示如何处理?

错误提示为“This license has already been activated on a different unit. Please contact technical support for assistance.” 原因是是因为本机的Registration Key与另外一台已经被激活的设备的Registration Key有冲突。碰到这种情况,请联系F5的技术支持工程师协助处理。

1.4. BIG-IP系统如何进行配置备份和恢复?

可以通过以下WEB界面进行配置的备份与修改: 进入System?Archives,点击Create:

配置备份好后,点击设配置文件并下载到外部电脑上:

2013-8-15

第2页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

也可以在CLI使用“b config save .ucs”保存配置,使用“config install .ucs”恢复配置。如果不指定路径,默认保存在目录“/var/local/ucs”中。

1.5. 如何将BIG-IP的配置恢复到出厂设置?

如果是需要一个完全干净的系统,建议通过重装系统来恢复到出厂设置。如果没办法重装系统,但需要将配置清空以重新进行配置,方法如下:

从管理网口用命令行登陆BIG-IP,然后执行以下命令:

b db all reset b reset b save b base reset

b self allow { default tcp ssh tcp https udp efs tcp snmp proto ospf udp domain udp snmp tcp 4353 tcp domain udp 4353 } b base save

最后运行config设置管理口IP,然后用reboot重启。

2013-8-15

第3页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

第2章 日常维护

2.1. 如何操作BIG-IP前面板上的LCD按键?

通过操作LCD按键可以实现以下功能:

? 在某个屏幕停留 ? 使用LCD菜单 ? 开机 ? 停机 ? 关电 ? 重启

?

在某个屏幕停留

Normally, the screens cycle on the LCD at a constant rate. However, push the Check button to toggle the LCD between Hold and Rotate modes. In Hold mode, a single screen is displayed. The Rotate mode changes the screen displayed on the LCD every 4 seconds.

?

使用LCD菜单

Pressing the X button puts the LCD panel in Menu mode. The buttons Left Arrow, Right Arrow, Up Arrow, and Down Arrow are only functional when the LCD is in Menu mode.

? ?

开机 停机

When you want to power on a unit that is shut down, press the Check button to turn the power on. We recommend you halt the unit before you power it down or reboot it using the LCD menu options.

To halt the unit

1. Press the X button, then use the arrow keys to navigate to the System menu. 2. Press Check. Navigate to the Halt menu.

3. Press the Check button. Press the Check button again at the confirmation screen. 4. Wait 50 seconds before powering the machine off or rebooting it.

?

关电

Hold the X button for 4 seconds to power down the unit. We recommend that you halt the system before you power down the system in this manner. Rebooting the unit Hold the Check button for 4 seconds to reboot the unit. You should only use this option after you halt the unit.

?

清除告警事件

Press the Check button to clear any alerts on the LCD screen. You must clear any alerts on the screen before you can use the LCD.

2013-8-15

第4页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

2.2. 如何解读LED(设备关面板上的状态灯)显示的信息?

LED功能说明如下:

正常状态下,LED的显示情况:

出现告警时的LED状态:

2013-8-15

第5页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

2.3. 如何与BIG-IP进行文件传输?

出于安全考虑,BIG-IP不允许用ftp登陆到BIG-IP上进行文件的上传与下载。 为了与BIG-IP进行文件传输,可以用SSH Secure Shell Client工具带的安全文件传输工具进行文件传输。

Secure File Transfer Client

2013-8-15

第6页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

2.4. 如何实时监视BIG-IP的连接状态?

请使用“b conn”命令,显示示例如下:

192.168.1.254:46704 <-> any:any <-> 192.168.1.1:8 icmp 192.168.4.33:41622 <-> any:any <-> 192.168.20.1:8 icmp 10.9.4.10:1354 <-> 10.10.4.33:ssh <-> 10.10.4.33:ssh tcp 127.1.1.1:33880 <-> 127.1.1.2:nbp <-> any6:any udp 192.168.4.33:36599 <-> any:any <-> 192.168.20.3:8 icmp 192.168.1.254:35139 <-> any:any <-> 192.168.1.1:domain udp 192.168.1.254:35140 <-> any:any <-> 192.168.1.1:domain udp 192.168.1.254:35141 <-> any:any <-> 192.168.1.1:domain udp 192.168.1.254:35142 <-> any:any <-> 192.168.1.1:domain udp 192.168.1.254:35143 <-> any:any <-> 192.168.1.1:domain udp

2.5. 如何实时监视BIG-IP的流量情况?

请使用命令“bigtop –n –delay 1”, 显示示例如下:

| bits since | bits in prior | current | Mar 2 21:17:57 | 1 seconds | time BIG-IP ACTIVE |---In----Out---Conn-|---In----Out---Conn-| 23:48:08 bigip4.f5training.cn 32.30G 50.35G 3.888M 432 432 0 VIRTUAL ip:port |---In----Out---Conn-|---In----Out---Conn-|-Nodes Up-- 10.10.4.100:80 218984 1.499M 51 0 0 0 3 NODE ip:port |---In----Out---Conn-|---In----Out---Conn-|--State---- 192.168.1.1:53 30.57G 40.71G 3.257M 0 0 0 UP 192.168.20.2:80 99624 1.395M 6 0 0 0 UP 192.168.20.1:80 131528 1.006M 29 0 0 0 UP 192.168.20.3:80 12008 137184 1 0 0 0 UP

192.168.1.2:53 0 0 0 0 0 0 NODE DOWN

其中bits in prior 1 second列出的In Out是各Virtual Server及Node上的流量情况。

2.6. 如何监控BIG-IP的性能指标?

通过WEB界面的Overview?Perfrormance进行监控。

2013-8-15

第7页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

第3章 异常处理

3.1. 当处于主机的BIG-IP突然发生故障时,如何尽快恢复业务?

在确保双机配置一致的前提下(通过日常巡检来保证),进行主备切换,看是否能恢复业务。主备切换的方法有:通过Web管理界面进行切换:System?High Availability?Redundancy?Force Standby。

当主备发生切换完后,看备机能否顺利接管业务。

3.2. 如果修改配置以后,导致业务异常如何处理?

在修改配置之前,先作一次配置备份。如果配置修改以后,业务出现异常,恢复配置进行回滚。备份与恢复配置的方法如下:

2013-8-15

第8页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

3.3. 故障诊断时,有时需要用到命令行,如何用命令行登陆BIG-IP?

若有console线,通过19200-8-N-1方式登录,输入用户名/密码 root/default。

注:Console线是Null Modem线,(如在电脑城购买,注意连接头是是否标注有Null Modem字样)线序如下:

DB9F to DB9F 1, 4--- 6 2 ----- 3 3 ----- 2 5 ----- 5 6 ----- 1,4 7 ----- 8 8 ----- 7 9 open open 9 2013-8-15

第9页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

如果没有Console线,则用SSH命令登陆到BIG-IP管理网口的地址。 (BIG-IP管理网口的地址可以在BIG-IP前面的液晶显示板上看到。) 可以使用PUTTY或Secure Shell Client等SSH客户端连接BIG-IP的管理网口地址,进入命令行模式。

察看液晶面板上的管理口ip地址,如192.168.1.245。

若有液晶板上有相应的ip地址,那么请准备一个便携,配上相应网段的ip,通过SSH登录。

若液晶板上无相应的ip地址,即为0.0.0.0,则在液晶板上,按X键,进入system,依次设置IP Address -> Netmask ->Gateway->commit,输入管理口地址,掩码,网关,最后commit,察看液晶面板上的管理地址是否生效。然后通过便携登录管理口。

注:Secure Shell Client 可以用以下链接下载:

http://www.f5.com.cn/f5gz/tools/SSHSecureShellClient-3.2.5.exe。 putty的下载链接如下:

http://www.f5.com.cn/f5gz/tools/putty.zip

3.4. BIG-IP系统处于Inoperational状态如何处理?

BIG-IP刚开机时会处于Inoperational状态,等进程启动完毕,配置文件加载完以后,BIG-IP会改换为Active状态,或Standby状态(双机中的另外一台处于主机的情况下)。

如果系统长时间处于Inoperational状态,一般有两种可能,一种可能是License没有被激活,另外一台可能是配置文件有问题无法被正常加载。

确认IG-IP系统Licnese是否处于有效激活状态有两种方法:

一种是在WEB界面点击System?License,查看License信息是否有效。 一种办法是在命令行执行b version命令。如果系统License有效的话,b version命令会给出下面类似的输出:

2013-8-15

第10页, 共52页

Kernel:

文档名称: F5 BIG-IP V9产品的常见问题处理手册

f5test-1:~# b version Linux 2.4.21-9.2.2.72.0smp Package:

BIG-IP Version 9.2.2 76.6 Final Edition Enabled Features:

ZoneRunner - DNS Zone Management Early Access Features Global Application Support Link Total Cost Load Balancing CNAME Redirection Global Custom Region Definitions Link Capacity Load Balancing GTM Failover To One Data Center IP Classifier Internet Weather Map ……

在Enabled Features下面会列出License所许可的所有功能模块。

如果License没有激活或已经到期,则Enable Features下而为空。如果为空,则需要先激活License。

如果License正常,而系统还处理inoperational状态,可参看3.5的办法检查是否/config/bigip_base.conf有问题。

3.5. 通过Web界面修改配置以后,重新启动BIG-IP以后,发现配置

丢失如何处理?

用命令行登陆BIG-IP,检查/config/bigip_base.conf文件,是否有以下几行:

interface mgmt {

media none }

注:(如何用命令行登陆BIG-IP请参见3.3故障诊断时,有时需要用到命令行,如何用命令行登陆BIG-IP?)

当管理网口没有接网线而做了配置修改就会在/config/bigip_base.conf中出现这几行。而这几行将导致机器重启时在这以后的配置不能正常加载。这一问题目前仅限发生于BIG-IP 9.2版本。

如出现这种情况,请在命令行按以下步骤进行操作:

1、 # cp /config/bigip_base.conf /root/ 保存bigip_base.conf文件 2、 # vi /config/bigip_base.conf

2013-8-15

第11页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册 把如下语句(若有)删掉 interface mgmt { media none }

3、 检查bigip_base.conf文件中是否有如下语句,其中的192.168.1.245是管理网口地址,实际可能不

一样。

mgmt 192.168.1.245 { netmask 255.255.255.0 }

b load重加加载配置或运行reboot命令重启。

若没有,则手工添加。也可以设为你所需要的管理网段地址。

4、 保存退出,执行

注:为防止这一问题出现,在做配置修改时,要保证管理口有连接(接交换机或着通过交叉线同另外一台BIG-IP的管理口连接),则不会出现此现象。

2013-8-15

第12页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

第4章 WEB与命令行管理

4.1. 通过WEB界面修改配置时出现General Database Error错误,

如何处理?

如果条件允许,先将系统重启后再次修改配置,看问题是否依然存在。 如果问题依然存在,或者不允许重启系统,则需要用SSH客户端以命令行方式登陆BIG-IP。

注:建议从管理网口用命令行登陆。

用SSH登陆命令行以后,看命令行提示符现示系统是否处于Inoperational状态。

如果是处于Inoperational状态,则可能是License没有激活或已经到期。(License到期的现象只发生在采用了临时License的测试设备上)。

如果License已经处于有效激活状态,而系统处于Inoperaitonal状态,则有可能是配置文件有错误,导致配置文件无法被顺利加载。

如果命令行提示符提示系统处于Active状态或Standby状态,而通过WEB界面修改配置出现General Database Error,则有可能是负责WEB管理的进程出现异常,可能采用bigstart tomcat restart的方式看能否解决问题。

4.2. SSH访问具有密码加密传输的优点,请问从哪里获取SSH客户

端?

常用的SSH客户端有:

?

Secure Shell Client ——下载链接

http://www.ssh.com/support/downloads/secureshellwks/non-commercial.html或http://www.f5.com.cn/f5gz/tools/SSHSecureShellClient-3.2.5.exe。 2013-8-15

第13页, 共52页

? ?

文档名称: F5 BIG-IP V9产品的常见问题处理手册 Putty ――下载链接http://www.f5.com.cn/f5gz/tools/putty.zip

TTSSH —— http://www.zip.com.au/~roca/ttssh.html TTSSH是公司标准软件Tera Term的SSH扩展免费软件。

? SecureCRT —— http://www.vandyke.com/ 本软件功能强大,评估版为免费软件。

4.3. 为什么无法用Telnet登陆到BIG-IP的命令行?

出于安全考虑,BIG-IP不允许采用Telnet的方法登陆到BIG-IP。 Please refer to the following SOL for detail.

http://tech.f5.com/home/bigip-next/solutions/toolsscript/sol3848.html

4.4. BIG-IP系统Web管理员admin密码忘记了,如何恢复?

可以通过在命令行执行 passwd admin重新设置admin密码。

方法请参考http://tech.f5.com/home/solutions/sol3350.html --Changing account passwords for the command line and Configuration utility。

4.5. BIG-IP系统root密码忘记了,如何恢复?

如果Root密码丢失,但还可以进入Web管理界面,则可以在System->Platform界面重新设置Root密码。

如果Root密码丢失,且无法进入Web管理界面,则需要进入到单用户模式,重新设置Root密码。方法请参考Solution ID: SOL4178 Booting BIG-IP in single user mode

和Solution ID: SOL3350 Changing account passwords for the command line and Configuration utility。

2013-8-15

第14页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

4.6. 默认的用户名和口令不安全,如何添加新用户或修改现有用户?

Web管理员的密码与命令行登陆root帐可以密码可以通过Web界面进行修改: 登录bigip的WEB管理界面时需使用Admin的用户名,登录bigip的命令行界面需要使用root的用户名,更改这个两个用户名的方法如下:

点击左侧导航条的System?Platform,进入其属性页面:

在右侧的页面中,可以在User Administration中对这两个用户名的密码进行更改。更改完毕后点击Update即可生效。

“root”用户也可以通过CLI“passwd”命令进行修改。

4.7. 如果忘记了SCCP的密码,如何恢复SCCP的密码到出厂设置?

In normal operating conditions the root password on the SCCP is synchronized from the root password on the BIG-IP host, thus the SCCP root password is the same as the BIG-IP root password.

To reset password, the procedure as below:

2013-8-15

第15页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

Resetting the SCCP password to its default value will allow you to access the SCCP, if required. To reset the SCCP password to its factory default value, perform the following steps:

Note: This procedure must be performed from the console (accessed through the console terminal).

1.Power up the BIG-IP system from a powered-off state. 2.At the press any key to stop Autoboot prompt, stop the boot. The system will return a => prompt.

3.From the => prompt, type the following commands: setenv runlevel init=/bin/bash -s -- run flashboot

Note: In order for the command to execute properly, you must include the two dashes (--) at the end of the setenv runlevel init=/bin/bash -s -- line of code, above. The system will return a bash prompt.

4.From the bash prompt, type the following commands: echo \mount /proc

5.Type the following command: Note: 下面的命令须在同一命令行执行

ln -s `awk '/Boot FS/ { printf(\6.Type the following command: Note: 下面的命令须在同一命令行执行

echo -e \7.Type the following commands: mount -a cd /boot rm nvfiles.tgz sync cd / umount /boot 8.Power-cycle the box.

Important: The system must be power cycled for this procedure to be effective.

Note: As the BIG-IP reboots you will see warning messages, which are expected at this stage in the procedure. The warning messages will appear as follows: Warning: Remote Host Identification Has Changed!

Backing up the known_hosts file and re-synchronizing the SSH keys

The known_hosts files now need to be updated on the BIG-IP system and the SCCP, and the SSH keys need to be synchronized to the SCCP, and from the SCCP to the BIG-IP system. The following steps will back up the current known_hosts files and re-synchronize the SSH keys. Note: For this procedure, BIG-IP is also known as the host. 2013-8-15

第16页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

1.Log in to the Console command line as the root account.

2.Rename the /var/ssh/root/known_hosts file, by typing the following command: mv /var/ssh/root/known_hosts /var/ssh/root/known_hosts.orig

3.Synchronize the keys from the BIG-IP to the SCCP, by typing the following command: keyswap.sh sccp

A message will appear, indicating that the authenticity of host sccp (127.2.0.1) cannot be established. 4.At the Are you sure you want to continue connecting (yes/no)? prompt, type yes. You will be prompted for a password. 5.Type the SCCP password default.

You will be prompted several more times (approximately 6 times) for the password. Continue to type the password default for each prompt until you are returned to the BIG-IP command line. 6.Connect to the SCCP by typing the following command: ssh sccp

A message will appear indicating that the authenticity of host sccp (127.2.0.1) cannot be established. 7.At the Are you sure you want to continue connecting (yes/no)? prompt, type yes.

If the SSH keys have been properly synchronized from the host to the SCCP, the system should not prompt you for a password.

You should now be connected to the SCCP, and have an sccp# prompt. 8.Rename the /root/.ssh/known_hosts file, by typing the following command: mv /root/.ssh/known_hosts /root/.ssh/known_hosts.orig

9.Synchronize the keys from the SCCP to the host, by typing the following command:

keyswap.sh host

A message will appear indicating that the authenticity of host sccp (127.2.0.1) cannot be established. 10.At the Are you sure you want to continue connecting (yes/no)? prompt, type yes. You will be prompted for a password.

11.Type the password for the host's root account.

You will be prompted several more times (approximately 6 times) for the password. Continue to type the password default for each prompt until you are returned to the BIG-IP command line. 12.Connect to the host by typing the following command: ssh host

A message will appear, indicating that the authenticity of host sccp (127.2.0.2) cannot be established. 13.At the Are you sure you want to continue connecting (yes/no)? prompt, type yes.

If the SSH keys have been properly synchronized from the SCCP to the host, the system should not prompt you for a password.

You should now be connected to the host, and have the BIG-IP prompt [root@bigip:Standby] root #. 14.Exit the host and return to the SCCP, by typing the following command: exit

15.Exit the SCCP and return to the host, by typing the following command: exit

16.Reboot the host, by typing the following command:

2013-8-15

第17页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

点击Download下载Qkview的输出文件 。

注意修改下载文件的文件名以免双机的文件重名冲突。

4.6. 如何查询设备的序列号?

负载均衡器的序列号可能从设备前面板右边的机架安装处获得,是在一个条形码标签下面以bip开头的一串字串。如果设备已经上架,不方便查看设备的序列号的话,也可以通过License文件,获取设备的序列号。License文件保存在/config/bigip.license文件中。在文件中搜寻以下信息:

Registration Key : JSUIF-IISEN-YSJWQ-JRRVP-LIVYDKE Licensed version : 9.2.3 Platform ID : C62a

Appliance SN : Registration Key : JSUIF-IISEN-YSJWQ-JRRVP-LIVYDKE Licensed version : 9.2.3 Platform ID : C62a Appliance SN : bip083200s

其中的bip083200s即为设备的序列号。

2013-8-15

第23页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

4.7. 如何使用TCPDUMP进行Troubleshooting?

当业务无法正常工作时,经常需要在BIG-IP上抓包进行分析定位是什么原因导致数据包没有被常转发。BIG-IP上提供了TCPDUMP抓包分析工具。

TCPDUMP是Unix系统常用的报文分析工具,TCPDUMP经常用于故障定位,如会话保持失效、SNAT通信问题等。本文讲述TCPDUMP命令的基本用法,更详细的使用说明请参见“man tcpdump”。

命令语法:

tcpdump [ -adeflnNOpqRStvxX ] [ -c count ] [ -F file ] [ -i interface ] [ -m module ] [ -r file ] [ -s snaplen ] [ -T type ] [ -w file ] [ -E algo:secret ] [ expression ]

其中:

?

-i

报文捕获监听的接口,如果不指定,默认为系统最小编号的接口(不包括loop-back接口),

一般对指定Vlan名称进行监控,如-i external 是对external vlan进行监控;也可以对指定端口进行监控如 –i 1.1。注意:当vlan 名称过长时,-i后面直接用vlan名称,tcpdump会出现错误提示,这时需要将vlan名改由vlan加vlan ID代替。如有一vlan名称为bip_external,vlan ID为2022,如要对bip_external vlan进行监听,需采用-i vlan2022的方式。 ?

-nn 不将IP地址或端口号转化为域名或协议名称

注:与BIG-IP 4.5版本的TCPDUMP命令不一样,在BIG-IP V9里面必须用两个nn才能使IP地址与端口不会被转化为域名或协议名称显示。

? ? ?

-r -s -w

从文件中读取(该文件由-w选项创建) 确定捕获报文大小

直接将捕获报文写入文件,而不是对其进行解析并通过屏幕显示(与-r选项对应)

注:如果要将TCPDUMP所抓的包保存到文件,建议采用-s1600 –w /var/tmp/filename的方式,-s1600可以保证抓取完整的数据包,而/var/tmp使抓包文件保存在/var/tmp目录。

? ? ?

-x -X

每个报文以十六进制方式显示 每个报文同时以文本和十六进制显示

expression 匹配表达式的分组将进行解析。如果不指定表达式,系统对所有分组进行捕获分析。

第24页, 共52页

2013-8-15

文档名称: F5 BIG-IP V9产品的常见问题处理手册

复杂表达式可以使用“and”与、“or”或以及“not”非操作进行组合。表达式有三种: ? ? ?

type dir

三种种类:host、net和port。比如:host 10.1.1.1。如果不指定类型,默认为host。 有src、dst、 src or dst和src and dst四种方向。默认为src or dst,即双向。

proto 常见协议有:ip、arp、tcp、udp、icmp等。如果不指定协议类型,默认为所有协议。

举例1:对external接口主机139.212.96.2并且端口为1433的流量进行监控。端口不指定tcp和udp,默认为同时对tcp和udp进行报文捕获。本命令不解析IP地址/端口号为主机名/服务名称,同时显示报文十二进制和文本信息,报文最大为1500字节。

f5-1:~# tcpdump -i external -nn -X -s 1600 port 1433 and host 139.212.96.2 tcpdump: listening on external 21:48:41.295546 139.212.96.2.1201 > 10.75.9.44.1433: . 302192826:302192827(1) ac

k 558871968 win 64360 (DF) 0x0000 012c 0800 4500 0029 38cf 4000 7f06 c3b2 .,..E..)8.@..... 0x0010 8bd4 6002 0a4b 092c 04b1 0599 1203 18ba ..`..K.,........ 0x0020 214f b5a0 5010 fb68 a926 0000 00 !O..P..h.&... 21:48:41.296015 10.75.9.44.1433 > 139.212.96.2.1201: . ack 1 win 64636 (DF) 0x0000 012c 0800 4500 0028 cb2d 4000 7f06 3155 .,..E..(.-@...1U 0x0010 0a4b 092c 8bd4 6002 0599 04b1 214f b5a0 .K.,..`.....!O.. 0x0020 1203 18bb 5010 fc7c a812 0000 0000 0000 ....P..|........ 0x0030 0000 ..

21:48:50.701130 139.212.96.2.1206 > 10.75.9.44.1433: . 304974934:304974935(1) ac

k 565108263 win 64882 (DF) 0x0000 012c 0800 4500 0029 38f7 4000 7f06 c38a .,..E..)8.@..... 0x0010 8bd4 6002 0a4b 092c 04b6 0599 122d 8c56 ..`..K.,.....-.V 0x0020 21ae de27 5010 fd72 0a6b 0000 00 !..'P..r.k... 21:48:50.702567 10.75.9.44.1433 > 139.212.96.2.1206: . ack 1 win 65267 (DF) 0x0000 012c 0800 4500 0028 d3a6 4000 7f06 28dc .,..E..(..@...(. 0x0010 0a4b 092c 8bd4 6002 0599 04b6 21ae de27 .K.,..`.....!..' 0x0020 122d 8c57 5010 fef3 08ea 0000 0000 0000 .-.WP........... 0x0030 0000 ..

举例2:对internal接口主机172.31.230.53和172.31.230.51之间端口8080的流量进行分组捕获。本命令不解析IP地址/端口号为主机名/服务名称,报文最大为1600字节,捕获信息以“/var/tmp/intdump”文件保存:

2013-8-15

第25页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

tcpdump -s 1600 -i internal -w /var/tmp/intdump host 172.31.230.53 and host 172.31.230.51 and port 8080

如果查看该捕获文件,请用tcpdump –r /var/tmp/intdump命令。也可以将捕获的文件下载下来用Ethereal工具解包分析。

4.8. 对某一Virtual Server用TCPDUMP命令无法抓到包如何处理?

可能是该Virtual Server的属性中选用了Performance Layer4类型,导致数据包由四层加层ASIC芯片处理而没有流经CPU引起,碰到这种情况,选取该Virtual Server将type由Performance Layer4临时改为Standard再来用TCPDUMP命令抓包,抓包以后,改回到Performance Layer4。

4.9. TCPDUMP出现“truncated-ip - 1215 bytes missing!”信息是

不是说明网络上有丢包?

在BIG-IP V9里面出现”Truncated-IP xxxx bytes missing”信息,一般来说并不是网络上有丢包引起的,而是在执行TCPDUMP命令时没有加上 –s0或-s1600参数时,而数据包大小超过TCPDUMP缺省的抓包大小(如果不加-s0或-s1600参数,则缺省的每个数据包只抓前面400byes),就会出现truncated-ip的情况。出现这种情况,只需要重新输入tcpdump命令,加上-s0或-s1600即可。

4.10. TCPDUMP 命令中的-i interface中的interface用VLAN名称

(如external或internal)与接口编号(1.1或2.1)有什么区别?

如果采用VLAN名称作为-i的参数,TCPDUMP收集的数据包是经由内部接口到达TMM进程经由中央CPU处理的数据包。

2013-8-15

第26页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

采用VLAN名称作为-i参数的局限性在于,由于PVA四层加速芯片时位于BIG-IP的交换板(Swithboard)上,并不需要经由主机板与交换机板的内部接口到达中央CPU,因此TCPDUMP无法抓取这些四层加速的数据包。

因此采用VLAN名称作为-i的参数一般是用于对采用Standard作为Virtual Server类型的应用抓包时采用。

注:如果Virtual Server是用PVA四层加速芯片作加速处理,则在Virtual Server的属性中PVA Acceleration显示为Full。

(The PVA handles accelerated traffic in the following order:

The PVA receives accelerated traffic from the switch subsystem ? The PVA transforms the packet in order to redirect the packet to the appropriate pool member

? The PVA sends the packet back to the switch subsystem

?

Fully accelerated traffic never reaches the internal trunk and is not processed by TMM. )

如果采用接口编号作为-i的参数,则进出该接口的数据包将先被镜像给SCCP(SCCP是BIG-IP的管理子系统),然后送到主机板上通过TCPDUMP抓包。由于是直接镜像了端口,因此经由四层加速芯处理的数据包也能被TCPDUMP获取。

采用接口编号作为-i的参数的局限性在于,由于数据包是经由SCCP(管理子系统)转发给主机板,数据包的处理速度有限,每秒只能处理200个数据包。因此采用接口编号作为-i的参数一般是用于做基本网络故障诊断时。

(When tcpdump is run on an interface, the packet is copied on switch ingress to the SCCP, which then sends it to the host to be captured by tcpdump. Limitations

Running tcpdump on a switch interface is rate-limited to 200 packets per second. Therefore, if you run tcpdump on an interface that is processing

2013-8-15

第27页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

more than 200 packets per second, the captured tcpdump file will not include all of the packets.

For example, the following command will capture PVA accelerated traffic, but the syntax will result in a rate limit of 200 packets per second。)

注:对于采用了PVA四层加速芯片加速处理的Virtual,而且网络流量又比较大时,如果需要进行抓包分析,建议在上一级交换机作端口镜像,将网络流量输出到外部的抓包主机上处理。

4.11. TCPDUMP 命令中出现“pcap_loop: Error: Interface packet

capture busy”错误信息?

同时执行多个TCPDUMP,出现“pcap_loop: Error: Interface packet capture busy”错误,例如:

[root@bigip1:Active] config # tcpdump: listening on 1.1

[root@bigip1:Active] config # tcpdump -ni 1.3 -s 1600 -X -w/var/tmp/v741-E13.dmp port 22 & [3] 6813

tcpdump: listening on 1.3

[root@bigip1:Active] config # tcpdump -ni 1.4 -s 1600 -X -w/var/tmp/v742-E14.dmp port 22 & [4] 6820

tcpdump: listening on 1.4

[root@bigip1:Active] config # tcpdump: pcap_loop: Error: Interface packet capture busy

tcpdump: pcap_loop: Error: Interface packet capture busy

这种情况一般只发生在TCPDUMP -i参数采用接口编号时。原因主要在于当采用接口编号作为-i参数时,是通过BIG-IP的二层芯片将该接口的数据包镜像到中央CPU作处理。而BIG-IP的二层芯片的接口镜像功能不支持多个接口同时镜像,因此如果同时执行多个用接口名称作-i参数的TCPDUMP命令,就会出现Interface packet capture busy的信息。

注:对于采用VLAN名称作为TCPDUMP –i参数,则不存在这个问题,可以支持对多个VLAN同时执行TCPDUMP抓包命令。

2013-8-15

第28页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

(Currently only one tcpdump session is possible at a time on a switch interface (tcpdump on vlan alllows multiple sessons). This is due to a limitation of the Broadcom SDK, but we may be able to extend the SDK to support multiple sessions.

The root difficulty here is that mirrored packets don't carry a note saying \is where I came from.\ports, and all the packets will funnel to the host -- but we don't know which tcpdump session to route them to. One idea involves a layer 2 lookup on each packet performed by the bcm56xx daemon on the sccp. This would be intense so we continue to have this limitation.)

2013-8-15

第29页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

第5章 配置管理

5.1. 如何备份BIG-IP LTM的配置

备份方法如下有两种,通过WEB界面进行备份方法如下: 进入System?Archives,点击Create:

配置备份好后,点击设配置文件并下载到外部电脑上:

通过命令行进行备份的方法如下:

To back up your current configuration data, perform the following steps:

1. Log in to the command line.登陆到BIG-IP的命令行

2. Save the configuration into a UCS archive by typing the following command, replacing with the

filename of your choice:

bigpipe config save

2013-8-15

第30页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

Note: F5 Networks recommends that you name the file the same as the BIG-IP host name, since you will need this information before you restore the configuration.

By default, the BIG-IP system will save the UCS archive file in the /var/local/ucs directory.

3. Copy the .ucs file to another system for safekeeping.

Important: In addition to user accounts, passwords, and critical system files, the UCS archive file contains the SSL private keys that are used with your SSL proxies. It is important to store the backup UCS archives in an environment that is as secure as where you store your private keys.

5.2. 备份的配置文件中包含哪些内容

备份的配置保存在.ucs文件中,.ucs包含以下内容:

* All BIG-IP-specific configuration files * BIG-IP product licenses

* User accounts and password information * DNS zone files

* Installed SSL certificates and keys

5.3. 恢复BIG-IP LTM的配置Restoring configuration data

To restore the BIG-IP system configuration, use one of the following procedures:

* Restoring the configuration data for a system that is currently running system software * Installing the operating system and restoring the configuration data to a new system

Restoring the configuration data for a system that is currently running system software

If you are using a system that already has system software running, and you do not want to reinstall the software, perform the following steps:

2013-8-15

第31页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

1. Copy the UCS archive file to the system.

2. Set the hostname of the system to match the hostname of the system on which the UCS archive was created, by typing the following command: hostname

Important: If you do not set the hostname to match the original hostname, the configuration restoration will fail.

3. Restore the configuration from the UCS archive, by typing the following command, replacing with the name of your UCS archive file: bigpipe config install

Important: If you are restoring the backup on a different device than the system on which the backup was created, such as an RMA system, the configuration load will fail with a license error, and a BigDB.dat load error similar to the following will be displayed: b config install /var/local/ucs/backup.ucs

Installing full configuration on host bigip1.askf5.com Saving active configuration... Creating UCS for config save request...

Dec 8 12:00:00 bigip1 mcpd[2395]: 01070608:0: License is not operational (expired or digital signature does not match contents). Loading the new /config/BigDB.dat failed.

01080023:3: Error return while getting reply from mcpd: 0x1070370, 01070370:3: Failover (redundant mode) is not licensed. After updating your license, run loaddb -local /config/BigDB.dat.cs

4. If you are running BIG-IP version 9.x software on a 1500, 3400, 6400, 6800, or 8400 hardware platform, type the following command to verify that the new or replaced SSH keys from the UCS file are synchronized between the BIG-IP and the SCCP: keyswap.sh sccp

Note: For additional information about synchronizing SSH keys, refer to SOL3759: Synchronizing SSH keys between the BIG-IP host system and the SCCP. 5. Reboot the system, by typing the following command: reboot

If you installed this system on the same device on which the backup was created, it will load the restored configuration after the system reboots; however, if you restored the backup on a different device, and received the errors noted in step 3 you will need to perform steps 6 and 7. 6. Re-license the system.

7. Finish loading the BigDB.dat information by typing the following command: loaddb -local /config/BigDB.dat.cs

2013-8-15

第32页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

Installing the operating system and restoring the configuration data to a new system

To install the operating system and restore configuration data to a new system, perform the following steps: 1. Network boot the system software from the CD-ROM drive.

2. After the system software installs, reboot the system by typing the following command: reboot

3. Connect to the serial port.

4. From the command line,type the following command: config

5. Follow the prompts to configure the system with an IP address. 6. Copy the UCS archive file to the system.

7. Set the hostname of the system to match the hostname of the system on which the UCS archive was created, by typing the following command: 8. hostname

Important: If you do not set the hostname to match the original hostname, the configuration restoration will fail.

9. Restore the configuration from the UCS archive, by typing the following command, replacing with the name of your UCS archive file: bigpipe config install

Important: If you are restoring the backup on a different device than the system on which the backup was created, such as an RMA system, the configuration load will fail with a license error, and a BigDB.dat load error similar to the following will be displayed: b config install /var/local/ucs/backup.ucs

Installing full configuration on host bigip1.askf5.com Saving active configuration... Creating UCS for config save request...

Dec 8 12:00:00 bigip1 mcpd[2395]: 01070608:0: License is not operational (expired or digital signature does not match contents). Loading the new /config/BigDB.dat failed.

01080023:3: Error return while getting reply from mcpd: 0x1070370, 01070370:3: Failover (redundant mode) is not licensed. After updating your license, run loaddb -local /config/BigDB.dat.cs

10. If you are running BIG-IP version 9.x software on a 1500, 3400, 6400, 6800, or 8400 hardware platform, type the following command to verify that the new or replaced SSH keys from the UCS file are synchronized between the BIG-IP and the SCCP: keyswap.sh sccp

11. Reboot the system, by typing the following command: reboot

If you installed this system on the same device on which the backup was created, after the system reboots, it will load the restored configuration; however, if you restored the backup on a different device, and received the errors noted in step 9, then perform steps 12 and 13:

2013-8-15

第33页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

12. Re-license the system.

13. Finish loading the BigDB.dat information by typing the following command: loaddb -local /config/BigDB.dat.cs

2013-8-15

第34页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

第6章 技术支持相关问题

6.1. 寻求F5技术支持时,要提供哪些信息与资料?

一般来说,如果要寻求F5的技术支持(不论是F5第三方技术支持中心或F5全球技术支持中心),都要准备以下信息:

1、

产品序列号(在BIG-IP机架安装耳朵的边上以bip开头的字串),产品序列号是判断设备是否在服务有效期内;

2、

Qkview输出文件:里面包含了BIG-IP的配置信息及日志信息。如果是双机,则两台机器的qkview输出文件都需要提供;

3、 4、 5、 6、

故障描述;

网络拓扑及IP地址说明;

如果必要,还需要提供TCPDUMP的抓包文件,并指出数据包异常现象; 如条件允许,对技术支持人员开放远程访问权限。

6.2. 如何获得更多关于F5产品的技术支持资料、如何查找故障处理

办法?

登陆http://ask.f5.com,只需简单注册一下即可下载F5产品的用户手册、并可以用提问的方法查找问题的答案。

其中常用的F5 BIG-IP用户手册可以从http://tech.f5.com/home/bigip-next/manuals/index.html#ltm 中找到,例如BIG-IP网络与系统管理指南“BIG-IP Network and System Management Guide”--

http://tech.f5.com/home/bigip-next/manuals/bigip9_2_3/bigip9_2_3mgmt/nsm_guide_923.pdf,

BIG-IP流量管理解决方法指南“Solutions Guide for BIG-IP Traffic Management Systems”--

http://tech.f5.com/home/bigip-next/manuals/bigip9_2_2/bigip9_2_2sol/sol_guide.pdf。

2013-8-15

第35页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

6.3. 如果BIG-IP系统损坏(非硬件故障),如何重装系统?

需要通过网络重装系统,安装方法请参考“http://tech.f5.com/home/solutions/sol4411.html”--Reinstalling system software from a network boot server。

常见的安装方法有VMware重装、SCCP重装,均可以参加相关的傻瓜操作

书;

另外,如果设备的操作系统完全损坏,无法通过VMware或者SCCP进行重

装的时候,需要将系统的ISO文件刻成光盘,通过外置光驱接到设备的USB口上,启动设备,即可进行全新安装。

2013-8-15

第36页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

6.4. BIG-IP发生硬件故障以后的更换流程?

客户提出更换申报 客户更换申报是 客户将损坏产品提交付F5的代理商 否 代理商交付到 AQSIQ 海关清关 代理商将坏件交付F5原厂 F5将新的替换产品送出 海关清关 交付到代理商 替换产品交付到客户

6.5. 如何进入单用户模式Solution ID: SOL4178 Booting BIG-IP in

single user mode

Products: ASM versions 9.2 - 9.2.3 GTM versions 9.2.2 - 9.2.3 LCM versions 9.2.2 - 9.2.3

2013-8-15

第37页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

LTM versions 9.0 - 9.2.3 Updated: 05-12-2006

Sometimes it is necessary to boot the BIG-IP system into single-user mode to fix operating system issues, such as filesystem or root password issues.

To boot the BIG-IP system into single-user mode, perform the following steps: Note: To perform the following steps, you must be local to the BIG-IP system with a console connection.

1. Connect a terminal to the BIG-IP serial console port. (Speed of Serial is 19200) 2. Reboot the BIG-IP system.

在重启运程中,会显示一个Grub的系统引导菜单,并进入倒计数

While booting, the BIG-IP system will display the GRUB menu and will countdown before continuing the boot process.

3. Before the countdown expires, press the ^ and v keys (SHIFT, 6, v) to select the boot image. 在倒计数

完成之前,用向上向下箭头选择相应的引导文件。如果只有一个引导文件,则不需要选择。如果有多个引导文件,一般用缺省的引导文件即可。

Note: Only one boot image will be available unless you have installed multiple boot images.

4. Press the e key to edit the boot options.按E键进入引导选项编辑界面。 5. A new menu screen displays.

6. Press the ^ or v keys (SHIFT, 6, v) to select the line that begins with kernel /boot/vmlinuz. 用向下箭

头或(SHIFT, 6, v)定位到kernel /boo/vmlinuz的那一行 7. Press the e key. 按E键进入引导选项编辑界面。

8. Add the word single to the end of the kernel /boot/vmlinuz line.在kernel /boot/vmlinuz那一行的末

尾加上single(single前应有一个空格).

For example:

kernel /boot/vmlinuz single

9. Press the Enter key.按回车键退出编辑界面。

10. Press the b key to boot the system using the modified options.按b继续引导过程

You have now booted the system in single-user mode. When you are finished using single-user mode, type exit or reboot to return the BIG-IP system to normal

2013-8-15

第38页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

operating mode.这样你就进入到单用户模式了。可以用exit或reboot命令退出单用户模式重新进入正式模式。

6.6. 如何重置root与web admin密码Solution ID: SOL3350

Changing account passwords for the command line and Configuration utility

Products:

BIG-IP ASM version 9.2

BIG-IP LTM versions 9.0 - 9.2

Updated: 02-18-2006

How do I recover a lost or forgotten root password? 6.1.1

Changing Root and Support Passwords

To reset a lost or forgotten root or support password, perform the following steps:

1. Boot the system into single-user mode.

Note: For specific instructions, refer to SOL4178: How do I boot BIG-IP into single-user mode?

2. Type the following commands:

mount -a passwd For example: passwd root

3. When prompted, enter a new password. 2013-8-15

第39页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

4. Type exit or reboot to return to the normal operating mode.

After the system reboots, you should be able to log in using the new password. 6.1.2

Changing an Administrative Account Password

Note: If you have not lost the password, but want to change it, F5 Networks recommends that you do so using the Configuration utility. Changing the admin password from the command line will result in passwords that are different on each BIG-IP in a redundant pair, which will prevent configuration synchronization from working correctly. For specific instructions about how to change a Configuration utility admin password, refer to the Managing User Accounts chapter of the BIG-IP Systems Management Guide.

To reset a lost Configuration utility admin account password from the command line, perform the following steps:

1. Log in to the command line.

2. Reset the admin password, by typing the following command:

passwd admin

3. When prompted, enter the new admin password. 4. When prompted, retype the new admin password.

BIG-IP will display the following message:

passwd: all authentication tokens updated successfully.

5. For a redundant pair, repeat these steps on the peer system. Configuration synchronization will not work

correctly until the passwords match.

2013-8-15

第40页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

第7章 对于Web应用:HTTP watch的使用

7.1

功能实现

通过压缩Http服务器的回应内容而提高Web用户访问速度, 降低服务器回应的网络流量

7.2 试验环境

在试验过程中先配置好VIP 并且应用http compress profile

在192.168.150.223的位置上: 直接访问不作压缩处理的服务器抓包分析 然后在211.155.162.35的位置上:

访问VIP 211.155.162.39, 压缩并负载均衡到服务器

访问192.168.150.104 通过bigip上的192.168.0.0:80的Wild Card VS 压缩并路由到服务器

2013-8-15

第41页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

7.3 实现原理

HTTP 压缩是一个web browsers 和 web servers常用的技术.

用户的 browser 在“Accept-Encoding:” header中通知server采用那种压缩模式. Server就可以在可协商的范围内选择其中一种方式并压缩回应的包.

Server另外插入一个“Content-Encoding:” header 显示采用的压缩方式.

用户访问采用压缩技术的VIP发出的请求包:

VIP采用压缩技术回应用户返回包:

2013-8-15

第42页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

对比观察直接访问服务器, 而没有压缩的过程:

用户直接访问没有压缩处理的服务器的请求包:

服务器没有压缩的返回包

2013-8-15

第43页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

7.4 实际结果

采用Sniffer抓包分析的对比结果:

1. 直接访问服务器和访问VIP with Http Compress Profile对比

2. 直接访问服务器和通过Wildcard VS with Http Compress Profile路由访问的对比

对比分析可以得出结论: 2.txt的文件在压缩和不压缩的情况下网络流量的节约是(403607-80658)/403607 = 80.0157% .

2013-8-15

第44页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

打开每个包的内容对比可以观测到的是压缩后的网络传送内容为乱码, 而非压缩的内容是可读的标准内容; 另外在返回时间上也有一个特别的注意: 压缩后的包返回时间比不压缩的时间反而慢, 最主要是因为压缩后的传送本来就有压缩的过程需要耗费一些时间, 关于这个问题在下面的优化中会有进一步讨论.

2013-8-15

第45页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

7.5 压缩微调配置

? 针对压缩处理的微调

? Minimum Content-Length for Compression - 参数调节服务器回应内容的最小

压缩长度限制(in bytes) .

? Gzip Memory Level – 规定每个压缩回应时用来处理压缩的内存数量, 数值小的

时候就会慢, 并且压缩比例也就小, 数值大会快并且压缩比也大些.

? gzip Window Size – 规定在服务器压缩回应时针对windows size (the

compression history buffer)的内存大小(in bytes). 更大的数值会提高更大的压缩比, 但也会消耗更大的内存.

? Observed TCP Latency – 压缩的处理在宽带用户, 传输带宽足够快的情况下并不会

提高用户访问速度, 就像前面显示的情况, 在试验室环境内因为用户和bigip直接连接在一起, 压缩反而会造成访问的回应时间延迟的情况. 压缩技术使用的关键就是如何确认压缩对用户是更有效的, 如何区分用户是否需要压缩处理. 为了解决这个问题, F5 开发了一个关于自动探测用户连接的延迟状况, 并用来定位更适合压缩的目标用户的专利技术. 不需要任何的探测技术, bigip观察用户连接的 TCP RTT来动态计算用户连接的延迟状况. 这让BIG-IP的压缩技术为用户提供最大的实际效果. ? 压缩可选内容 – 在用户访问的Http Header中的URI可以判断用户访问的文件内容的

类型, 从而判断是否要压缩处理,例如: “.*\\.txt”, “.*\\.htm” ,“.*\\.html”. ; 或从服务器回应的Http Header中的Content Types也可以判断回应的文件类型, 从而确认是否要采用压缩处理, 例如: “application/pdf” ,“image/.*”, “text/.*”, “text/(?!css$)”等. ? 压缩效果比较好的:

? text ? html

? other white space rich data

? 压缩效果比较不好的:Images(注意, 图片一般都会出现Cache的现象)

? PDFs

? Other file types that are already compressed

2013-8-15

第46页, 共52页

文档名称: F5 BIG-IP V9产品的常见问题处理手册

7.6 配置方法

先生成一个http compress 的 profile , 告诉bigip如果在这个profile的流量内要进行http 压缩处理

2013-8-15

第47页, 共52页

本文来源:https://www.bwwdw.com/article/rfzo.html

Top