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

Method, device and system for acquiring media access control address

A medium access control and address technology, applied in the field of communication, can solve problems such as CPU resource consumption, affecting normal communication, occupying network bandwidth, etc., and achieve the effect of avoiding CPU resource occupation, improving resource utilization, and reducing occupation

Inactive Publication Date: 2011-05-25
HUAWEI TECH CO LTD
View PDF5 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the broadcast mechanism it uses, when there are a large number of hosts in a Layer 2 network and the communication between hosts is frequent, a large number of ARP broadcast messages will appear in the network
Seriously occupy the network bandwidth; in addition, all hosts need to receive and process the ARP message to obtain the MAC address through this method, but in fact only one host needs to respond, and the CPU resources of other hosts will be consumed
The measured data shows that when the number of ARP packets per second in the network reaches 1000, the CPU usage rate of the host is 30%, which causes a serious waste of communication system resources and affects normal communication.

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, device and system for acquiring media access control address
  • Method, device and system for acquiring media access control address
  • Method, device and system for acquiring media access control address

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Such as figure 1 As shown, the embodiment of the present invention provides a method for obtaining a MAC address, the method includes the following steps:

[0037] S101: Receive a first ARP broadcast message sent by the first terminal, where the first ARP broadcast message is used to request to obtain the MAC address of the second terminal;

[0038] S102: Obtain the address of the ARP server, and modify the destination address of the first ARP broadcast message to the address of the ARP server;

[0039] S103: Send the modified first ARP broadcast message to the ARP server, so that the ARP server obtains the MAC address of the second terminal according to the modified first ARP broadcast message, and sends an ARP response The message is sent to the first terminal, and the ARP response message includes the MAC address of the second terminal.

[0040] It should be noted that, in Embodiment 1 of the present invention, the subject performing steps S101-S103 may be a device...

Embodiment 2

[0043] Such as figure 2 As shown, the embodiment of the present invention provides a method for obtaining a MAC address, and the subject that executes each step in the method described in this implementation may be a device or a software module, and its location is as follows image 3 The network structure diagram shown is between the terminal network interface and the device at the access layer of the layer 2 network, before the ARP broadcast message of the host is forwarded to the entire layer 2 network. This implementation selects the ARP proxy module as an example, then the method may include the following steps:

[0044] S201: The ARP proxy module receives a first ARP broadcast message sent by the first terminal, where the first ARP broadcast message is used to request to obtain the MAC address of the second terminal;

[0045] Wherein, the first ARP broadcast message is a standard ARP broadcast message, which includes the MAC address and IP address of the message sendin...

Embodiment 3

[0066] An embodiment of the present invention provides a method for acquiring a MAC address, including steps S301-S310. Wherein, steps S301-S308 are the same as steps S201-S208 in Embodiment 2 of the present invention, and will not be repeated here. Refer to Embodiment 2 for specific steps and drawings. Such as Figure 4 As shown, the difference between this embodiment and Embodiment 2 is that this embodiment also includes S309-S310:

[0067] S309: The ARP server receives the GARP broadcast message sent by the terminal;

[0068] Specifically, when the terminal is started, or the network interface of the terminal is started, or the terminal changes the MAC address, etc., the terminal sends a GARP broadcast message.

[0069] Wherein, the format of the GARP broadcast message is a standard GARP broadcast message.

[0070] S310: The ARP server obtains the terminal IP address in the GARP broadcast message, and judges whether there is a MAC address corresponding to the IP address ...

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 discloses a method for acquiring a media access control (MAC) address, which comprises the following steps of: receiving a first address resolution protocol (ARP) broadcast message transmitted by a first terminal; and acquiring an address of an ARP server, modifying a destination address of the first ARP broadcast message into an address of the ARP server and transmitting the address to the ARP server so as to make the ARP server acquire an MAC address of a second terminal according to the modified message and transmit an ARP response message to the first terminal, wherein the ARP response message comprises the MAC address of the second terminal. The method has the advantages that: by acquiring the address of the ARP server, the destination address of the first ARP broadcast message is modified into the address of the ARP server; the ARP broadcast message becomes a unicast message which is transmitted to the ARP server only, and the occupancy of ARP broadcast on network bandwidth is reduced; and because the modified ARP broadcast message is only transmitted to the ARP server, other receiving terminals cannot receive the message, the occupancy of central processing unit (CPU) resources by the other receiving terminals in the network is avoided, and the resource utilization rate of the system and the communication efficiency of each terminal are improved.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a method, device and system for acquiring a medium access control address. Background technique [0002] It is stipulated in the Ethernet protocol that if a host in the same LAN wants to communicate directly with another host, it must know the MAC (Medium / Media Access Control, Media Access Control) address of the target host. In the TCP / IP protocol (Transmission Control Protocol / Internet Protocol, Transmission Control Protocol / Internet Internet Protocol), the network layer and the transport layer only care about the IP address of the target host. This leads to the fact that when the IP protocol is used in the Ethernet, the Ethernet protocol of the data link layer receives the data provided by the upper layer IP protocol, and only contains the IP address of the destination host. Therefore, a method is needed to obtain the MAC address of the destination host accordi...

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/06H04L12/18
CPCH04L61/6013H04L61/103H04L29/1282H04L29/12028H04L61/59
Inventor 朱国军
Owner HUAWEI TECH CO LTD
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