Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for simulating multiple clients to test DHCPby utilizing raw socket

A multi-client and client-side technology, applied in transmission systems, electrical components, etc., to achieve the effect of simple logic and strong versatility

Active Publication Date: 2020-07-24
山东华辰连科通信网络有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the prior art, the raw socket simulation method has not been adopted to solve the problem of DHCP stress test under the limitation of the existing test environment

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for simulating multiple clients to test DHCPby utilizing raw socket
  • Method and system for simulating multiple clients to test DHCPby utilizing raw socket
  • Method and system for simulating multiple clients to test DHCPby utilizing raw socket

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Embodiment 1 of the present invention proposes a method for testing DHCP by using raw socket to simulate multi-clients, which is applied to DHCP clients. Such as figure 1 A flow chart of a method for testing DHCP by using raw socket to simulate multi-client testing is given.

[0050] In step S101, the DHCP server in the SDN device is configured, and the DHCP server is started. The configured content includes: address pool, DNS server address, domain name, default route, broadcast address, default lease time and maximum lease time, and Use the systemctl command to start DHCP and check whether the operation is successful.

[0051] In step S102, on the SDN client device, the current process is run on the CPU specified by the mask through the CPU affinity of the enabling process in turn, and the link layer data and IP layer data are constructed according to the format and the DHCP request is filled The message creates a raw socket connection.

[0052] The detailed steps ar...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for simulating multiple clients to test DHCP by utilizing raw socket, which comprises the following steps: configuring a DHCP server in SDN equipment, and starting theDHCP server; on the SDN client equipment, specifying a parameter type to establish raw socket connection, binding a CPU, and filling a DHCP request message; and finally, sending a request message atthe client to test the DHCP, and checking a test result at the DHCP server to obtain test data. Based on the method, the invention further provides a system for simulating the multiple clients to testthe DHCP by using the raw socket. The method provided by the invention is efficient, simple in logic and high in universality, realizes load pressure test in the aspects of performance and function of the DHCP server, and determines the maximum load capacity that the DHCP can bear under the condition of meeting the performance index by gradually increasing the number of concurrent users so as toobtain the maximum service level of the DHCP.

Description

technical field [0001] The invention belongs to the technical field of SDN network communication, and in particular relates to a method and a system for testing DHCP by using raw sockets to simulate multi-clients. Background technique [0002] DHCP is a dynamic host configuration protocol. It can automatically assign TCP / IP parameters such as IP address, subnet mask, default gateway, and DNS server IP address to the client. When the client requests to use it, the server is responsible for assigning the corresponding Parameters are assigned to a client to avoid the client manually specifying an IP address, etc. Especially in some large-scale SDN networks, the number of clients increases sharply. How to determine the maximum load of the DHCP server and the effective processing ratio and response time of concurrent user requests is an important issue. At present, it is unrealistic to build a large-scale SDN network in the existing test environment, and the number of clients ca...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12H04L29/06
CPCH04L69/162H04L61/5014H04L61/5046
Inventor 聂丽红严丽马中骏
Owner 山东华辰连科通信网络有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products