思博伦通信高层API使用手册-Version 2.0_第1页
思博伦通信高层API使用手册-Version 2.0_第2页
思博伦通信高层API使用手册-Version 2.0_第3页
思博伦通信高层API使用手册-Version 2.0_第4页
思博伦通信高层API使用手册-Version 2.0_第5页
已阅读5页,还剩276页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

SPIInspiredInnovatior

CommurticAtiora

SpirentTestCenter

HLAPI自动化测试脚本开发使用指南

Version2.0

Leverageourexpertise

soyoucan

focusonyours.

思博伦通信专业化服务

序列号二

Wednesday,June14,2011

思博伦高层API使用手册|

Contents

CONTENTS2

1自动化测试的挑战15

2SPIRENTTESTCENTERAPI概述15

2.1SPIRENTTESTCENTERAPI工作环境15

2.2SPIRENTTESTCENTER自动化技术支持16

3思博伦高层API介绍17

3.2讪伦高展API优工二.17

3.3思博伦高层API使用环境17

3.4思博伦高层API使用方法17

4思博伦高层API类层次关系17

4.1测试仪表类(TESTDEVICE)18

4.2端口类(TESTPORT)18

4.4流Z发送弓j擎类(TRAFFICENGINE)19

4.5算计分析弓I擎类19

47调度事件类(TESTEVENT)20

5术语、定义和缩略语20

5.1术语、定义20

5.2缩略语20

6思博伦高层API命令参考21

6.1.1CreateTestPort21

6.J.2DcstroylcstPort21

行I歌嘉]二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二二3

6.7.7CleanupTesf..16二22

6.1.17ConfigStreamSchedulingMode25

