Optimization method and system for processing ARP data packet under IASS network platform

文档序号:1314623 发布日期:2020-07-10 浏览:6次 中文

阅读说明:本技术 一种iass网络平台下处理arp数据包的优化方法及其系统 (Optimization method and system for processing ARP data packet under IASS network platform ) 是由 曾宪力 史伟 闵宇 于 2020-03-05 设计创作,主要内容包括:本发明公开了一种IASS网络平台下处理ARP数据包的优化方法及其系统,优化方法步骤包括:虚拟路由器和虚拟机VM之间通过虚拟交换机进行ARP数据包的传输;维护模块分配并记录每一个虚拟机VM的IP地址和MAC地址关系,然后实时或设置一定周期去调取记录;执行模块获取IP地址和MAC地址关系,并执行ARP静态绑定命令,写入ARP表格;维护模块对IP地址和MAC地址的关系进行更新;维护模块对失效的IP地址和MAC地址进行释放,然后通知执行模块,执行模块删除相关的ARP静态绑定,并更新ARP表格;设置一定时间段,执行模块对ARP表格进行更新。本发明优化了ARP请求在云计算的环境广播包占用带宽,提高了网络分析效率。(The invention discloses an optimization method and a system for processing ARP data packets under an IASS network platform, wherein the optimization method comprises the following steps: the virtual router and the virtual machine VM are transmitted through the virtual switch for ARP data packet transmission; the maintenance module distributes and records the relation between the IP address and the MAC address of each virtual machine VM, and then calls the record in real time or in a certain period; the execution module acquires the relation between the IP address and the MAC address, executes an ARP static binding command and writes the ARP static binding command into an ARP table; the maintenance module updates the relation between the IP address and the MAC address; the maintenance module releases the failed IP address and the MAC address, then informs the execution module, and the execution module deletes the related ARP static binding and updates an ARP table; and setting a certain time period, and updating the ARP table by the execution module. According to the invention, the bandwidth occupied by the ARP request in the cloud computing environment broadcast packet is optimized, and the network analysis efficiency is improved.)

1. An optimization method for processing ARP data packets under an IASS network platform is characterized by comprising the following steps:

the virtual router and the virtual machine VM are transmitted through the virtual switch for ARP data packet transmission;

the maintenance module distributes and records the relation between the IP address and the MAC address of each virtual machine VM, and then calls the record in real time or in a certain period; the execution module acquires the relation between the IP address and the MAC address, executes an ARP static binding command and writes the ARP static binding command into an ARP table;

in the calling process, if the virtual machine VM is destroyed or the IP address of the virtual machine VM is replaced or the MAC address of the virtual machine VM is replaced, the maintenance module is triggered to update the relation between the IP address and the MAC address and update the relation between the IP address and the MAC address of the latest on-line virtual machine VM;

the maintenance module releases the failed IP address and the MAC address, then informs the execution module, and the execution module deletes the related ARP static binding and updates an ARP table;

and setting a certain time period, and updating the ARP table by the execution module.

2. The method as claimed in claim 1, wherein the certain period is 3 minutes.

3. The method as claimed in claim 1, wherein the predetermined time period is 5 minutes.

4. An optimization system for processing ARP data packets under an IASS network platform comprises a virtual machine resource pool, a virtual switch and a virtual router which are sequentially connected, and is characterized by further comprising a maintenance module, wherein the maintenance module is connected with the virtual machine resource pool; the virtual machine resource pool comprises a plurality of virtual machine VMs, and each virtual machine VM comprises an execution module;

the virtual router is used for transmitting ARP data packets with the virtual machine VM through the virtual switch;

the maintenance module is used for allocating and recording the relation between the IP address and the MAC address of each virtual machine VM, then calling the record in real time or in a certain period, and if the virtual machine VM is destroyed or the IP address of the virtual machine VM is replaced or the MAC address of the virtual machine VM is replaced in the calling process, the maintenance module is used for updating the relation between the IP address and the MAC address, updating the relation between the IP address and the MAC address of the latest on-line and releasing the invalid IP address and MAC address;

the execution module is used for acquiring the relation between the IP address and the MAC address, executing an ARP static binding command and writing the ARP static binding command into an ARP table;

the execution module is further to: when the maintenance module releases the failed IP address and MAC address, the execution module deletes the related ARP static binding and updates an ARP table; the execution module is used for updating the ARP table periodically.

Technical Field

The invention relates to the technical field of ARP data packets of an IASS network platform, in particular to an optimization method and an optimization system for processing ARP data packets under the IASS network platform.

Background

