CN113660354A - Link layer address allocation method of network equipment, network equipment and network system - Google Patents

Link layer address allocation method of network equipment, network equipment and network system Download PDF

Info

Publication number
CN113660354A
CN113660354A CN202110924772.4A CN202110924772A CN113660354A CN 113660354 A CN113660354 A CN 113660354A CN 202110924772 A CN202110924772 A CN 202110924772A CN 113660354 A CN113660354 A CN 113660354A
Authority
CN
China
Prior art keywords
link layer
network
layer address
equipment
gateway
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
CN202110924772.4A
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.)
Shenzhen Deweisi Technology Co ltd
Original Assignee
Shenzhen Deweisi 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 Shenzhen Deweisi Technology Co ltd filed Critical Shenzhen Deweisi Technology Co ltd
Priority to CN202110924772.4A priority Critical patent/CN113660354A/en
Publication of CN113660354A publication Critical patent/CN113660354A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • 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/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • 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/5053Lease time; Renewal aspects
    • 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/5061Pools of addresses
    • 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/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use

Abstract

The invention discloses a link layer address allocation method of network equipment, which comprises the following steps: after the network equipment is accessed to the network, firstly, the self link layer address is not determined in a certain time, and the assignable link layer address information broadcasted by the gateway equipment in the local area network according to a certain period is received; the network equipment selects a link layer address which is not used by other network equipment in the same network as a link layer address of the network equipment according to the received link layer address information; the network equipment applies for using the selected link layer address to the gateway equipment; the gateway equipment judges whether the selected link layer address can be used by the network equipment, if so, the gateway equipment responds to the agreement message, and otherwise, the gateway equipment sends a rejection message. The invention manages the link layer address in the local area network through the gateway equipment, so that the same link layer address can be repeatedly used in different local area networks, the resource utilization rate of the link layer address is improved, and the address management cost is correspondingly saved.

Description

