WO2007016830A1 - A method and client side for implementing the detection of dhcp service performance - Google Patents
A method and client side for implementing the detection of dhcp service performance Download PDFInfo
- Publication number
- WO2007016830A1 WO2007016830A1 PCT/CN2006/001055 CN2006001055W WO2007016830A1 WO 2007016830 A1 WO2007016830 A1 WO 2007016830A1 CN 2006001055 W CN2006001055 W CN 2006001055W WO 2007016830 A1 WO2007016830 A1 WO 2007016830A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- dhcp
- service
- client
- test
- server
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
Definitions
- the present invention relates to the field of network communication technologies, and in particular, to a method and a client for implementing DHCP service performance detection.
- DHCP Dynamic Host Configuration Protocol
- IPv6 networks With the deployment of IPv6 networks, the DHCP protocol has been extended to accommodate IPv6 networks, namely DHCPv6. IPv6 networks will be larger and more complex than IPv4 networks. As the application protocol, DHCP is directly directed to the end user. Therefore, if there is a problem with the DHCP JI service, the new user will not be able to access the network resources due to the inability to obtain the machine's IP address and configuration information.
- Ping Patch
- Trace Route Traffic Routing
- the ping technology is a technology for verifying whether the channel and the device are normal and the network performance.
- the route A can be pinged from Route A.
- Route A will construct and send a sixth version.
- the Internet Control Message Protocol (ICMPv6) message the router between Route A and Route B only forwards this message.
- Route B receives the ICMPv6 message, it constructs a response message and responds to the message. Send back to Route A.
- Route A confirms that the route from Route A to Route B is reachable, and can calculate the delay between the two nodes to confirm the performance of the network.
- ICMPv6 Internet Control Message Protocol
- the Trace Route technology is also a type of packet that detects the link. The difference is that the Trace Route is incremented (incremented from 1) by the Hop Limit. Returns ICMPv6 timeout 4i text. If from Route A Trace Route Route B The address of the link between Route A and Route B is returned to the ICMPv6 packet. After receiving the ICMPv6 packet, Route A can determine the link status and delay.
- Trace Route is used to locate the fault point that is faulty.
- the ping and trace route technologies only detect the reachability and performance of the IP layer in the network, and cannot detect the running status of the DHCPv6 protocol, that is, it cannot detect whether the current DHCP service can be normally provided, such as the DHCPv6 service. Availability, performance, etc., therefore, the reliability of the DHCP service cannot be accurately known.
- the existing DHCP service quality detection method can only detect the connection and disconnection of the link with the DHCP server, and the function of the DHCP server itself is normal, but it is impossible to know, so that the performance of the DHCP service cannot be accurately evaluated. And quality, and thus can not solve the problems that may arise when the DHCP service is not available properly.
- an object of the present invention is to provide a method and a client for implementing DHCP service performance detection, so as to accurately know whether the function of the DHCP server is normal and reliable, thereby accurately evaluating the performance and quality of the DHCP service.
- the DHCP client determines the DHCP server to be tested, and constructs a configuration request message according to the detection parameter information, and sends the configuration request message to the DHCP server to be tested.
- the DHCP client calculates the detection result of the DHCP service performance according to the received response message returned by the DHCP server to be tested.
- the process of determining the DHCP server to be tested in step A includes:
- the DHCP client sends a request SOLICIT message to the DHCP server.
- the DHCP client advertises the ADVERTISE packet according to the return of each DHCP server. Select to determine at least one DHCP server to be tested.
- the method further comprises:
- the DHCP client does not receive the ADVERTISE packet returned by the DHCP server within the specified time, it determines that the test process fails and ends.
- the process of calculating the detection result of the performance of the DHCP service in step B includes:
- the DHCP client and the DHCP server exchange the configuration request message and the response message for several tests, record each intermediate information, and calculate the detection result based on the recorded intermediate information.
- the detection result includes but is not limited to:
- DHCP Service Delay DHCP Service Success Rate DHCP Service Success Ratio, and / or DHCP Service Availability DHCP Service Availability.
- the method further includes: the DHCP client sending a release message to the DHCP server, requesting the DHCP server to release the resource information for testing allocated by the client.
- the test result information is stored in the DHCP client, and the local and remote calling interfaces are provided, and the local user or the remote user invokes the saved test result information through the interface.
- the detection parameter information includes: a start/end time of the test, a frequency of the test, a period of the test, and/or source port information used for the test.
- the DHCP client includes but is not limited to a router, a Layer 2 / Layer 3 switch.
- the DHCP server is a device that provides a DHCPv6 service in the network, and the device includes but is not limited to a DHCPv6 server, or a router that provides a DHCPv6 service, or a Layer 2/Layer-3 switch.
- a DHCP client for implementing DHCP service performance detection including:
- Parameter setting module used to set and save the information of each detection parameter required for performing the DHCP service test;
- the test control module is configured to control the interaction between the DHCP client and the DHCP server according to the detection parameter information, and perform corresponding DHCP configuration processing;
- the test information recording module is configured to record the DHCP service process information during the process of the packet exchange between the DHCP client and the DHCP server;
- Test data generation module Used to calculate the test result of the DHCPv6 service according to the process information recorded by the test information record module.
- the detection result includes but is not limited to: DHCP service response delay DHCP Service Response Delay ⁇ DHCP service delay DHCP Service Delay ⁇ DHCP service success rate DHCP Service Success Ratio, and/or DHCP service availability DHCP Service Availability o
- the detection parameter information includes: a start/end time of the test, a frequency of the test, a period of the test, and/or source port information used for the test.
- the DHCP client includes but is not limited to a router, a Layer 2 / Layer 3 switch.
- the DHCP server is a device that provides a DHCPv6 service in the network, and the device includes but is not limited to a DHCPv6 server, or a router that provides a DHCPv6 service, or a Layer 2/Layer-3 switch.
- the implementation of the present invention can effectively solve the detection and monitoring of the DHCPv6 protocol in the IPv6 network, and can timely understand the operation of the DHCPv6 server in the network, and know whether the function of the DHCP server itself is normal. Thereby truly assessing the performance and quality of the DHCP service.
- the present invention is very important for maintaining the normal operation of the DHCPv6 protocol in the network and providing the operator with a stable DHCPv6 service to the client.
- FIG. 1 is a schematic diagram of a network structure of a DHCP service performance detection application
- Figure 2a is a schematic diagram of peer-to-peer DHCP service performance detection
- Figure 2b is a schematic diagram of point-to-multipoint DHCP service performance detection
- Figure 2c is a schematic diagram of multi-point to multi-point DHCP service performance detection
- Figure 2d is a schematic diagram of the multi-point to one-point DHCP service performance detection
- FIG. 3 is a schematic diagram of a processing procedure of the method of the present invention.
- FIG. 4 is a flowchart of processing of a DHCP client in the method of the present invention.
- FIG. 5 is a schematic structural diagram of a DHCP client according to the present invention.
- FIG. 6 is a flowchart of processing of a DHCP server in the method of the present invention.
- the core idea of the present invention is to adopt a client/server model between network nodes to implement the detection function of the DHCPv6 service, and complete statistics and query of various information generated by the service of the DHCPv6 service.
- the client sends a DHCPv6 Server request packet to the server.
- the server After receiving the DHCPv6 Server request packet, the server sends a response packet to the client.
- the client After receiving the response packet, the client sends a configuration request packet to the server.
- the server After receiving the configuration request packet, the server sends a response packet to the client to provide an IPv6 address and corresponding configuration.
- the network delay is calculated and the test result is saved. Then, the release packet is sent to the server to release the IPv6 address.
- the detection described in the present invention may be one time, or may be multiple or periodic detection.
- the detection may be point-to-point, point-to-multipoint, multi-point to multi-point, multi-point to point.
- the present invention mainly relates to two network devices, namely a client and a server, wherein:
- the client device that is, the DHCPv6 client, is mainly responsible for analyzing and saving the test initiation and test results, and may specifically include, but is not limited to, a router, a layer 2/layer 3 switch, and the like; the server device, that is, DHCP.
- the server is responsible for responding to the client's test request and sending a response packet to the client.
- the device can provide a DHCPv6 service on the network. It can be a standard DHCPv6 server or a router that provides DHCPv6 services. Layer 2/3 switch.
- the present invention provides a specific process for implementing DHCPv6 service testing on an IPv6 network, as shown in FIG. Show, the specific process includes:
- Step 31 Start the DHCPv6 service on the server side.
- Step 32 Configure the DHCPv6 service test task on the client, set the start/end time of the test, the test period, and the frequency, and test the source interface used.
- Step 33 The client sends a SOLICIT message to the DHCPv6 server according to the configuration, according to the set period and frequency, to find the DHCPv6 server.
- Step 34 After receiving the SOLICIT request message from the client, the DHCPv6 server sends an advertisement (ADVERTISE) response message to the client.
- ADVERTISE advertisement
- Step 35 Send a configuration request packet to the DHCPv6 server to be tested.
- Each DHCPv6 server sends an ADVERTISE packet after receiving a SOLICIT packet from the client. In this way, the client may receive ADVERTISE packets sent by multiple different servers.
- DHCPv6 RRC3315
- the protocol standard stipulates that the client should select a DHCPv6 server to provide configuration according to the policy, that is, send a REQUEST configuration request message to a selected server; in the present invention, in order to facilitate the designated DHCPv6 in the network.
- the server performs performance testing. At this time, you can choose to test according to the standard protocol flow, or you can respond to all DHCPv6 servers, that is, test all DHCPv6 servers in the network.
- Step 36 After receiving the REQUEST request from the client, the DHCP server sends a REPLY response packet to the client to provide an IPv6 address and related network configuration.
- Step 37 Collect parameters for detecting the performance of the DHCP service during the configuration of the DHCPv6. After the DHCPv6 configuration process is complete, record the intermediate information of the test, such as the timestamp, the delay of the packet, the time when the service is completed, and the service. The success of the completion or not.
- the interaction between the configuration request message and the response message for several tests is performed between the DHCP client and the DHCP server to record multiple intermediate information.
- Step 38 The DHCP client sends a release (RELEASE) message to the server, releasing the resource just for application for testing, such as an IPv6 address.
- a release RELEASE
- Step 39 The client calculates the test result based on the recorded intermediate information, and performs preliminary analysis and saves.
- the user can view the result through the command line or the network management device.
- the present invention implements the provision of a DHCP service in the network.
- the device or the DHCP server performs the test for the performance of the DHCP service.
- the corresponding measures can be taken in time to avoid the failure of the DHCP service to be provided.
- the specific processing operations of the client and the server end will be separately described below with reference to the accompanying drawings.
- the DHCPv6 service test client is used to complete the function of the client in the DHCPv6 protocol. It is mainly responsible for the test initiation and analysis and storage of test results. As shown in Figure 4, the following steps are specifically included:
- Step 41 Save the user's configuration, such as the start/end time of the test, the frequency of the test, the test period, the source port used for the test, and so on.
- Step 42 Set the timing detection according to the test start/end time, the frequency of the test, and the period configured by the user.
- Step 43 When the test time is up, first construct a SOLICIT message according to RFC3315, and then send it out from the specified source port after a delay according to the standard.
- Step 44 The DHCPv6 client determines whether the ADVERTISE packet sent by the DHCPv6 service is received within the specified time. If yes, go to Step 46. Otherwise, go to Step 45. Step 45: If it is not received within the specified time. To the ADVERTISE message sent by any DHCPv6 server, the test failure result is recorded, waiting for the next test to start.
- Step 46 Send a configuration request packet to the DHCPv6 server to be tested.
- the client needs to select a policy according to the policy.
- the DHCPv6 server provides configuration for sending a REQUEST configuration request message to a selected server, ignoring the ADVERTISE message of other servers;
- DHCPv6 server In order to facilitate testing of the DHCPv6 server in the network, you can choose to follow the standard protocol. The process is tested and all DHCPv6 servers can be answered, that is, all DHCPv6 servers in the network are tested.
- Step 47 Determine whether the REPLY message returned by the DHCPv6 server is received within the specified time. If yes, go to step 49. Otherwise, go to step 48.
- Step 48 If no DHCPv6 server is received within the specified time
- the REPLY message records the test failure result and waits for the next test to begin.
- Step 49 After receiving the REPLY message of the DHCPv6 server, check the REPLY message, if it is in accordance with RFC3315, check whether the message is a valid Reply message, whether it is a test expected message, etc., and record the middle of the test. Information, such as timestamp, delay of message, time to complete a service, success of service completion, etc.
- the configuration request message and response response between the DHCP client and the DHCP server are used to record multiple intermediate information.
- Step 410 Calculate the test result according to the recorded intermediate information, and perform analysis and save, so that the user can view through the command line or the network management.
- Step 411 Construct a RELEASE message and send it to the DHCPv6 server to release the resource just for testing, such as an IPv6 address.
- FIG. 5 specifically includes:
- Parameter setting module used to set and save the information of each detection parameter required for performing the DHCP service test
- the test control module is configured to control the initiation of the test operation process according to the detection parameter information, that is, control the interaction between the DHCP client and the DHCP server to perform corresponding DHCP configuration processing;
- the test information recording module is configured to record the process information of the DHCP service during the process of the packet exchange between the DHCP client and the DHCP server, including recording the number of times the IPv6 address is successfully obtained through DHCP, and the time required to obtain the address. Delay, etc.
- the test data generation module is configured to calculate test result information of the DHCPv6 service according to the information recorded by the test information record module, and specifically includes: DHCP service response delay (DHCP) Service Response Delay), DHCP Service Delay, DHCP Service Success Ratio, DHCP Service Availability.
- DHCP service response delay DHCP
- DHCP Service Delay DHCP Service Delay
- DHCP Service Success Ratio DHCP Service Availability
- the detection result obtained by the DHCP client is saved in the tested DHCP client device.
- the user can view it on the terminal. If it is a network device such as a router, it can also be viewed remotely on the network management device.
- the DHCPv6 service test server is configured to perform the function of the server in the DHCPv6 protocol, and is mainly responsible for responding to the test request of the client, and sending a response message to the client, as shown in FIG. 6, which specifically includes the following processing steps:
- Step 61 Start the DHCPv6 protocol service according to the configuration.
- Step 62 Listen for DHCPv6 messages sent by the client.
- Step 63 After receiving the SOLICIT packet sent by the client, the server confirms whether to respond according to the local policy. If it is confirmed that a response is required, an ADVERTISE response message is first created, and then an ADVERTISE message is sent to the client.
- Step 64 Listen for DHCPv6 messages sent by the client.
- Step 65 After receiving the REQUEST packet sent by the client, the server constructs a REPLY packet according to the policy configured by the server, and includes an IPv6 address and related configuration information provided to the client.
- Step 66 Listen for DHCPv6 packets sent by the client.
- Step 67 After receiving the RELEASE packet sent by the client, the server releases the resources occupied by the client's test, such as reclaiming the IPv6 address assigned to the client.
- Step 68 Continue to listen to DHCPv6 packets sent by the client to prepare for the next DHCP configuration.
- the entity or the DHCP server that provides the DHCP service in the network does not need to be improved, that is, the existing DHCP service entity or the DHCP server can be directly used as the DHCP server of the present invention.
- the test performance indicator of the DHCPv6 service for the IPv6 network includes: DHCP Service Response Delay, DHCP Service Delay, DHCP Service Success Ratio, DHCP Service Availability.
- the present invention effectively solves the problem of detecting and monitoring the DHCPv6 protocol in an IPv6 network, and can discover the DHCP server in time when an abnormality occurs, thereby ensuring that the operator can provide a stable DHCPv6 service to the client.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A method and client for implementing the detection of DHCP service performance comprise: firstly, the DHCP client side transmits the configuration request message to the DHCP server to be tested; then, according to the condition of the response message received by the DHCP client side from the DHCP server to be tested, determine the detection result of DHCP service performance. The present invention can dispose efficiently the detection and monitor of DHCPv6 protocol in the IPv6 network. It can know the operating condition of DHCPv6 server in the network in time, discover in time and intervene by the user to dispose once it has abnormity. So it is important for the present invention to maintain the normal operation of DHCPv6 protocol in the network and provide the stable DHCPv6 service from the provider to the client.
Description
实现 DHCP服务性能检测的方法及客户端 技术领域 本发明涉及网络通信技术领域, 尤其涉及一种实现 DHCP服务性能 检测的方法及客户端。 The present invention relates to the field of network communication technologies, and in particular, to a method and a client for implementing DHCP service performance detection.
背景技术 动态主机配置协议(DHCP )是目前互联网 (Internet )上使用最多的 应用服务之一, 用于集中管理访问 Internet用户的 IP地址和配置。 BACKGROUND Dynamic Host Configuration Protocol (DHCP) is one of the most widely used application services on the Internet (Internet), and is used to centrally manage the IP addresses and configurations of Internet users.
随着 IPv6网络的部署, DHCP协议也做了相应的扩展以适应 IPv6网 絡, 即 DHCPv6。 相对于 IPv4网络, IPv6网络将更加庞大和复杂。 而作为 应用协议的 DHCP直接面向终端用户, 因此, 如果 DHCPJI艮务出现问题, 那么新用户将由于不能获取机器的 IP地址和配置信息造成无法访问网络 的资源。 With the deployment of IPv6 networks, the DHCP protocol has been extended to accommodate IPv6 networks, namely DHCPv6. IPv6 networks will be larger and more complex than IPv4 networks. As the application protocol, DHCP is directly directed to the end user. Therefore, if there is a problem with the DHCP JI service, the new user will not be able to access the network resources due to the inability to obtain the machine's IP address and configuration information.
可以看出, DHCP服务的质量和性能将直接影响服务提供商的形象, 以及客户对服务提供商提供服务的满意程度。这就使得在一个复杂的 IPv6 网络中, 如何评估 DHCP服务的质量和性能, 以及如何及时发现 DHCP服 务质量的下降, 成为了一个亟待解决的重要问题。 It can be seen that the quality and performance of the DHCP service will directly affect the image of the service provider and the satisfaction of the customer with the service provided by the service provider. This makes it an important issue to be solved in how to evaluate the quality and performance of DHCP services and how to detect the degradation of DHCP service quality in a complex IPv6 network.
目前, 通常采用 Ping (拼)和 Trace Route (跟踪路由)技术实现针对 DHCP服务质量和性能的评估,以及时发现相应的 DHCP服务质量的下降。 At present, Ping (Patch) and Trace Route (Trace Routing) technologies are generally used to evaluate the quality and performance of DHCP services, and the corresponding degradation of DHCP service quality is found.
所述的 ping技术是一种验证通道和设备是否正常以及网络性能的技 术, 以图 1所示为例, 具体可以从 Route A ping Route B, 此时, Route A将 构造并发送一个第六版互联网控制消息协议(ICMPv6 )的报文, Route A 和 Route B之间的路由器对这个报文仅做转发, 当 Route B接收到这个 ICMPv6报文后,构造一个应答报文,并将应答报文发送回 Route A。 Route A接收到所述应答报文后, 确认 Route A到 Route B的通道是可达的, 并且 能够计算出两个节点之间的时延以确认网络的性能。 The ping technology is a technology for verifying whether the channel and the device are normal and the network performance. For example, as shown in FIG. 1, the route A can be pinged from Route A. At this time, Route A will construct and send a sixth version. The Internet Control Message Protocol (ICMPv6) message, the router between Route A and Route B only forwards this message. When Route B receives the ICMPv6 message, it constructs a response message and responds to the message. Send back to Route A. After receiving the response message, Route A confirms that the route from Route A to Route B is reachable, and can calculate the delay between the two nodes to confirm the performance of the network.
所述的 Trace Route技术也是一种对链路进行检测的报文, 不同的是, Trace Route通过增量(从 1开始增加)报文中的跳数限制 (Hop Limit ) , 来从每一跳返回 ICMPv6超时 4i文。 如果从 Route A Trace Route Route B的
地址, 则从 Route A 与 Route B之间的路由器和 Route B各自返回一个 ICMPv6报文, Route A收到 ICMPv6报文后可以确定链路的状态和时延。 The Trace Route technology is also a type of packet that detects the link. The difference is that the Trace Route is incremented (incremented from 1) by the Hop Limit. Returns ICMPv6 timeout 4i text. If from Route A Trace Route Route B The address of the link between Route A and Route B is returned to the ICMPv6 packet. After receiving the ICMPv6 packet, Route A can determine the link status and delay.
在实际应用中, 经常用 Ping来判断整个通道的通断, 而采用 Trace Route来定位具体发生故障的故障点。 In practical applications, Ping is often used to judge the continuity of the entire channel, and Trace Route is used to locate the fault point that is faulty.
也就是说, 所述的 ping和 Trace Route技术只检测了网络中 IP层的可达 性和性能, 而无法检测 DHCPv6协议的运行状况, 即无法检测当前 DHCP 服务是否可以正常提供, 如 DHCPv6服务的可获得性和性能等, 因此, 无 法准确获知 DHCP服务的可靠性。 That is to say, the ping and trace route technologies only detect the reachability and performance of the IP layer in the network, and cannot detect the running status of the DHCPv6 protocol, that is, it cannot detect whether the current DHCP service can be normally provided, such as the DHCPv6 service. Availability, performance, etc., therefore, the reliability of the DHCP service cannot be accurately known.
即现有的 DHCP服务质量检测方法只能检测出与 DHCP服务器之间 的链路的通断情况, 而 DHCP服务器本身的功能是否正常却无从获知, 这样, 也就无法真正准确评估 DHCP服务的性能和质量, 因而也就无法 解决当 DHCP服务无法正常提供时可能引发的问题。 That is, the existing DHCP service quality detection method can only detect the connection and disconnection of the link with the DHCP server, and the function of the DHCP server itself is normal, but it is impossible to know, so that the performance of the DHCP service cannot be accurately evaluated. And quality, and thus can not solve the problems that may arise when the DHCP service is not available properly.
发明内容 Summary of the invention
鉴于上述现有技术所存在的问题, 本发明的目的是提供一种实现 DHCP服务性能检测的方法及客户端, 以准确获知 DHCP服务器的功能是 否正常可靠, 从而能够准确评估 DHCP服务的性能和质量。 In view of the above problems in the prior art, an object of the present invention is to provide a method and a client for implementing DHCP service performance detection, so as to accurately know whether the function of the DHCP server is normal and reliable, thereby accurately evaluating the performance and quality of the DHCP service. .
本发明的目的是通过以下技术方案实现的: The object of the invention is achieved by the following technical solutions:
一种实现 DHCP服务性能检测的方法, 在客户端配置检测参数信息, 该方法还包括: A method for implementing performance detection of a DHCP service, configured to detect parameter information on a client, the method further includes:
A、 DHCP客户端确定待测试的 DHCP服务器端, 根据所述检测参数 信息构造配置请求报文, 向待测试的 DHCP服务器端发送该配置请求报 文; A. The DHCP client determines the DHCP server to be tested, and constructs a configuration request message according to the detection parameter information, and sends the configuration request message to the DHCP server to be tested.
B、 所述 DHCP客户端根据接收到的待测试 DHCP服务器端返回的应 答报文, 计算 DHCP服务性能的检测结果。 B. The DHCP client calculates the detection result of the DHCP service performance according to the received response message returned by the DHCP server to be tested.
较佳地, 步骤 A所述确定待测试的 DHCP服务器端的过程包括: Preferably, the process of determining the DHCP server to be tested in step A includes:
DHCP客户端向 DHCP服务器端发送请求 SOLICIT报文; The DHCP client sends a request SOLICIT message to the DHCP server.
DHCP客户端根据各个 DHCP服务器端返回的通告 ADVERTISE报文
选择确定至少一个待测试的 DHCP服务器端。 The DHCP client advertises the ADVERTISE packet according to the return of each DHCP server. Select to determine at least one DHCP server to be tested.
较佳地, 进一步包括: Preferably, the method further comprises:
如果 DHCP客户端在规定的时间内没有收到 DHCP服务器端返回的 ADVERTISE报文, 则确定测试过程失败, 结束。 If the DHCP client does not receive the ADVERTISE packet returned by the DHCP server within the specified time, it determines that the test process fails and ends.
较佳地, 步驟 B所述计算 DHCP服务性能的检测结果的过程包括: Preferably, the process of calculating the detection result of the performance of the DHCP service in step B includes:
DHCP客户端与 DHCP服务器端之间进行若干次测试用的配置请求报文及 应答报文的交互, 记录每次的中间信息, 并根据所记录的中间信息计算 出检测结果。 The DHCP client and the DHCP server exchange the configuration request message and the response message for several tests, record each intermediate information, and calculate the detection result based on the recorded intermediate information.
较佳地, 所述的检测结果包括但不限于: Preferably, the detection result includes but is not limited to:
DHCP服务响应时延 DHCP Service Response Delay、 DHCP服务时延 DHCP service response delay DHCP Service Response Delay, DHCP service delay
DHCP Service Delay、 DHCP服务成功率 DHCP Service Success Ratio, 和 / 或 DHCP服务可用性 DHCP Service Availability。 DHCP Service Delay, DHCP Service Success Rate DHCP Service Success Ratio, and / or DHCP Service Availability DHCP Service Availability.
较佳地,该方法还包括: DHCP客户端向 DHCP服务器发送释放报文, 请求 DHCP服务器端释放为该客户端分配的用于测试的资源信息。 Preferably, the method further includes: the DHCP client sending a release message to the DHCP server, requesting the DHCP server to release the resource information for testing allocated by the client.
较佳地, 所述的测试结果信息保存于 DHCP客户端内, 且提供本地及 远程调用接口, 本地用户或远端用户通过所述接口调用保存的测试结果 信息。 Preferably, the test result information is stored in the DHCP client, and the local and remote calling interfaces are provided, and the local user or the remote user invokes the saved test result information through the interface.
较佳地, 所述的检测参数信息包括: 测试的超始 /终止时间、 测试的 频度、 测试的周期和 /或测试使用的源端口信息。 Preferably, the detection parameter information includes: a start/end time of the test, a frequency of the test, a period of the test, and/or source port information used for the test.
较佳地, 所述 DHCP客户端包括但不限于路由器、 2层 /3层交换机。 较佳地, 所述 DHCP服务器端为网络中提供 DHCPv6服务的设备, 该 设备包括但不限于 DHCPv6服务器, 或提供 DHCPv6服务的路由器, 或 2 层 /3层交换机。 Preferably, the DHCP client includes but is not limited to a router, a Layer 2 / Layer 3 switch. Preferably, the DHCP server is a device that provides a DHCPv6 service in the network, and the device includes but is not limited to a DHCPv6 server, or a router that provides a DHCPv6 service, or a Layer 2/Layer-3 switch.
一种用于实现 DHCP服务性能检测 DHCP客户端, 包括: A DHCP client for implementing DHCP service performance detection, including:
参数设置模块: 用于设置并保存进行 DHCP服务测试所需要的各检测 参数信息;
测试控制模块: 用于根据所述的检测参数信息控制 DHCP客户端与 DHCP服务器端之间进行报文的交互, 进行相应的 DHCP配置处理; Parameter setting module: used to set and save the information of each detection parameter required for performing the DHCP service test; The test control module is configured to control the interaction between the DHCP client and the DHCP server according to the detection parameter information, and perform corresponding DHCP configuration processing;
测试信息记录模块: 用于在 DHCP客户端与 DHCP服务器端进行报文 交互的过程中, 记录 DHCP服务过程信息; The test information recording module is configured to record the DHCP service process information during the process of the packet exchange between the DHCP client and the DHCP server;
测试数据生成模块: 用于根据测试信息记录模块记录的过程信息计 算 DHCPv6服务的测试结果。 Test data generation module: Used to calculate the test result of the DHCPv6 service according to the process information recorded by the test information record module.
较佳地, 所述检测结果包括但不限于: DHCP服务响应时延 DHCP Service Response Delay ^ DHCP服务时延 DHCP Service Delay ^ DHCP服务 成功率 DHCP Service Success Ratio, 和 /或 DHCP服务可用性 DHCP Service Availability o Preferably, the detection result includes but is not limited to: DHCP service response delay DHCP Service Response Delay ^ DHCP service delay DHCP Service Delay ^ DHCP service success rate DHCP Service Success Ratio, and/or DHCP service availability DHCP Service Availability o
较佳地, 所述的检测参数信息包括: 测试的超始 /终止时间、 测试的 频度、 测试的周期和 /或测试使用的源端口信息。 Preferably, the detection parameter information includes: a start/end time of the test, a frequency of the test, a period of the test, and/or source port information used for the test.
较佳地, 所述 DHCP客户端包括但不限于路由器、 2层 /3层交换机。 较佳地, 所述 DHCP服务器端为网络中提供 DHCPv6服务的设备, 该 设备包括但不限于 DHCPv6服务器, 或提供 DHCPv6服务的路由器, 或 2 层 /3层交换机。 Preferably, the DHCP client includes but is not limited to a router, a Layer 2 / Layer 3 switch. Preferably, the DHCP server is a device that provides a DHCPv6 service in the network, and the device includes but is not limited to a DHCPv6 server, or a router that provides a DHCPv6 service, or a Layer 2/Layer-3 switch.
由上述本发明提供的技术方案可以看出, 本发明的实现可以有效解 决 IPv6网络中 DHCPv6协议的探测和监控, 能够及时了解 DHCPv6服务器 在网络中的运行情况, 获知 DHCP服务器本身的功能是否正常, 从而真正 地准确评估 DHCP服务的性能和质量。 当 DHCP服务器一旦发生异常时可 以及时发现, 并由用户干预解决。 因此, 本发明对维护网络中 DHCPv6协 议的正常运行, 为运营商向客户提供稳定的 DHCPv6服务具有非常重要的 意义。 It can be seen from the technical solution provided by the present invention that the implementation of the present invention can effectively solve the detection and monitoring of the DHCPv6 protocol in the IPv6 network, and can timely understand the operation of the DHCPv6 server in the network, and know whether the function of the DHCP server itself is normal. Thereby truly assessing the performance and quality of the DHCP service. When the DHCP server encounters an exception, it can be found at the same time and resolved by user intervention. Therefore, the present invention is very important for maintaining the normal operation of the DHCPv6 protocol in the network and providing the operator with a stable DHCPv6 service to the client.
附图说明 DRAWINGS
图 1为 DHCP服务性能检测应用的网络结构示意图; FIG. 1 is a schematic diagram of a network structure of a DHCP service performance detection application;
图 2a为点对点的 DHCP服务性能检测示意图; Figure 2a is a schematic diagram of peer-to-peer DHCP service performance detection;
图 2b为一点对多点的 DHCP服务性能检测示意图;
图 2c为多点到多点的 DHCP服务性能检测示意图; Figure 2b is a schematic diagram of point-to-multipoint DHCP service performance detection; Figure 2c is a schematic diagram of multi-point to multi-point DHCP service performance detection;
图 2d为多点到一点的 DHCP服务性能检测示意图; Figure 2d is a schematic diagram of the multi-point to one-point DHCP service performance detection;
图 3为本发明所述的方法的处理过程示意图; 3 is a schematic diagram of a processing procedure of the method of the present invention;
图 4为本发明所述方法中 DHCP客户端的处理流程图; 4 is a flowchart of processing of a DHCP client in the method of the present invention;
图 5为本发明中 DHCP客户端的结构示意图; FIG. 5 is a schematic structural diagram of a DHCP client according to the present invention;
图 6为本发明所述方法中 DHCP服务器端的处理流程图。 FIG. 6 is a flowchart of processing of a DHCP server in the method of the present invention.
具体实施方式 本发明的核心思想是在网络节点之间采用客户端 /服务器模型, 实现 对 DHCPv6服务的探测功能, 同时完成对 DHCPv6服务的业务所产生的各 种信息的统计和查询。 The core idea of the present invention is to adopt a client/server model between network nodes to implement the detection function of the DHCPv6 service, and complete statistics and query of various information generated by the service of the DHCPv6 service.
采用本发明对 DHCPv6服务器进行检测时, 客户端向服务器端发送 DHCPv6 Server请求报文。 服务器端接收到 DHCPv6 Server请求报文后, 向客户端发送应答报文。 客户端接收到应答报文后, 向服务器发送配置 请求报文。服务器收到配置请求报文后,向客户机发送应答报文,提供 IPv6 地址和相应的配置。 一次 DHCPv6配置过程完成后, 计算网絡的时延, 并 保存测试结果, 然后向服务器发送 Release报文释放 IPv6地址。 When the DHCPv6 server is detected by the present invention, the client sends a DHCPv6 Server request packet to the server. After receiving the DHCPv6 Server request packet, the server sends a response packet to the client. After receiving the response packet, the client sends a configuration request packet to the server. After receiving the configuration request packet, the server sends a response packet to the client to provide an IPv6 address and corresponding configuration. After the DHCPv6 configuration process is complete, the network delay is calculated and the test result is saved. Then, the release packet is sent to the server to release the IPv6 address.
如图 2所示, 本发明所述的检测可以是一次, 也可以是多次或定期检 测。 所述的检测可以是点到点、 点到多点、 多点到多点、 多点到点的方 式。 本发明在 IPv6网络 DHCPv6服务检测方法中, 主要涉及两种网络设 备, 即客户端和服务器端, 其中: As shown in Fig. 2, the detection described in the present invention may be one time, or may be multiple or periodic detection. The detection may be point-to-point, point-to-multipoint, multi-point to multi-point, multi-point to point. In the IPv6 network DHCPv6 service detection method, the present invention mainly relates to two network devices, namely a client and a server, wherein:
所述的客户端设备, 即 DHCPv6客户端主要负责测试的发起与测试结 果的分析和保存, 具体可以包括但不限于路由器、 2层 /3层交换机等设备; 所述的服务器端设备, 即 DHCP服务器端主要负责响应客户端的测试 请求, 向客户端发送应答报文, 具体可以是网络中提供 DHCPv6服务的设 备, 可以是标准的 DHCPv6服务器,也可以是提供 DHCPv6服务的路由器、 2层 /3层交换机。 The client device, that is, the DHCPv6 client, is mainly responsible for analyzing and saving the test initiation and test results, and may specifically include, but is not limited to, a router, a layer 2/layer 3 switch, and the like; the server device, that is, DHCP. The server is responsible for responding to the client's test request and sending a response packet to the client. The device can provide a DHCPv6 service on the network. It can be a standard DHCPv6 server or a router that provides DHCPv6 services. Layer 2/3 switch.
本发明提供了在 IPv6网络实现 DHCPv6业务测试的具体过程如图 3所
示, 具体过程包括: The present invention provides a specific process for implementing DHCPv6 service testing on an IPv6 network, as shown in FIG. Show, the specific process includes:
步骤 31 : 在服务器端启动 DHCPv6服务。 Step 31: Start the DHCPv6 service on the server side.
步骤 32: 在客户端配置 DHCPv6业务测试任务, 设置测试的起始 /结 束时间、 测试的周期、 频度, 测试使用的源接口。 Step 32: Configure the DHCPv6 service test task on the client, set the start/end time of the test, the test period, and the frequency, and test the source interface used.
步 33: 客户端根据配置, 在规定的时间、 按照设定的周期和频度, 向 DHCPv6服务器发出发送请求(SOLICIT )报文, 寻找 DHCPv6服务器。 Step 33: The client sends a SOLICIT message to the DHCPv6 server according to the configuration, according to the set period and frequency, to find the DHCPv6 server.
步骤 34: DHCPv6服务器接收到客户端的 SOLICIT请求报文后, 向客 户端发送通告 (ADVERTISE )响应报文。 Step 34: After receiving the SOLICIT request message from the client, the DHCPv6 server sends an advertisement (ADVERTISE) response message to the client.
步骤 35: 向待测试的 DHCPv6服务器发送配置请求报文; Step 35: Send a configuration request packet to the DHCPv6 server to be tested.
在一个网络中可能存在多个 DHCPv6服务器, 每个 DHCPv6服务器接 收到客户端的 SOLICIT报文后均会发送 ADVERTISE报文, 这样, 客户端 可能会接收到多个不同服务器发送的 ADVERTISE报文; 根据 DHCPv6 ( RFC3315 )协议标准规定, 客户端要按照策略选择一个 DHCPv6服务器 为其提供配置, 即向某个选中的服务器发送 REQUEST配置请求报文; 而 在本发明中, 为了方便对网络中的指定的 DHCPv6服务器进行性能测试, 此时, 可以选择按照标准协议流程进行测试, 也可以对所有 DHCPv6服务 器进行应答, 即对网络中的全部 DHCPv6服务器进行测试。 There may be multiple DHCPv6 servers in a network. Each DHCPv6 server sends an ADVERTISE packet after receiving a SOLICIT packet from the client. In this way, the client may receive ADVERTISE packets sent by multiple different servers. According to DHCPv6 (RFC3315) The protocol standard stipulates that the client should select a DHCPv6 server to provide configuration according to the policy, that is, send a REQUEST configuration request message to a selected server; in the present invention, in order to facilitate the designated DHCPv6 in the network. The server performs performance testing. At this time, you can choose to test according to the standard protocol flow, or you can respond to all DHCPv6 servers, that is, test all DHCPv6 servers in the network.
步骤 36: DHCP服务器端接收到客户端的 REQUEST请求后, 向客户 端发送 REPLY应答报文, 提供 IPv6地址和相关的网络配置。 Step 36: After receiving the REQUEST request from the client, the DHCP server sends a REPLY response packet to the client to provide an IPv6 address and related network configuration.
步骤 37: 在 DHCPv6的配置过程中收集用于检测 DHCP服务性能的参 数, DHCPv6配置过程完成后, 记录本次测试的中间信息, 如时间戳、 报 文的时延、 完成一次服务的时间、 服务完成的成功与否等等。 Step 37: Collect parameters for detecting the performance of the DHCP service during the configuration of the DHCPv6. After the DHCPv6 configuration process is complete, record the intermediate information of the test, such as the timestamp, the delay of the packet, the time when the service is completed, and the service. The success of the completion or not.
在 DHCP客户端与 DHCP服务器端之间进行若干次测试用的配置请求 报文及应答艮文的交互, 以记录多次中间信息。 The interaction between the configuration request message and the response message for several tests is performed between the DHCP client and the DHCP server to record multiple intermediate information.
步骤 38: DHCP客户端向服务器发送释放(RELEASE )报文, 释放 刚刚申请到的用于测试的资源, 如 IPv6地址。 Step 38: The DHCP client sends a release (RELEASE) message to the server, releasing the resource just for application for testing, such as an IPv6 address.
步骤 39: 客户端根据记录的中间信息计算测试结果, 并进行初步分 析保存, 由用户通过命令行或网管设备查看结果。 Step 39: The client calculates the test result based on the recorded intermediate information, and performs preliminary analysis and saves. The user can view the result through the command line or the network management device.
经过上述处理过程,本发明实现了针对网络中的提供 DHCP服务的实
体或 DHCP服务器进行针对 DHCP服务性能的测试, 从而可以在 DHCP服 务性能下降时,及时采取相应的手段,以避免因 DHCP服务无法正常提供, 导致网络运营商提供的业务无法正常开展。 为对本发明有更进一步的理解, 下面将结合附图对客户端和服务器 端各自的具体处理操作分别进行说明。 首先, 对 IPv6网络 DHCPv6业务测试过程中客户端的测试处理流程进 行详细的说明。 所述的 DHCPv6业务测试客户端用于完成 DHCPv6协议中 客户端的功能, 主要负责测试的发起与测试结果的分析和保存, 如图 4所 示, 具体包括以下处理步骤: Through the above processing, the present invention implements the provision of a DHCP service in the network. The device or the DHCP server performs the test for the performance of the DHCP service. In this way, when the performance of the DHCP service is degraded, the corresponding measures can be taken in time to avoid the failure of the DHCP service to be provided. In order to further understand the present invention, the specific processing operations of the client and the server end will be separately described below with reference to the accompanying drawings. First, the test processing flow of the client in the DHCPv6 service test process of the IPv6 network is described in detail. The DHCPv6 service test client is used to complete the function of the client in the DHCPv6 protocol. It is mainly responsible for the test initiation and analysis and storage of test results. As shown in Figure 4, the following steps are specifically included:
步骤 41: 保存用户的配置, 如测试的起始 /终止时间、 测试的频度、 测试的周期、 测试使用的源端口等。 Step 41: Save the user's configuration, such as the start/end time of the test, the frequency of the test, the test period, the source port used for the test, and so on.
步骤 42: 根据用户配置的测试起始 /终止时间、 测试的频度、 周期设 定定时检测。 Step 42: Set the timing detection according to the test start/end time, the frequency of the test, and the period configured by the user.
步骤 43: 测试时间到时, 首先按照 RFC3315构造 SOLICIT报文, 然后 按照标准规定延时一段时间后从指定的源端口发送出去。 Step 43: When the test time is up, first construct a SOLICIT message according to RFC3315, and then send it out from the specified source port after a delay according to the standard.
步骤 44: DHCPv6客户端判断在规定的时间内是否收到 DHCPv6服务 发来的 ADVERTISE报文, 如果收到, 则执行步骤 46, 否则, 执行步骤 45; 步骤 45:如果在规定的时间内没有接收到任何 DHCPv6服务器发送的 ADVERTISE报文, 则记录测试失败结果, 等待下一次测试开始。 Step 44: The DHCPv6 client determines whether the ADVERTISE packet sent by the DHCPv6 service is received within the specified time. If yes, go to Step 46. Otherwise, go to Step 45. Step 45: If it is not received within the specified time. To the ADVERTISE message sent by any DHCPv6 server, the test failure result is recorded, waiting for the next test to start.
步骤 46: 向待测试的 DHCPv6服务器发送配置请求报文; Step 46: Send a configuration request packet to the DHCPv6 server to be tested.
由于在一个网络中可能存在多个 DHCPv6服务器,每个服务器接收到 客户端的 SOLICIT报文后 ,如果本地策略允许均会发送 ADVERTISE报文, 这种情况下客户端可能会接收到多个不同服务器发送的 ADVERTISE报 文; Since there may be multiple DHCPv6 servers in a network, after each server receives the client's SOLICIT message, if the local policy allows the ADVERTISE message to be sent, in this case, the client may receive multiple different servers to send. ADVERTISE message;
按照 DHCPv6(RFC3315)协议标准, 客户端需要按照策略选择一个 According to the DHCPv6 (RFC3315) protocol standard, the client needs to select a policy according to the policy.
DHCPv6服务器为其提供配置, 即向某个选中的服务器发送 REQUEST配 置请求报文, 忽略其他服务器的 ADVERTISE报文; The DHCPv6 server provides configuration for sending a REQUEST configuration request message to a selected server, ignoring the ADVERTISE message of other servers;
为了方便对网络中的 DHCPv6服务器进行测试,可以选择按照标准协
议流程进行测试, 也可以对所有 DHCPv6服务器进行应答, 即对网络中的 全部 DHCPv6服务器进行测试。 In order to facilitate testing of the DHCPv6 server in the network, you can choose to follow the standard protocol. The process is tested and all DHCPv6 servers can be answered, that is, all DHCPv6 servers in the network are tested.
步骤 47:判断在规定的时间内是否收到 DHCPv6服务器返回的 REPLY 报文, 如果收到, 则执行步骤 49, 否则, 执行步骤 48; Step 47: Determine whether the REPLY message returned by the DHCPv6 server is received within the specified time. If yes, go to step 49. Otherwise, go to step 48.
步骤 48:如果在规定的时间内没有接收到任何 DHCPv6服务器发送的 Step 48: If no DHCPv6 server is received within the specified time
REPLY报文, 则记录测试失败结果, 并等待下一次测试开始。 The REPLY message records the test failure result and waits for the next test to begin.
步骤 49: 接收到 DHCPv6服务器的 REPLY报文后, 对 REPLY报文进 行检查, 如按照 RFC3315检查报文是否是有效的 Reply报文, 是否是测试 期望的报文等, 并记录本次测试的中间信息, 如时间戳、 报文的时延、 完成一次服务的时间、 服务完成的成功与否等等。 Step 49: After receiving the REPLY message of the DHCPv6 server, check the REPLY message, if it is in accordance with RFC3315, check whether the message is a valid Reply message, whether it is a test expected message, etc., and record the middle of the test. Information, such as timestamp, delay of message, time to complete a service, success of service completion, etc.
DHCP客户端与 DHCP服务器端之间进行若干次测试用的配置请求报 文及应答才艮文的交互, 以记录多次中间信息。 The configuration request message and response response between the DHCP client and the DHCP server are used to record multiple intermediate information.
步骤 410: 根据所记录的中间信息计算测试结果, 并进行分析保存, 以便用户能够通过命令行或网管查看。 Step 410: Calculate the test result according to the recorded intermediate information, and perform analysis and save, so that the user can view through the command line or the network management.
步骤 411 : 构造 RELEASE报文, 并向 DHCPv6服务器发送, 释放刚刚 申请到的用于测试的资源, 如 IPv6地址。 Step 411: Construct a RELEASE message and send it to the DHCPv6 server to release the resource just for testing, such as an IPv6 address.
之后, 便可以启动下一次测试的定时检测, 重新执行上述处理步骤。 本发明在具体实现过程中需要对现有的 DHCP客户端进行相应的改 进以适应测试的需要, 具体的改进如图 5所示, 具体包括: After that, you can start the timing test of the next test and re-execute the above processing steps. In the specific implementation process, the existing DHCP client needs to be correspondingly improved to meet the needs of the test. The specific improvement is as shown in FIG. 5, which specifically includes:
参数设置模块: 用于设置并保存进行 DHCP服务测试所需要的各检测 参数信息; Parameter setting module: used to set and save the information of each detection parameter required for performing the DHCP service test;
测试控制模块: 用于根据所述的检测参数信息控制发起测试操作过 程, 即控制 DHCP客户端与 DHCP服务器端之间进行报文的交互, 以进行 相应的 DHCP配置处理; The test control module is configured to control the initiation of the test operation process according to the detection parameter information, that is, control the interaction between the DHCP client and the DHCP server to perform corresponding DHCP configuration processing;
测试信息记录模块: 用于在 DHCP客户端与 DHCP服务器端进行报文 交互的过程中, 记录 DHCP服务的过程信息, 具体包括记录通过 DHCP成 功获取 IPv6地址的次数, 获取地址所需要的时间, 即时延, 等等; The test information recording module is configured to record the process information of the DHCP service during the process of the packet exchange between the DHCP client and the DHCP server, including recording the number of times the IPv6 address is successfully obtained through DHCP, and the time required to obtain the address. Delay, etc.
测试数据生成模块: 用于根据测试信息记录模块记录的信息计算 DHCPv6服务的测试结果信息, 具体包括: DHCP服务响应时延(DHCP
Service Response Delay ) 、 DHCP服务时延 ( DHCP Service Delay )、 DHCP 服务成功率 (DHCP Service Success Ratio ) 、 DHCP服务可用性(DHCP Service Availability ) 。 The test data generation module is configured to calculate test result information of the DHCPv6 service according to the information recorded by the test information record module, and specifically includes: DHCP service response delay (DHCP) Service Response Delay), DHCP Service Delay, DHCP Service Success Ratio, DHCP Service Availability.
对于 DHCP客户端获得的检测结果保存于测试的 DHCP客户端设备 中, 用户可以在终端上查看, 如果是路由器等网络设备, 还可以通过在 网管设备上远程查看。 其次, 对 IPv6网络 DHCPv6业务测试过程中服务器端的测试处理流程 进行说明。 所述的 DHCPv6业务测试服务器端用于完成 DHCPv6协议中服 务器端的功能, 主要负责响应客户端的测试请求, 向客户端发送应答报 文, 如图 6所示, 具体包括以下处理步驟: The detection result obtained by the DHCP client is saved in the tested DHCP client device. The user can view it on the terminal. If it is a network device such as a router, it can also be viewed remotely on the network management device. Secondly, the test processing flow of the server side in the DHCPv6 service test process of the IPv6 network is described. The DHCPv6 service test server is configured to perform the function of the server in the DHCPv6 protocol, and is mainly responsible for responding to the test request of the client, and sending a response message to the client, as shown in FIG. 6, which specifically includes the following processing steps:
步骤 61 : 根据配置启动 DHCPv6协议的服务。 Step 61: Start the DHCPv6 protocol service according to the configuration.
步骤 62: 监听客户端发送的 DHCPv6报文。 Step 62: Listen for DHCPv6 messages sent by the client.
步骤 63: 服务器接收到客户端发送的 SOLICIT报文后,根据本地的策 略确认是否应答。如果确认需要应答,则首先创建 ADVERTISE应答报文, 然后向客户端发送 ADVERTISE报文。 Step 63: After receiving the SOLICIT packet sent by the client, the server confirms whether to respond according to the local policy. If it is confirmed that a response is required, an ADVERTISE response message is first created, and then an ADVERTISE message is sent to the client.
步骤 64: 监听客户端发送的 DHCPv6报文。 Step 64: Listen for DHCPv6 messages sent by the client.
步骤 65: 服务器接收到客户端发送的 REQUEST报文后, 根据服务器 配置的策略构造 REPLY报文, 其中包含提供给客户端的 IPv6地址以及相 关的配置信息。 Step 65: After receiving the REQUEST packet sent by the client, the server constructs a REPLY packet according to the policy configured by the server, and includes an IPv6 address and related configuration information provided to the client.
步骤 66: 监听客户端发送的 DHCPv6报文。 Step 66: Listen for DHCPv6 packets sent by the client.
步骤 67: 服务器接收到客户端发送的 RELEASE报文后, 释放客户端 的测试所占用的资源, 如将分配给该客户端的 IPv6地址回收。 Step 67: After receiving the RELEASE packet sent by the client, the server releases the resources occupied by the client's test, such as reclaiming the IPv6 address assigned to the client.
步骤 68: 继续监听客户端发送的 DHCPv6报文, 准备下一次的 DHCP 配置操作过程。 Step 68: Continue to listen to DHCPv6 packets sent by the client to prepare for the next DHCP configuration.
本发明在具体实现过程中,对网络中已经存在的提供 DHCP服务的实 体或 DHCP服务器无需进行任何改进, 即可以直接采用现有的 DHCP服务 实体或 DHCP服务器作为本发明的 DHCP服务端。 In the specific implementation process, the entity or the DHCP server that provides the DHCP service in the network does not need to be improved, that is, the existing DHCP service entity or the DHCP server can be directly used as the DHCP server of the present invention.
本发明中,针对 IPv6网络的 DHCPv6服务的测试性能指标,即 DHCPv6 业务测试针对每个 DHCPv6服务器和网络的 DHCPv6服务测试指标包括:
DHCP服务响应时延( DHCP Service Response Delay ) 、 DHCP服务 时延( DHCP Service Delay ) 、 DHCP服务成功率( DHCP Service Success Ratio ) 、 DHCP月良务可用性( DHCP Service Availability ) 。 综上所述, 本发明有效的解决了 IPv6网络中 DHCPv6协议的探测和监 控, 并能够在 DHCP服务器一旦发生异常时可以及时发现, 从而保证运营 商可以向客户提供稳定的 DHCPv6服务。 In the present invention, the test performance indicator of the DHCPv6 service for the IPv6 network, that is, the DHCPv6 service test for each DHCPv6 server and the network, includes: DHCP Service Response Delay, DHCP Service Delay, DHCP Service Success Ratio, DHCP Service Availability. In summary, the present invention effectively solves the problem of detecting and monitoring the DHCPv6 protocol in an IPv6 network, and can discover the DHCP server in time when an abnormality occurs, thereby ensuring that the operator can provide a stable DHCPv6 service to the client.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范 围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保护范围为准。
The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1、 一种实现 DHCP服务性能检测的方法, 其特征在于, 在客户端配 置检测参数信息, 该方法还包括: A method for implementing performance detection of a DHCP service, wherein the method for detecting parameter information is configured on a client, the method further includes:
A、 DHCP客户端确定待测试的 DHCP服务器端, 根据所述检测参数 信息构造配置请求报文, 向待测试的 DHCP服务器端发送该配置请求报 文; A. The DHCP client determines the DHCP server to be tested, and constructs a configuration request message according to the detection parameter information, and sends the configuration request message to the DHCP server to be tested.
B、 所述 DHCP客户端根据接收到的待测试 DHCP服务器端返回的应 答报文, 计算 DHCP服务性能的检测结果。 B. The DHCP client calculates the detection result of the DHCP service performance according to the received response message returned by the DHCP server to be tested.
2、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征在 于, 步骤 A所述确定待测试的 DHCP服务器端的过程包括: The method for implementing the performance detection of the DHCP service according to claim 1, wherein the process of determining the DHCP server to be tested in the step A includes:
DHCP客户端向 DHCP服务器端发送请求 SOLICIT报文; The DHCP client sends a request SOLICIT message to the DHCP server.
DHCP客户端根据各个 DHCP服务器端返回的通告 ADVERTISE报文 选择确定至少一个待测试的 DHCP服务器端。 The DHCP client selects at least one DHCP server to be tested according to the advertisement ADVERTISE message returned by each DHCP server.
3、 根据权利要求 2所述的实现 DHCP服务性能检测的方法, 其特征在 于, 进一步包括: 如果 DHCP客户端在规定的时间内没有收到 DHCP服务器端返回的 ADVERTISE报文, 则确定测试过程失败, 结束。 The method for implementing the performance detection of the DHCP service according to claim 2, further comprising: if the DHCP client does not receive the ADVERTISE message returned by the DHCP server within the specified time, determining that the test process fails , End.
4、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征在 于, 步骤 B所述计算 DHCP服务性能的检测结果的过程包括: DHCP客户 端与 DHCP服务器端之间进行若干次测试用的配置请求报文及应答报文 的交互, 记录每次的中间信息, 并根据所记录的中间信息计算出检测结 果。 The method for implementing the performance detection of the DHCP service according to claim 1, wherein the process of calculating the detection result of the DHCP service performance in the step B includes: performing a test between the DHCP client and the DHCP server for several times. The configuration request message and the response message exchange, record each intermediate information, and calculate the detection result according to the recorded intermediate information.
5、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征在 于, 所述的检测结果包括但不限于: DHCP服务响应时延 DHCP Service Response Delay、 DHCP服务时延
DHCP Service Delay ^ DHCP服务成功率 DHCP Service Success Ratio, 和 / 或 DHCP服务可用性 DHCP Service Availability。 The method for implementing the performance detection of the DHCP service according to claim 1, wherein the detection result includes, but is not limited to, a DHCP service response delay, a DHCP service response delay, and a DHCP service delay. DHCP Service Delay ^ DHCP Service Success Rate DHCP Service Success Ratio, and / or DHCP Service Availability DHCP Service Availability.
6、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征在 于, 该方法还包括: DHCP客户端向 DHCP服务器发送释放报文, 请求 DHCP服务器端释 放为该客户端分配的用于测试的资源信息。 The method for implementing the performance detection of the DHCP service according to claim 1, wherein the method further comprises: the DHCP client sending a release message to the DHCP server, requesting the DHCP server to release the allocation for the client. Resource information for testing.
7、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征在 于, 所述的测试结果信息保存于 DHCP客户端内, 且提供本地及远程调用 接口, 本地用户或远端用户通过所述接口调用保存的测试结果信息。 The method for implementing the performance detection of the DHCP service according to claim 1, wherein the test result information is stored in the DHCP client, and the local and remote calling interfaces are provided, and the local user or the remote user passes the The interface calls the saved test result information.
8、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征在 于, 所述的检测参数信息包括: 测试的超始 /终止时间、 测试的频度、 测 试的周期和 /或测试使用的源端口信息。 8. The method for implementing DHCP service performance detection according to claim 1, wherein the detection parameter information comprises: a test start/end time, a test frequency, a test period, and/or a test use. Source port information.
9、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征在 于, 所述 DHCP客户端包括但不限于路由器、 2层 /3层交换机。 The method for implementing DHCP service performance detection according to claim 1, wherein the DHCP client includes but is not limited to a router, a Layer 2/Layer 3 switch.
10、 根据权利要求 1所述的实现 DHCP服务性能检测的方法, 其特征 在于, 所述 DHCP服务器端为网络中提供 DHCPv6服务的设备, 该设备包 括但不限于 DHCPv6服务器, 或提供 DHCPv6服务的路由器, 或 2层 /3层交 换机。 The method for implementing DHCP service performance detection according to claim 1, wherein the DHCP server is a device that provides a DHCPv6 service in the network, and the device includes but is not limited to a DHCPv6 server, or a router that provides a DHCPv6 service. , or a 2/3 switch.
11、 一种用于实现 DHCP服务性能检测 DHCP客户端, 其特征在于, 包括: 参数设置模块: 用于设置并保存进行 DHCP服务测试所需要的各检测 参数信息; 测试控制模块: 用于根据所述的检测参数信息控制 DHCP客户端与 DHCP服务器端之间进行报文的交互, 进行相应的 DHCP配置处理;
测试信息记录模块: 用于在 DHCP客户端与 DHCP服务器端进行报文 交互的过程中, 记录 DHCP服务过程信息; A DHCP client for implementing a DHCP service performance detection, comprising: a parameter setting module: configured to set and save each detection parameter information required for performing a DHCP service test; and a test control module: The detection parameter information is used to control the interaction between the DHCP client and the DHCP server, and perform corresponding DHCP configuration processing. The test information recording module is configured to: during the process of performing packet exchange between the DHCP client and the DHCP server, record the DHCP service process information;
测试数据生成模块: 用于根据测试信息记录模块记录的过程信息计 算 DHCPv6服务的测试结果。 Test data generation module: Used to calculate the test result of the DHCPv6 service according to the process information recorded by the test information record module.
12、根据权利要求 11所述用于实现 DHCP服务性能检测 DHCP客户 端,其特征在于,所述检测结果包括但不限于: DHCP服务响应时延 DHCP Service Response Delay > DHCP服务时延 DHCP Service Delay、 DHCP月良 务成功率 DHCP Service Success Ratio, 和 /或 DHCP服务可用性 DHCP Service Availability。 The DHCP client for implementing the DHCP service performance detection according to claim 11, wherein the detection result includes, but is not limited to, a DHCP service response delay, a DHCP Service Response Delay, a DHCP service delay, and a DHCP Service Delay. DHCP monthly service success rate DHCP Service Success Ratio, and / or DHCP service availability DHCP Service Availability.
13、根据权利要求 11所述用于实现 DHCP服务性能检测 DHCP客户端 , 其特征在于,'所述的检测参数信息包括: 测试的超始 /终止时间、 测试的 频度、 测试的周期和 /或测试使用的源端口信息。 The DHCP client for implementing the DHCP service performance detection according to claim 11, wherein the detection parameter information includes: a test start/end time, a test frequency, a test period, and/or Or test the source port information used.
14、根据权利要求 11所述用于实现 DHCP服务性能检测 DHCP客户端, 其特征在于, 所述 DHCP客户端包括但不限于路由器、 2层 /3层交换机。 The DHCP client for implementing the DHCP service performance detection according to claim 11, wherein the DHCP client includes but is not limited to a router and a Layer 2/Layer 3 switch.
15、根据权利要求 11所述用于实现 DHCP服务性能检测 DHCP客户端, 其特征在于, 所述 DHCP服务器端为网络中提供 DHCPv6服务的设备, 该 设备包括但不限于 DHCPv6服务器, 或提供 DHCPv6服务的路由器, 或 2 层 /3层交换机。
The DHCP client for implementing the DHCP service performance detection according to claim 11, wherein the DHCP server is a device that provides a DHCPv6 service in the network, and the device includes but is not limited to a DHCPv6 server, or provides a DHCPv6 service. Router, or Layer 2 / Layer 3 switch.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200510089084.1 | 2005-08-05 | ||
CNA2005100890841A CN1909482A (en) | 2005-08-05 | 2005-08-05 | Method for realizing detection of DHCP service performance |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2007016830A1 true WO2007016830A1 (en) | 2007-02-15 |
Family
ID=37700477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2006/001055 WO2007016830A1 (en) | 2005-08-05 | 2006-05-22 | A method and client side for implementing the detection of dhcp service performance |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN1909482A (en) |
WO (1) | WO2007016830A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100536438C (en) * | 2007-04-24 | 2009-09-02 | 华为技术有限公司 | Method for testing DHCPv6 service and client |
CN101931564B (en) * | 2009-06-25 | 2012-07-25 | 成都市华为赛门铁克科技有限公司 | Method and system for testing protocol anomaly, test device and control device |
CN102647290B (en) * | 2011-02-17 | 2016-10-19 | 南京中兴软件有限责任公司 | The method and apparatus that a kind of dynamic address configuration lower network connects keep-alive |
CN102510523A (en) * | 2011-10-13 | 2012-06-20 | 青岛海信宽带多媒体技术有限公司 | Socket communication interactive testing method and network television testing system using same |
CN104025490B (en) * | 2012-12-25 | 2017-06-20 | 华为技术有限公司 | The method of resource request, server and resource allocation system |
CN105204983B (en) * | 2014-06-16 | 2018-07-06 | 北京基调网络***有限公司 | Java Web application performances diagnostic methods and device |
CN105281982B (en) * | 2015-11-05 | 2019-06-25 | 上海斐讯数据通信技术有限公司 | A kind of device and method for testing DHCP characteristic |
CN107968845B (en) * | 2016-10-19 | 2021-10-08 | 中兴通讯股份有限公司 | DHCP server state detection method and device and DHCP relay |
CN106789391A (en) * | 2016-11-14 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | A kind of automated testing method and device of router DHCP functions |
CN113037591A (en) * | 2021-03-04 | 2021-06-25 | 深圳市吉祥腾达科技有限公司 | Test method and system for verifying IPV6 protocol consistency |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1073244A1 (en) * | 1999-07-29 | 2001-01-31 | International Business Machines Corporation | Method and system for monitoring dynamic host configuration protocol (DHCP) service in an internet protocol network |
KR20030058267A (en) * | 2001-12-31 | 2003-07-07 | 주식회사 케이티 | An IP Automatic Assignment's Method in the way of Central IP Management thorugh Intermediate DHCP Server |
CN1450766A (en) * | 2002-04-10 | 2003-10-22 | 深圳市中兴通讯股份有限公司 | User management method based on dynamic mainframe configuration procotol |
-
2005
- 2005-08-05 CN CNA2005100890841A patent/CN1909482A/en active Pending
-
2006
- 2006-05-22 WO PCT/CN2006/001055 patent/WO2007016830A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1073244A1 (en) * | 1999-07-29 | 2001-01-31 | International Business Machines Corporation | Method and system for monitoring dynamic host configuration protocol (DHCP) service in an internet protocol network |
KR20030058267A (en) * | 2001-12-31 | 2003-07-07 | 주식회사 케이티 | An IP Automatic Assignment's Method in the way of Central IP Management thorugh Intermediate DHCP Server |
CN1450766A (en) * | 2002-04-10 | 2003-10-22 | 深圳市中兴通讯股份有限公司 | User management method based on dynamic mainframe configuration procotol |
Also Published As
Publication number | Publication date |
---|---|
CN1909482A (en) | 2007-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2007016830A1 (en) | A method and client side for implementing the detection of dhcp service performance | |
US8396945B2 (en) | Network management system with adaptive sampled proactive diagnostic capabilities | |
CN101035037B (en) | Method, system and related device for detecting the network communication quality | |
US7995483B1 (en) | Simultaneously testing connectivity to multiple remote maintenance endpoints of the same maintenance association | |
US8400929B2 (en) | Ethernet performance monitoring | |
WO2021128977A1 (en) | Fault diagnosis method and apparatus | |
CN101651691B (en) | Network system, access equipment and application layer service assess method | |
US7865591B2 (en) | Facilitating DHCP diagnostics in telecommunication networks | |
CN101114994B (en) | Method for detecting connectivity of multi-protocol label switching virtual private network | |
WO2009052765A1 (en) | Detecting and processing method and device of node fault within a peer-to-peer network | |
CN102868569B (en) | The method for testing performance of Layer3 Virtual Private Network, node and system | |
WO2011110118A2 (en) | Fault detection method and system | |
JP2009506444A (en) | How to test the service performance of a file transfer protocol | |
CN111934936B (en) | Network state detection method and device, electronic equipment and storage medium | |
CN101595686A (en) | Trigger the flow analysis at intermediate equipment place | |
JP4065398B2 (en) | Method and apparatus for measuring internet router traffic | |
WO2012002849A1 (en) | Apparatus and method for monitoring of connectivity services | |
Mizrahi et al. | An overview of operations, administration, and maintenance (OAM) tools | |
US7889665B2 (en) | Bridge port MAC address discovery mechanism in ethernet networks | |
Wang et al. | Queen: Estimating packet loss rate between arbitrary internet hosts | |
US9509777B2 (en) | Connection method and management server | |
US20080267080A1 (en) | Fault Verification for an Unpaired Unidirectional Switched-Path | |
WO2021143524A1 (en) | Fault detection method, and apparatus | |
US20080172456A1 (en) | Method for detecting the ipv6 network application layer protocol | |
US8467301B2 (en) | Router misconfiguration diagnosis |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 06741943 Country of ref document: EP Kind code of ref document: A1 |