With the development of the internet, cloud computing is also becoming more and more a trend. For a traditional cloud computing IASS service, the transmission of the network thereof is required to follow the network transmission protocol. Under the TCP/IP network architecture, the conversion of the IP address and the MAC address needs to use an ARP protocol. The traditional network architecture is a network situation under a physical device, wherein the traditional network architecture is as follows: the router is connected with the switch through the gateway, and the switch can be connected with a plurality of PC terminals. Under the traditional network architecture, the method has the following characteristics: 1. the device sends out broadcast packets (flooding the network link) continuously and periodically; 2. then the device receiving the broadcast unicasts (replies the data packet) if the device requests the device, and directly discards the data packet if the device does not request the device; 3. the ARP request packet, whether needed or not, is sent to the outside in the default 5 minutes (since the corresponding entry of the ARP table information is deleted by default for this period, it is sent to the outside).

The broadcast packet of the ARP request is always filled on a network link, and the birth of the protocol is the flow, so that with the development of cloud computing, more clients exist in a local area network in a virtual environment, and more network devices exist. Causing broadcast packets of ARP requests to ramp up. The method occupies part of network bandwidth, and simultaneously, broadcast packets can be captured during packet capture analysis, which affects analysis efficiency.

For a traditional ias service platform, virtualization is performed under a traditional network architecture, that is: the virtual router is connected with the virtual switch through the gateway, and the virtual switch can be connected with a plurality of virtual machines or virtual servers.

Disclosure of Invention

In order to overcome the defects and shortcomings of the prior art, the invention provides an optimization method and a system for processing an ARP data packet under an IASS network platform.

In order to solve the technical problems, the invention provides the following technical scheme: an optimization method for processing ARP data packets under an IASS network platform comprises the following steps:

the virtual router and the virtual machine VM are transmitted through the virtual switch for ARP data packet transmission;

the maintenance module distributes and records the relation between the IP address and the MAC address of each virtual machine VM, and then calls the record in real time or in a certain period; the execution module acquires the relation between the IP address and the MAC address, executes an ARP static binding command and writes the ARP static binding command into an ARP table;

in the calling process, if the virtual machine VM is destroyed or the IP address of the virtual machine VM is replaced or the MAC address of the virtual machine VM is replaced, the maintenance module is triggered to update the relation between the IP address and the MAC address and update the relation between the IP address and the MAC address of the latest on-line virtual machine VM;

the maintenance module releases the failed IP address and the MAC address, then informs the execution module, and the execution module deletes the related ARP static binding and updates an ARP table;

and setting a certain time period, and updating the ARP table by the execution module.

Further, the certain period is 3 minutes.

Further, the certain period of time is 5 minutes.

The invention also aims to provide an optimization system for processing ARP data packets under an IASS network platform, which comprises a virtual machine resource pool, a virtual switch and a virtual router which are sequentially connected; the optimization system also comprises a maintenance module, and the maintenance module is connected with the virtual machine resource pool; the virtual machine resource pool comprises a plurality of virtual machine VMs, and each virtual machine VM comprises an execution module;

the virtual router is used for transmitting ARP data packets with the virtual machine VM through the virtual switch;

the maintenance module is used for allocating and recording the relation between the IP address and the MAC address of each virtual machine VM, then calling the record in real time or in a certain period, and if the virtual machine VM is destroyed or the IP address of the virtual machine VM is replaced or the MAC address of the virtual machine VM is replaced in the calling process, the maintenance module is used for updating the relation between the IP address and the MAC address, updating the relation between the IP address and the MAC address of the latest on-line and releasing the invalid IP address and MAC address;

the execution module is used for acquiring the relation between the IP address and the MAC address, executing an ARP static binding command and writing the ARP static binding command into an ARP table;

the execution module is further to: when the maintenance module releases the failed IP address and MAC address, the execution module deletes the related ARP static binding and updates an ARP table; the execution module is used for updating the ARP table periodically.

After the technical scheme is adopted, the invention at least has the following beneficial effects: the maintenance module arranged in the invention can clearly know how many virtual machines are opened on the IASS platform and how many IP addresses and MAC addresses corresponding to the IP are allocated to the virtual machines; according to the maintenance module provided by the invention, the maintenance module does not send an ARP request broadcast packet to the outside through the ARP having related records, so that the bandwidth occupied by the ARP data packet request in the cloud computing environment broadcast packet is optimized; in the invention, under the cloud computing IASS framework, as the allocated IP address and the MAC address can be allocated and set by a manufacturer, the ARP table can be maintained in a controllable way greatly, and the ARP static binding and deletion are copied by a simple execution module, so that the impact of the virtual environment ARP broadcast packet on a network link is reduced greatly.

Drawings

FIG. 1 is a block diagram of an optimization system for processing ARP packets under an IASS network platform according to the present invention;

fig. 2 is a flowchart of an optimization method for processing ARP packets under an ias network platform according to the present invention.

Detailed Description

It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict, and the present application is further described in detail with reference to the drawings and specific embodiments.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种用于交换机的防尘保护装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!