6.[.19RestoreLinks26

62TESTPORT类API26

6.2.1SiartTraJ^ic26

思博伦高层API使用手册version2.0.18Page2

思博伦高层API使用手册|

624CYPqtPTY([用i「27

6.2.5DcstroyTraffic27

6.2.12CreateFilter29

6214DestroyFilter34

6.2.18StopStaEngine35

6.2.19Confi^Port35

6.2.24StopHighResolutionSatnple36

6.3.3CreateSublnt38

6.3.7CrcatcAvpd39

6.4.1ConfigPort40

6.5.2Conf^PPP41

6.5.3GetPPPState42

654ConnectPPP42

66.7Confi^Schecluler42

6.6.4CrcutcEvcTit43

6.7TESTEVENT类API44

6.8STATISTICENGINEAPI44

69/CreateProfile50

思博伦高层API使用手册version2.0.18Page3

思博伦高层API使用手册|

50

6.9.2ConfigProfile50

6.9.3DestroyProfile50

6.9.4CreateStream58

6.9.5DestroyStream58

6.9.6ConfigStream64

6.10STREAM亲API

64

6.10.1AddPdu64

6.10.2RemovePdu65

6.10.3DestroyPdu65

6.10.4FindPdu65

6.11HEADERCREATOR类API...65

6.11.1CreateEthHeader66

6.11.2ConfigEthHeader66

6.11.3CreateVlanHeader67

6.11.4ConfigVlanHeader67

6.11.5Create!PV4Header...68

6.11.6ConfigIPV4Header69

6.11.7CreateTCPHeader70

6.11.8ConfigTCPHeader70

6.11.9CreateUDPHeader70

6.11.10ConfigUDPHeader.7/

6.11.11CreatedPLSHeader7/

6.11.12ConfigMPLSHeader72

6.11.13CreateIPV6Header..73

6.11.14ConfiglPV6Header..73

6.12PACKETBUILDER类API73

6.12.1CreateDHCPPkt74

6.12.2CreatePIMPkt75

6.12.3CreateIGMPPkt76

6.12.4CreatePPPoEPkt76

6.12.5CreateICMPPkt77

6.12.6CreateArpPkt78

6.12.7CreateCustomPkt79

6.13HOST类API79

6.13.1Ping00

0

6.13.2SendArpRequest80

0

6.14IGMPHOST类API00

0

6.14.1SetSession0/

0

6.14.2CreateGroupPool02

0

6.14.3SetGroupPool02

0

6.14.4DeleteGroupPool02

02

6.14.5SendReport0

03

6.14.6SendLeave0

6.14.7RetrieveRouterStats..03

0

6.14.8Enable03

0

6.14.9Disable04

04

6.14.JORetrievelpv4Address0

6.14.11RetrieveMacAddress04

8

类04

6.15IGMPSESSIONAPI….…0

05

6.15.1SetSession0

6.15.2RetrieveRouter05

0

6

6.15.3RetrieveRouterStats...0

6.15.4StartAllQuery06

0-

6.15.5StopAllQuety06

06

6.15.6Enable0

06

6.15.7Disable0

07

6.15.8RetrieveRouterStatus.0

6.15.9RetrieveIpv4Address.0

思博伦高层API使用手册version2.0.18Page4

思博伦高层API使用手册|

6.16.1SetSession87

61719/

6.18.]SatScssioTi93

6.18.14SetFlap99

6.19.5Release103

6.19.12RetrieveRoute『Stats104

6.19.17RetrieveHostState107

思博伦高层API使用手册version2.0.18Page5

思博伦高层API使用手册|

6.19.18Reset107

6.19.19Decline107

6.19.20Inform107

6.20DHCPSERVER类API108

6.20.1SetSessionJ08

6.20.2RetrieveRouter108

6.20.3Enable109

6.20.4Disable109

6.20.5Reboot110

6.20.6ClearStats110

6.20.7RetrieveRouterStats110

6.20.8ForceRenew110

6.21PPPoECLIENT类APIII0

6.21.1SetSession110

6.21.2Open112

6.21.3Close112

6.21.4RetrieveRouter112

6.21.5RetrieveRouterStats113

6.21.6CancelAttempt114

6.21.7Abort114

6.21.8Enable115

6.21.9Disable115

6.21.10RetryFailedPeer115

6.21.11RetrieveHostState115

6.22PPPoESERVER类API116

6.22.1SetSession116

6.22.2RetrieveRouter117

6.22.3RetrieveRouterStats118

6.22.4Enable118

6.22.5Disable118

6.22.6RetryFailedSession118

6.23PPPOL2TPLAC类API119

6.23.1SetSession119

6.23.2Open120

6.23.3Close120

6.23.4RetrieveRouter120

6.23.5RetrieveRouterStats121

6.23.6CancleAttempt123

6.23.7Abort123

6.23.8Disable123

6.23.9Enable123

6.23.10RetryFailedPeer123

6.24PPPOL2TPLNS类API124

6.24.1SetSession124

6.24.2Open125

6.24.3Close125

6.24.4RetrieveRouter125

6.24.5RetrieveRouterStats126

6.24.6CancleAttempt128

6.24.7Abort128

6.24.8Disable128

6.24.9Enable128

6.24.10RetryFailedPeer128

6.25IGMPODHCP类API129

6.25.1SetSession129

6.25.2RetrieveRouter131

6.25.3Enable133

6.25.4Disable133

思博伦高层API使用手册version2.0.18Page6

思博伦高层API使用手册|

6.25.5DhcpSetSession..133

6.25.6DhcpBind..135

6.25.7DhcpRelease..135

6.25.8DhcpRenew..135

6.25.9DhcpAbort..135

6.25.10DhcpDecline..135

6.25.11Dhcplnfonn..136

6.25.12DhepRetryUnbound..136

6.25.13DhcpReboot..136

6.25.14DhcpClearStats..136

6.25.15DhcpRetrieveRouterStats...136

6.25.16DhcpRetrieveRouter..137

6.25.17DhcpSetFlap..138

6.25.18DhcpStartFlap..138

6.25.19DhcpStopFlap..139

6.25.20DhcpRetrieveHostState..139

6.25.21IgmpSetSession..139

6.25.22IgmpCreateGroupPool..140

6.25.23IgmpSetGroupPool..141

6.25.24IgmpDeleteGroupPool..…..141

6.25.25IgmpSendReport..142

6.25.26IgmpSendLeave..142

6.25.27IgmpRetrieveRouterStats..142

6.25.28IgmpRetrieveRouter..143

6.25.29Ping..143

6.25.30SendArpRequest..144

6.26IGMPOPPPOE类API..144

6.26.1SetSession..144

6.26.2RetrieveRouter..146

..147

6.26.4Disable..147

6.26.5PPPoESetSession..148

6.26.6PPPoEOpen..149

6.26.7PPPoEClose..149

6.26.8PPPoERetrieveRouter.....149

6.26.9PPPoERetrieveRouterStats..151

6.26.10PPPoECancelAttempt....151

6.26.JIPPPoEAhort..152

6.26.12PPPoERetryFailedPeer.....152

6.26.13PPPoERetrieveHostState...152

6.26.14IgmpSetRouter..152

6.26.15IgmpCreateGroupPool…..153

6.26.16IgmpSetGroupPool..154

6.26.17IgmpDeleteGroupPool..…..155

6.26.18IgtnpSendReport..755

6.26.19IgmpSendLeave..155

6.26.20IgnipRetrieveRouterStats..155

6.26.21IgmpRetrieveRouter..156

6.26.22Ping..157

6.26.23SendArpRequest..157

6.27RIPSESSION类API..157

6.27.1RipSetSession..157

6.27.2RipRetrieveRouter..158

6.27.3RipEnable..158

6.27.4RipDisable..159

6.27.5RipCreateRouteBlock..159

6.27.6RipSetRouteBlock..159

6.27.7RipDeleteRouteBlock..160

思博伦高层API使用手册version2.0.18Page7

思博伦高层API使用手册|

76O

6.27.8RipListRouteBlock/6O

6.27.9RipRetrieveRouteBlock76O

6.27.10RipAdvertiseRouteBlock76/

6.27.11RipWithdrawRouteBlock76/

6.27.12RipStartFlapRouteBlock/6/

6.27.13RipStopFlapRouteBlock76/

6.27.14RipSetFlapRouteBlock76/

6.27.15RipRetrieveRouterStats/62

6.27.16RipRetrieveRouterStatus

162

6.28GPESSION类API

BV4S762

6.28.1BgpV4SetSession/63

6.28.2BgpV4RetrieveRouter764

6.28.3BgpV4SetCapability764

6.28.4BgpV4RetrieveCapability765

6.28.5BgpV4Enahle/65

6.28.6BgpV4Disable765

6.28.7BgpV4CreateRouteBlock766

6.28.8BgpV4DeleteRouteBlock/66

6.28.9BgpV4ListRouteBlock766

6.28JOBgpV4SetRouteBlock768

6.28.11BgpV4RetrieveRouteBlock769

6.28.12BgpV4AdvertiseRouteBlock769

6.28.13BgpV4WithdrawRouteBlock769

6.28.14BgpV4StartFlapRouteBlock770

6.28.15BgpV4StopFlapRouteBlock/70

6.28.16BgpV4SetFlapRouteBlock770

6.28.17BgpV4RetrieveRouteStats77/

6.28.18BgpV4CreateMplsVpn/7/

6.28.19BgpV4SetMplsVpn77/

7

6.28.20BgpV4DeleteMplsVpn7/

7

6.28.21BgpV4CreateVpnRouteBlock

/73

6.28.22BgpV4DeleteVpnRouteBlock773

6.28.23BgpV4SetVpnRouteBlock774

6.28.24BgpV4CreateRouteBlockToVPN774

6.28.25BgpV4DeleteRouteBlockFromVPN/75

6.28.26BgpV4RetrieveVPNRoutes775

6.28.27BgpV4SetBfd775

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论