CN107342956A - A kind of method and device for realizing broadcast processing - Google Patents

A kind of method and device for realizing broadcast processing Download PDF

Info

Publication number
CN107342956A
CN107342956A CN201710574002.5A CN201710574002A CN107342956A CN 107342956 A CN107342956 A CN 107342956A CN 201710574002 A CN201710574002 A CN 201710574002A CN 107342956 A CN107342956 A CN 107342956A
Authority
CN
China
Prior art keywords
message
virtual machine
response message
broadcast
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710574002.5A
Other languages
Chinese (zh)
Inventor
王培辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710574002.5A priority Critical patent/CN107342956A/en
Publication of CN107342956A publication Critical patent/CN107342956A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of method and device for realizing broadcast processing, including:Virtual switch receives the broadcasting packet for carrying out self virtualizing machine;Virtual switch is according to the broadcasting packet received, the response message prestored to virtual machine response.The embodiment of the present invention reduces influence of the broadcasting packet to network performance by the response message prestored, reduces consumption of the broadcasting packet to network bandwidth.

Description

Method and device for realizing broadcast processing
Technical Field
The present disclosure relates to, but not limited to, virtualization technologies, and more particularly, to a method and apparatus for implementing broadcast processing.
Background
With the continuous development of technologies such as cloud computing, Software Defined Networking (SDN), virtualization, and the like, the scale of cloud computing production environment deployment is also continuously increasing. The large-scale flooding of broadcast messages becomes an important factor that causes the performance of the network to be degraded.
In network communication, various broadcast messages are included, and Address Resolution Protocol (ARP) request messages, Dynamic Host Configuration Protocol (DHCP) request messages, and the like are common. Generally, in a data center environment, there is often a need to suppress the deployment of the ARP broadcast packet, so that the ARP broadcast packet can obtain a safe, fast, and stable network service when being transmitted in the data center.
In order to enhance the network stability, it becomes a necessary requirement to suppress the broadcast message in the large data center; the OpenFlow network comprises an OpenFlow switch (OpenFlow switch), a network virtualization layer (FlowVisor) and a Controller (Controller), wherein the OpenFlow switch forwards a data layer, the FlowVisor virtualizes the network, the Controller performs centralized control on the network to realize the function of a control layer, the OpenFlow switch converts a message forwarding process which is originally and completely controlled by the switch/router into a process which is jointly completed by the OpenFlow switch and a control server (Controller), so that the separation of data forwarding and routing control is realized.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
Embodiments of the present invention provide a method and an apparatus for implementing broadcast processing, which can reduce the influence of a broadcast packet on network performance and reduce the consumption of the broadcast packet on network bandwidth.
The embodiment of the invention provides a method for realizing broadcast processing, which comprises the following steps:
the virtual switch receives a broadcast message from the virtual machine;
and the virtual switch responds a prestored response message to the virtual machine according to the received broadcast message.
Optionally, the broadcast packet includes:
an Address Resolution Protocol (ARP) request is sent when the virtual machine is started;
the virtual machine sends an ARP request when sending a message for the first time;
and the virtual machine automatically acquires a Dynamic Host Configuration Protocol (DHCP) request sent when the IP address is acquired.
Optionally, the pre-stored response message includes:
and the virtual machine transmits the response message flow table containing the response message to the virtual switch through a message transmission port.
Optionally, the virtual machine is directly connected to the virtual switch.
Optionally, when the broadcast message is an ARP request, the response message is an ARP response message;
and when the broadcast message is a DHCP request, the response message is a DHCP response message.
On the other hand, an embodiment of the present invention further provides an apparatus for implementing broadcast processing, including: a receiving unit and a response unit; wherein,
the receiving unit is used for: receiving a broadcast message from a virtual machine;
the response unit is used for: and responding a pre-stored response message to the virtual machine according to the received broadcast message.
Optionally, the broadcast packet includes:
an Address Resolution Protocol (ARP) request is sent when the virtual machine is started;
the virtual machine sends an ARP request when sending a message for the first time;
and the virtual machine automatically acquires a Dynamic Host Configuration Protocol (DHCP) request sent when the IP address is acquired.
Optionally, the pre-stored response message includes:
and the virtual machine transmits the response message flow table containing the response message to the virtual switch through a message transmission port.
Optionally, the virtual machine is directly connected to the virtual switch.
Optionally, when the broadcast message is an ARP request, the response message is an ARP response message;
and when the broadcast message is a DHCP request, the response message is a DHCP response message.
Compared with the related art, the technical scheme of the application comprises the following steps: the virtual switch receives a broadcast message from the virtual machine; and the virtual switch responds a prestored response message to the virtual machine according to the received broadcast message. The embodiment of the invention reduces the influence of the broadcast message on the network performance through the prestored response message and reduces the consumption of the broadcast message on the network bandwidth.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for implementing broadcast processing according to an embodiment of the present invention;
fig. 2 is a block diagram of an apparatus for implementing broadcast processing according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a network structure according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for implementing broadcast processing according to an embodiment of the present invention, as shown in fig. 1, including:
step 100, a virtual switch receives a broadcast message from a virtual machine;
optionally, the broadcast packet includes:
an Address Resolution Protocol (ARP) request sent when the virtual machine is started;
the virtual machine sends an ARP request when sending a message for the first time;
and the virtual machine automatically acquires a Dynamic Host Configuration Protocol (DHCP) request sent when the IP address is acquired.
Optionally, in the embodiment of the present invention, the virtual machine is directly connected to the virtual switch.
The connection here may comprise a network connection.
Step 101, the virtual switch responds to the virtual machine with a pre-stored response message according to the received broadcast message.
Optionally, the pre-stored response message includes:
and the virtual machine transmits the response message flow table containing the response message to the virtual switch through the message transmission port.
It should be noted that the response packet and the response packet flow table may be set with reference to the format and content of the application packet generated by the virtual switch in the related art.
Optionally, when the broadcast message is an ARP request, the response message is an ARP response message;
and when the broadcast message is a DHCP request, the response message is a DHCP response message.
Compared with the related art, the technical scheme of the application comprises the following steps: the virtual switch receives a broadcast message from the virtual machine; and the virtual switch responds a prestored response message to the virtual machine according to the received broadcast message. The embodiment of the invention reduces the influence of the broadcast message on the network performance through the prestored response message and reduces the consumption of the broadcast message on the network bandwidth.
Fig. 2 is a block diagram of an apparatus for implementing broadcast processing according to an embodiment of the present invention, as shown in fig. 2, including: a receiving unit and a response unit; wherein,
the receiving unit is used for: receiving a broadcast message from a virtual machine;
optionally, the broadcast packet includes:
an Address Resolution Protocol (ARP) request is sent when the virtual machine is started;
the virtual machine sends an ARP request when sending a message for the first time;
and the virtual machine automatically acquires a Dynamic Host Configuration Protocol (DHCP) request sent when the IP address is acquired.
The response unit is used for: and responding a pre-stored response message to the virtual machine according to the received broadcast message.
Optionally, the pre-stored response message includes:
and the virtual machine transmits the response message flow table containing the response message to the virtual switch through a message transmission port.
Optionally, when the broadcast message is an ARP request, the response message is an ARP response message;
and when the broadcast message is a DHCP request, the response message is a DHCP response message.
Optionally, in the embodiment of the present invention, the virtual machine is directly connected to the virtual switch.
The device of the embodiment of the invention can be arranged in the virtual switch or physically connected with the virtual switch.
Fig. 3 is a schematic diagram of a network structure according to an embodiment of the present invention, as shown in fig. 3, a virtual machine 1 is connected to a virtual switch 1, a virtual machine 2 is connected to a virtual switch 2, and when the virtual machine 1 sends a broadcast message 1, the virtual switch 1 determines a corresponding response message 1 from a prestored response message flow table 1 and then sends the determined response message 1 to the virtual machine 1; when the virtual machine 2 sends the broadcast message 2, the virtual switch 2 determines the corresponding response message 2 from the prestored response message flow table 2, and then sends the determined response message 2 to the virtual machine 2.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for executing the method for realizing the broadcast processing.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by a program instructing associated hardware (e.g., a processor) to perform the steps, and the program may be stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in hardware, for example, by an integrated circuit to implement its corresponding function, or in software, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function. The present invention is not limited to any specific form of combination of hardware and software.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for implementing broadcast processing, comprising:
the virtual switch receives a broadcast message from the virtual machine;
and the virtual switch responds a prestored response message to the virtual machine according to the received broadcast message.
2. The method of claim 1, wherein the broadcast message comprises:
an Address Resolution Protocol (ARP) request is sent when the virtual machine is started;
the virtual machine sends an ARP request when sending a message for the first time;
and the virtual machine automatically acquires a Dynamic Host Configuration Protocol (DHCP) request sent when the IP address is acquired.
3. The method of claim 1, wherein the pre-stored reply message comprises:
and the virtual machine transmits the response message flow table containing the response message to the virtual switch through a message transmission port.
4. A method according to any of claims 1 to 3, wherein the virtual machine is directly connected to the virtual switch.
5. The method according to any one of claims 1 to 3,
when the broadcast message is an ARP request, the response message is an ARP response message;
and when the broadcast message is a DHCP request, the response message is a DHCP response message.
6. An apparatus for implementing broadcast processing, comprising: a receiving unit and a response unit; wherein,
the receiving unit is used for: receiving a broadcast message from a virtual machine;
the response unit is used for: and responding a pre-stored response message to the virtual machine according to the received broadcast message.
7. The apparatus of claim 6, wherein the broadcast message comprises:
an Address Resolution Protocol (ARP) request is sent when the virtual machine is started;
the virtual machine sends an ARP request when sending a message for the first time;
and the virtual machine automatically acquires a Dynamic Host Configuration Protocol (DHCP) request sent when the IP address is acquired.
8. The apparatus of claim 6, wherein the pre-stored response message comprises:
and the virtual machine transmits the response message flow table containing the response message to the virtual switch through a message transmission port.
9. The apparatus according to any one of claims 6 to 8, wherein the virtual machine is directly connected to a virtual switch.
10. The apparatus according to any one of claims 6 to 8,
when the broadcast message is an ARP request, the response message is an ARP response message;
and when the broadcast message is a DHCP request, the response message is a DHCP response message.
CN201710574002.5A 2017-07-14 2017-07-14 A kind of method and device for realizing broadcast processing Pending CN107342956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710574002.5A CN107342956A (en) 2017-07-14 2017-07-14 A kind of method and device for realizing broadcast processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710574002.5A CN107342956A (en) 2017-07-14 2017-07-14 A kind of method and device for realizing broadcast processing