Link layer address allocation method of network equipment, network equipment and network system
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of network communication technologies, and in particular, to a link layer address allocation method for a network device, and a network system.
[ background of the invention ]
The MAC Address (Media Access Control Address), also called local area network Address (LAN Address), MAC Address, Ethernet Address, Physical Address or link layer Address, is an Address used to confirm the location of the network device. In the OSI model, a third layer network layer is responsible for IP addresses and a second layer data link layer is responsible for MAC addresses.
The link layer address such as MAC address or character string is used to uniquely identify a network card in the network, and if one or more network cards exist in a device, each network card needs to have a unique link layer address. The MAC address is burned into the network card storage medium when produced by the network equipment manufacturer. According to the IEEE 802 protocol, network devices need to assign link layer addresses (including MAC addresses, strings, etc.) for network communications.
The link layer address information of a current device is divided into two parts, the first three bytes represent the device manufacturer (OUI), and the last three bytes represent the unique ID assigned to the device by the manufacturer to identify the device. Generally, equipment manufacturer identifiers (OUI) are uniformly distributed by IEEE, and equipment manufacturers are required to apply for the identifiers from the IEEE, so that the application process is complicated and the cost is high. The link layer address is generally only practical to communicate in a two-layer network, a three-layer network can carry out address replacement, and the global unique meaning is only used for uniquely identifying one device; also, it is apparent that as the number of network devices increases, the resources of the MAC address gradually run out. In addition, at present, there is no method for reasonably allocating link layer addresses in the local area network.
In view of the foregoing, it is desirable to provide a link layer address allocation method for a network device, a network device and a network system to overcome the above-mentioned drawbacks.
[ summary of the invention ]
The invention aims to provide a link layer address allocation method of network equipment, the network equipment and a network system, aiming at solving the problem of low utilization rate of the existing MAC address resources, reducing the consumption of MAC addresses and saving the address management cost.
In order to achieve the above object, the present invention provides a link layer address allocation method for a network device, comprising the following steps:
after the network equipment is accessed to the network, firstly, the self link layer address is not determined in a certain time, and the assignable link layer address information broadcasted by the gateway equipment in the local area network according to a certain period is received;
the network equipment selects a link layer address which is not used by other network equipment in the same network as a link layer address of the network equipment according to the received link layer address information;
the network equipment applies for using the selected link layer address to the gateway equipment;
the gateway equipment judges whether the selected link layer address can be used by the network equipment, if so, the gateway equipment responds to an agreement message, and otherwise, the gateway equipment sends a rejection message.
In a preferred embodiment, after receiving the response of rejecting the application from the gateway device, the network device may reselect another link layer address that is not used by other network devices of the network, and resend the application.
In a preferred embodiment, the application use message sent by the network device carries an option tag, and the unique identity information of the network device is recorded in the option tag.
In a preferred embodiment, the broadcast message transmission period sent by the gateway device is set to 30 s.
In a preferred embodiment, the gateway device may preset a pool of usable link layer addresses.
The invention also provides a network device, and the link layer address of the network device is set according to the link layer address allocation method of the network device in the embodiment.
The invention also provides a network system, wherein the link layer addresses of part or all of the network equipment in the network system are set according to the link layer address allocation method of the network equipment in the embodiment.
The invention provides a link layer address distribution method based on a local area network.A gateway device judges whether to agree with an application message of a network device according to the use information of the link layer address, thereby carrying out reasonable distribution of the link layer address on the network device in the local area network and determining the unique identifier of the network device in the local area network. Therefore, the gateway device manages the link layer addresses in the local area network, so that the same link layer address can be repeatedly used in different local area networks, the resource utilization rate of the link layer address is improved, the consumption of the link layer address is reduced, and the address management cost is correspondingly saved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a link layer address allocation method based on a local area network according to the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantageous effects of the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and the detailed description. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In the embodiment of the invention, a link layer address allocation method of a network device is provided, which is applied to a gateway device of a local area network, so that the gateway device of the local area network can reasonably allocate all link layer addresses in the local area network, and the link layer address fixation of one network device in the local area network is realized, thereby the same link layer address can be repeatedly used in different local area networks without conflict.
As shown in fig. 1, the link layer address allocation method of the network device includes the following steps S11-S14.
Step S11, after the network device accesses the network, it first does not determine its own link layer address within a certain time, and receives the assignable link layer address information broadcasted by the gateway device in the local area network according to a certain period.
Specifically, after the network device is powered on, the network interface is kept silent, only the network message in the local area network is received but not sent within a preset duration, and the link layer address of the network device is not determined; the network message comprises a message with a destination address which is not the device.
Step S12, the network device selects a link layer address that is not used by other network devices in the same network as its own link layer address according to the received link layer address information.
In step S13, the network device applies for the selected link layer address from the gateway device.
Specifically, the gateway device manages allocation of all link layer addresses of the local area network, and broadcasts and sends dynamic address allocation information to the local area network according to a preset time period (for example, 30s), so that a device terminal newly accessing the local area network can acquire all link layer address information that can be used in the local area network within a time period, and the network access rate is increased. The sending period of the broadcast message sent by the gateway device may be set, and is set to be 30s by default. The broadcast message is an arpep (Address Resolution Protocol) message or a custom format message.
It should be noted that the application use message sent by the network device carries an option tag, and the unique identity information of the network device is recorded in the option tag.
Step S14, the gateway device determines whether the selected link layer address can be used by the network device, if so, responds to the agreement message, otherwise, sends a rejection message.
Specifically, the gateway device may preset a usable link layer address pool in the local area network. Further, after receiving the response of rejecting the application from the gateway device, the network device may reselect another link layer address that is not used by another network device of the network, and resend the application.
The invention also provides a network device, and the link layer address of the network device is set according to the link layer address allocation method of the network device in the embodiment.
The invention also provides a network system, wherein the link layer addresses of part or all of the network equipment in the network system are set according to the link layer address allocation method of the network equipment in the embodiment.
The invention provides a link layer address distribution method based on a local area network.A gateway device judges whether to agree with an application message of a network device according to the use information of the link layer address, thereby carrying out reasonable distribution of the link layer address on the network device in the local area network and determining the unique identifier of the network device in the local area network. Therefore, the gateway device manages the link layer addresses in the local area network, so that the same link layer address can be repeatedly used in different local area networks, the resource utilization rate of the link layer address is improved, the consumption of the link layer address is reduced, and the address management cost is correspondingly saved.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system or apparatus/terminal device and method can be implemented in other ways. For example, the above-described system or apparatus/terminal device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The invention is not limited solely to that described in the specification and embodiments, and additional advantages and modifications will readily occur to those skilled in the art, so that the invention is not limited to the specific details, representative apparatus, and illustrative examples shown and described herein, without departing from the spirit and scope of the general concept as defined by the appended claims and their equivalents.