Publications (1)

Publication Number Publication Date
CN107342956A true CN107342956A (en) 2017-11-10

Family

ID=60218179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710574002.5A Pending CN107342956A (en) 2017-07-14 2017-07-14 A kind of method and device for realizing broadcast processing

Country Status (1)

Country Link
CN (1) CN107342956A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924707A (en) * 2010-09-27 2010-12-22 杭州华三通信技术有限公司 Method and equipment for processing message of address resolution protocol (ARP)
CN103248720A (en) * 2012-02-13 2013-08-14 中兴通讯股份有限公司 Method and device for inquiring physical address
CN104426816A (en) * 2013-08-19 2015-03-18 华为技术有限公司 Virtual machine communication method and device
KR20150030099A (en) * 2013-09-11 2015-03-19 한국전자통신연구원 System and method for address resolution
CN106878320A (en) * 2017-03-09 2017-06-20 郑州云海信息技术有限公司 A kind of method and apparatus for preventing IP address spoofing
CN106936777A (en) * 2015-12-29 2017-07-07 中移(苏州)软件技术有限公司 Cloud computing distributed network implementation method based on OpenFlow, system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924707A (en) * 2010-09-27 2010-12-22 杭州华三通信技术有限公司 Method and equipment for processing message of address resolution protocol (ARP)
CN103248720A (en) * 2012-02-13 2013-08-14 中兴通讯股份有限公司 Method and device for inquiring physical address
CN104426816A (en) * 2013-08-19 2015-03-18 华为技术有限公司 Virtual machine communication method and device
KR20150030099A (en) * 2013-09-11 2015-03-19 한국전자통신연구원 System and method for address resolution
CN106936777A (en) * 2015-12-29 2017-07-07 中移(苏州)软件技术有限公司 Cloud computing distributed network implementation method based on OpenFlow, system
CN106878320A (en) * 2017-03-09 2017-06-20 郑州云海信息技术有限公司 A kind of method and apparatus for preventing IP address spoofing