Claims (7)

1. A link layer address allocation method of a network device is characterized by comprising the following steps:
after the network equipment is accessed to the network, firstly, the self link layer address is not determined in a certain time, and the assignable link layer address information broadcasted by the gateway equipment in the local area network according to a certain period is received;
the network equipment selects a link layer address which is not used by other network equipment in the same network as a link layer address of the network equipment according to the received link layer address information;
the network equipment applies for using the selected link layer address to the gateway equipment;
the gateway equipment judges whether the selected link layer address can be used by the network equipment, if so, the gateway equipment responds to an agreement message, and otherwise, the gateway equipment sends a rejection message.
2. The method according to claim 1, wherein after receiving the response of rejecting the application from the gateway device, the network device reselects another link layer address that is not used by another network device of the network, and retransmits the application.
3. The method according to claim 1, wherein the application usage message sent by the network device carries an option tag, and the option tag records unique identity information of the network device.
4. The method according to claim 1, wherein the transmission period of the broadcast packet transmitted by the gateway device is set to 30 s.
5. The method of claim 1, wherein the gateway device presets a usable link layer address pool.
6. A network device, wherein the link layer address of the network device is set according to the link layer address allocation method of the network device claimed in claims 1 to 5.
7. A network system, characterized in that the link layer addresses of some or all network devices in the network system are set according to the link layer address allocation method of the network device of claims 1 to 5.
CN202110924772.4A 2021-08-12 2021-08-12 Link layer address allocation method of network equipment, network equipment and network system Pending CN113660354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110924772.4A CN113660354A (en) 2021-08-12 2021-08-12 Link layer address allocation method of network equipment, network equipment and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110924772.4A CN113660354A (en) 2021-08-12 2021-08-12 Link layer address allocation method of network equipment, network equipment and network system

Publications (1)

Publication Number Publication Date
CN113660354A true CN113660354A (en) 2021-11-16

Family

ID=78479547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110924772.4A Pending CN113660354A (en) 2021-08-12 2021-08-12 Link layer address allocation method of network equipment, network equipment and network system

Country Status (1)

Country Link
CN (1) CN113660354A (en)

Similar Documents

Publication Publication Date Title
CN100525316C (en) Method for assigning an IP address to a device
CN111741459A (en) Multilink terminal and address allocation method thereof, network access equipment and medium
CN114501469A (en) Method, device and system for configuring network slice
JP3420512B2 (en) Dynamic domain name system
CN113037737B (en) Method for external network card application of user terminal equipment
CN111147468A (en) User access method, device, electronic equipment and storage medium
RU2598293C1 (en) Method and apparatus for transmitting standard configuration data of improved system of selecting a transmitting protocol
CN106851685B (en) Method and system for controlling bandwidth of mobile terminal
CN113660354A (en) Link layer address allocation method of network equipment, network equipment and network system
CN115174310B (en) PDN dialing and configuration method, system, device, equipment and storage medium
US8107943B2 (en) Method for providing device IDs in a mobile radio device which identify said mobile radio device in a mobile radio network
CN110311995A (en) Distribution method, device and the computer readable storage medium of IP address
CN114945206B (en) Access method of PROFINET protocol in 5G-LAN
CN112787828B (en) Application flow statistical method and device and mobile electronic device
CN114615272A (en) Media data forwarding server scheduling method and system
CN106657424B (en) Method, equipment and system for realizing domain name service in Internet of things
CN113660355A (en) Link layer address allocation method of network equipment, network equipment and network system
CN113068161A (en) Bluetooth low-energy-consumption communication method, device and system and storage medium
EP3544351A1 (en) Data transmission method in internet of vehicles and terminal
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN216930329U (en) Management device
CN114244695B (en) Terminal online configuration method and device of isolated network and network management system
CN114900901B (en) Service processing method and device, equipment and computer readable storage medium
CN114866371B (en) Method and device for establishing IPSec tunnel, storage medium and electronic equipment
WO2023040606A1 (en) Networking device coloring method, network device and storage medium

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