Similar Documents

Publication Publication Date Title
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US7969989B2 (en) High performance ethernet networking utilizing existing fibre channel arbitrated loop HBA technology
US9036638B2 (en) Avoiding unknown unicast floods resulting from MAC address table overflows
WO2016034074A1 (en) Method, apparatus and system for implementing software-defined networking (sdn)
US20150326524A1 (en) Address resolution in software-defined networks
US10572291B2 (en) Virtual network management
WO2016146077A1 (en) Dynamic route configuration method, device and system
US20140007100A1 (en) Method and Apparatus for Migrating Virtual Machine Parameters and Virtual Machine Server
WO2014089799A1 (en) Method and apparatus for determining virtual machine drifting
WO2016184283A1 (en) Data stream management method and system for virtual machine
US9806996B2 (en) Information processing system and control method for information processing system
CN104378299A (en) Flow table entry processing method and device
CN109194589B (en) MDC (media data center) implementation method and device
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
CN106101297B (en) A kind of message answer method and device
US10931601B2 (en) Method and apparatus for conditional broadcasting of network configuration data
CN105657078B (en) A kind of data transmission method, device and multitiered network manager
CN106716870B (en) Local packet switching at satellite device
EP2629492A1 (en) Method, switch, and system for processing a message
CN107547341B (en) Access method and device of virtual extensible local area network VXLAN
US20150055662A1 (en) Internet group management protocol (igmp) leave message processing synchronization
CN107483628B (en) DPDK-based one-way proxy method and system
US11005706B2 (en) Method for configuring forwarding table for user equipment, apparatus, and system
WO2021109851A1 (en) Network communication method, apparatus and device, and storage medium
US9985926B2 (en) Address acquiring method and network virtualization edge device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171110