CN114172753B - Address reservation method, network equipment and system - Google Patents
Address reservation method, network equipment and system Download PDFInfo
- Publication number
- CN114172753B CN114172753B CN202010949604.6A CN202010949604A CN114172753B CN 114172753 B CN114172753 B CN 114172753B CN 202010949604 A CN202010949604 A CN 202010949604A CN 114172753 B CN114172753 B CN 114172753B
- Authority
- CN
- China
- Prior art keywords
- address
- information
- state
- terminal device
- network device
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The application provides an address reservation method, which comprises the following steps: after a first terminal device accesses a network through a network device, the network device acquires first information and a first IP address of the first terminal device, the first information comprises a first MAC address and first access port information, the first MAC address indicates the first terminal device, the first access port information indicates information of a first port of the network equipment for receiving the access request of the first terminal equipment, and the first IP address is an IP address which is allocated to the first terminal equipment by the network equipment and is used for the first terminal equipment to access the network; the network equipment determines a first corresponding relation, wherein the first corresponding relation is the corresponding relation between the first information and the first IP address; when the network device determines that the first terminal device is switched from the online state to the offline state, the network device determines the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relation, so that the requirement of reserving the address for the terminal device is met.
Description
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method, a network device, and a system for address reservation.
Background
The address reservation refers to that after the terminal device is offline, the network device can reserve an Internet Protocol (IP) address (for example, an IP address or an IP address prefix) used by the terminal device before the terminal device is offline for the terminal device. That is, after the terminal device goes offline, the network device may set the state of the IP address to the reserved state. Therefore, when the terminal device requests to go online again, the network device can allocate the IP address in the reserved state to the terminal device, so that the terminal device can access the network by using the reserved IP address, and the efficiency of accessing the terminal device to the network can be effectively improved.
However, the existing address reservation method cannot meet the requirement of reserving address resources for the terminal device in some special scenarios (for example, scenarios in which one Media Access Control (MAC) address corresponds to multiple sessions).
Disclosure of Invention
The application provides an address reservation method, network equipment and a system, which can meet the requirement of reserving address resources for terminal equipment.
In a first aspect, a method for address reservation is provided, where the method includes:
after a first terminal device accesses a network through a network device, the network device acquires first information and a first Internet Protocol (IP) address of the first terminal device, wherein the first information comprises a first Media Access Control (MAC) address and first access port information, the first MAC address indicates the first terminal device, the first access port information indicates a first port of the network device for receiving an access request of the first terminal device, and the first IP address is an IP address which is allocated to the first terminal device by the network device and is used for the first terminal device to access the network; the network device determines a first corresponding relationship, which is a corresponding relationship between the first information and the first IP address; when the network device determines that the first terminal device is switched from the online state to the offline state, the network device determines the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relationship.
In the above technical solution, after the first terminal device is switched from the online state to the offline state, the network device may reserve an IP address for the first terminal device according to the first MAC address and the first access port information. When the MAC addresses of different terminal devices requesting to access the network through the network device are the same, the network device may further identify the terminal device corresponding to the first access port information according to the first access port information provided in the present application, so that in some special scenarios (for example, in a case where one MAC address corresponds to a plurality of different terminal devices), the network device may still reserve IP addresses for the plurality of different terminal devices. The address reservation method provided by the application can better meet the requirement of reserving address resources for the terminal equipment.
With reference to the first aspect, in some implementations of the first aspect, the first access port information includes a first virtual local area network VLAN id and a first port id, where the first port id is used to indicate the first port, and the first VLAN id is used to indicate a broadcast domain to which the first port belongs.
In the foregoing technical solution, the first information may include a first MAC address, a first VLAN identifier, and a first port identifier. Therefore, after the first terminal device is switched from the online state to the offline state, the network device may reserve an IP address for the first terminal device according to the first MAC address, the first VLAN identifier, and the first port identifier.
When a network device receives access requests from different terminal devices, the network device usually assigns different port identifiers to the different terminal devices. In this case, the first information provided by the present application is in a one-to-one relationship with the terminal device. Therefore, the network device can successfully reserve the IP address for the first terminal device according to the first information.
With reference to the first aspect, in certain implementations of the first aspect, the first information further includes first access link information of the first terminal device, where the first access link information indicates a physical location of the first terminal device.
In the above technical solution, the first information may include a first MAC address, a first VLAN identifier, a first port identifier, and first access link information. Therefore, after the first terminal device is switched from the online state to the offline state, the network device may reserve an IP address for the first terminal device according to the first MAC address, the first VLAN identifier, the first port identifier, and the first access link information.
Optionally, in some implementations, the first information may further include the first MAC address and the first access link information. Therefore, after the first terminal device is switched from the online state to the offline state, the network device may reserve an IP address for the first terminal device according to the first MAC address and the first access link information.
In the above technical solution, it can be understood that the first access link information and the first terminal device are in a one-to-one relationship. In other words, the access link information of different terminal devices is not the same.
When two terminal apparatuses (terminal apparatus #1 and terminal apparatus # 2) having the same MAC address request access to the network through the network apparatus, since the access link information #1 corresponds to the terminal apparatus #1 and the access link information #2 corresponds to the terminal apparatus #2, the network apparatus can successfully reserve an IP address for the terminal apparatus #1 according to the access link information #1 and can successfully reserve an IP address for the terminal apparatus #2 according to the access link information #2.
With reference to the first aspect, in certain implementations of the first aspect, the first access link information includes option82 option information, or the first access link information includes at least one of: option18 option information and option37 option information.
That is, the first access link information may include option82 option information. The first access link information may include option18 option information. The first access link information may include option37 option information. The first access link information may also include option18 option information and option37 options. In the above technical solution, the first information may include the first MAC address, the first access port information, and the first access link information.
For example, when the first access link information is option82 option information, the first information may include a first MAC address, a first VLAN identifier, a first port identifier, and option82 option information. For example, when the first access link information is option37 option information, the first information may include a first MAC address, a first VLAN identifier, a first port identifier, and option37 option information.
With reference to the first aspect, in certain implementations of the first aspect, the first information further includes a dynamic host configuration protocol unique identifier, DUID, of the first end device.
In the above technical solution, the first information may include the first MAC address, the first access port information, the first access link information, and the DUID of the first terminal device.
For example, the first information may include a first MAC address, a first VLAN identification, a first port identification, option82 option information, and a DUID of the first end device. For example, the first information may include a first MAC address, a first VLAN identification, a first port identification, option18 option information, and a DUID of the first end device. For example, the first information may include a first MAC address, a first VLAN identification, a first port identification, option37 option information, and a DUID of the first end device. Optionally, in some implementations, the first information may further include the first MAC address, the first access link information, and the DUID of the first terminal device.
For example, the first information may include the first MAC address, option82 option information, and the DUID of the first terminal device. For example, the first information may include a first MAC address, a first VLAN identification, a first port identification, and option18 option information and option37 option information.
Optionally, in some implementations, the first information may further include the first MAC address, the first access port information, and the DUID of the first end device.
For example, the first information may include a first MAC address, a first VLAN identification, a first port identification, and a DUID of the first end device.
Optionally, in some implementations, the first information may further include the first MAC address and the first access port information.
For example, the first information may include a first MAC address, a first VLAN identification, and a first port identification.
Optionally, in some implementations, the first information may further include the first MAC address and the first access link information.
For example, the first information may include the first MAC address, option18 option information and option37 option information, and the DUID of the first terminal device. For example, the first information may also include the first MAC address, option37 option information, and the DUID of the first terminal device.
With reference to the first aspect, in certain implementation manners of the first aspect, the determining, by the network device according to the first corresponding relationship, that the state of the first IP address corresponding to the first information is a reserved state includes: in the reservation period, the network device determines the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relation; the method further comprises the following steps: and after the reservation period, the network equipment deletes the first corresponding relation and updates the state of the first IP address corresponding to the first information from a reserved state to an unoccupied state.
In the above technical solution, after the first terminal device is offline, the network device may reserve the first IP address for the first terminal device within a certain time according to the reservation duration. If the reservation time limit is exceeded, the network equipment can update the state of the first IP address from the reserved state to the unoccupied state, and resource waste of the network address can be avoided.
With reference to the first aspect, in certain implementations of the first aspect, after the network device determines that the first terminal device is switched from the online state to the offline state, the method further includes: the network equipment receives first access request information of the first terminal equipment, wherein the first access request information is used for requesting the network equipment to distribute an IP address of the first terminal equipment for accessing the network equipment according to the first access port information; the network device allocates the first IP address to the first terminal device according to the first access request information and the first corresponding relation; the network equipment updates the state of the first IP address from a reserved state to an occupied state.
In the above technical solution, in the process that the first terminal device is switched from the online state to the offline state (i.e., in the process that the first terminal is offline), the network device reserves the first IP address for the first terminal device according to the first information, that is, the state of the first IP address is a reserved state. After that, when the first terminal device requests to access the network again through the network device, the network device may allocate the first IP address corresponding to the first information to the first terminal device according to the first information, so that the efficiency of the first terminal device accessing the network can be improved.
With reference to the first aspect, in some implementation manners of the first aspect, the allocating, by the network device, the first IP address to the first terminal device according to the first access request information and the first corresponding relationship includes: and when the network equipment detects the first corresponding relation and the state of the first IP address is a reserved state, allocating the first IP address to the first terminal equipment.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: when the network device does not detect the first corresponding relationship and the state of the first IP address is an unoccupied state, allocating the first IP address to the first terminal device; or when the network device does not detect the first corresponding relationship and the state of the first IP address is an occupied state, allocating a second IP address to the first terminal device; the second IP address is an IP address used for the first terminal device to access the network according to the first access port information, and the second IP address is different from the first IP address.
In the above technical solution, when the network device does not detect the IP address reserved for the first terminal device, the network device may further allocate the IP address (e.g., the second IP address) in an unoccupied state to the first terminal device, so as to ensure that the first terminal device can successfully access the network through the network device.
With reference to the first aspect, in certain implementations of the first aspect, after the network device determines that the first terminal device is switched from the online state to the offline state, the method further includes: the network equipment receives second access request information of second terminal equipment, wherein the second access request information is used for requesting the network equipment to distribute an IP address of the second terminal equipment for accessing the network equipment according to second access port information for the second terminal equipment, and the second terminal equipment is different from the first terminal equipment; the network device determines that second information of the second terminal device is the same as the first information, the second information includes a second MAC address and the second access port information, the second MAC address indicates the second terminal device, and the second access port information indicates information of a second port where the network device receives an access request of the second terminal device; and the network equipment allocates the first IP address to the second terminal equipment according to the second access request and the first corresponding relation.
In the above technical solution, the first information is the same as the second information. In the process that the first terminal device is switched from the online state to the offline state (i.e. in the process that the first terminal device is offline), the network device reserves the first IP address for the first terminal device according to the first information, that is, the state of the first IP address is a reserved state. After that, when the second terminal device requests to access the network through the network device, the network device may allocate the first IP address corresponding to the first information to the second terminal device according to the first information, so that the efficiency of accessing the network by the second terminal device can be improved.
With reference to the first aspect, in some implementations of the first aspect, the second access port information includes a second virtual local area network VLAN identifier and a second port identifier, where the second port identifier is used to indicate the second port, and the second VLAN identifier is used to indicate a broadcast domain to which the second port belongs.
In the foregoing technical solution, the second information may include a second MAC address, a second VLAN identifier, and a second port identifier. Therefore, after the second terminal device is switched from the online state to the offline state, the network device may reserve an IP address for the second terminal device according to the second MAC address, the second VLAN identifier, and the second port identifier.
With reference to the first aspect, in certain implementations of the first aspect, the second information further includes second access link information of the second terminal device, the second access link information indicating a physical location of the second terminal device.
In the foregoing technical solution, the second information may include a second MAC address, a second VLAN identifier, a second port identifier, and second access link information. Therefore, after the second terminal device is switched from the online state to the offline state, the network device may reserve an IP address for the second terminal device according to the second MAC address, the second VLAN identifier, the second port identifier, and the second access link information.
With reference to the first aspect, in certain implementations of the first aspect, the second access link information includes option82 option information, or the second access link information includes at least one of: option18 option information and option37 option information.
That is, the second access link information may include option82 option information. The second access link information may include option18 option information. The second access link information may include option37 option information. The second access link information may also include option18 option information and option37 options.
In the above technical solution, the second information may include a second MAC address, second access port information, and second access link information.
For example, when the second access link information is option82 option information, the second information may include a second MAC address, a second VLAN identifier, a second port identifier, and option82 option information. For example, when the second access link information is option18 option information, the second information may include a second MAC address, a second VLAN identification, a second port identification, and option18 option information.
With reference to the first aspect, in certain implementations of the first aspect, the second information further includes a DUID of the second terminal device.
In the above technical solution, the second information may include the second MAC address, the second access port information, the second access link information, and the DUID of the second terminal device.
Optionally, in some implementations, the second information may further include a second MAC address, second access link information, and a DUID of the second terminal device.
For example, the second information may include the second MAC address, option82 option information, and the DUID of the second terminal device. For example, the second information may include the second MAC address, option18 option information, and the DUID of the second terminal device. Optionally, in some implementations, the second information may further include a second MAC address, second access port information, and a DUID of the second end device.
For example, the second information may include a second MAC address, a second VLAN identification, a second port identification, and a DUID of the second end device.
Optionally, in some implementations, the second information may further include a second MAC address and second access port information.
For example, the second information may include a second MAC address, a second VLAN identification, and a second port identification.
Optionally, in some implementations, the second information may further include a second MAC address and second access link information.
For example, the second information may include the second MAC address, option18 option information and option37 option information, and the DUID of the second terminal device. For example, the second information may include the second MAC address, option18 option information, and the DUID of the second terminal device.
With reference to the first aspect, in some implementation manners of the first aspect, the allocating, by the network device, the first IP address to the second terminal device according to the second access request information and the first corresponding relationship includes: when the network device detects the first corresponding relationship and the state of the first IP address is a reserved state, allocating the first IP address to the second terminal device; the method further comprises the following steps: when the network device detects the first corresponding relationship and the state of the first IP address is an occupied state, a third IP address is allocated to the second terminal device; or when the network device does not detect the first corresponding relationship and the state of the first IP address is an occupied state, allocating the third IP address to the second terminal device; or when the network device does not detect the first corresponding relationship and the state of the first IP address is an unoccupied state, allocating the first IP address to the second terminal device; the third IP address is an IP address used for the second terminal device to access the network according to the second access port information, and the first IP address, the second IP address, and the third IP address are different.
In the above technical solution, the network device reserves the first IP address for the first terminal device according to the first information, that is, the state of the first IP address is a reserved state. When the first terminal device requests to access the network again through the network device, the network device may allocate the first IP address corresponding to the first information to the first terminal device according to the first information, that is, the state of the first IP address is updated from the reserved state to the occupied state. After that, if the second terminal device requests to access the network through the network device, the network device may successfully assign the first IP address or the third IP address to the second terminal device, so that it may be ensured that the second terminal device may successfully access the network through the network device.
With reference to the first aspect, in some implementation manners of the first aspect, after the network device detects the first corresponding relationship and allocates a third IP address to the second terminal device when the state of the first IP address is an occupied state, the method further includes: when the network device determines that the second terminal device is switched from the online state to the offline state at the first moment, and the first terminal device is switched from the online state to the offline state before the first moment, updating the first corresponding relationship to a second corresponding relationship, where the second corresponding relationship is a corresponding relationship between the first information and the third IP address, or a corresponding relationship between the second information and the third IP address; and the network equipment updates the state of the third IP address from the occupied state to the reserved state and updates the state of the first IP address from the occupied state to the unoccupied state.
In the above technical solution, the network device determines that the first information of the first terminal device is the same as the second information of the second terminal device, and the first IP address allocated to the first terminal device by the network device is different from the third IP address allocated to the second terminal device by the network device. When the two terminal devices are switched from the online state to the offline state, the network device may determine, according to the time of the first terminal device and the time of the second terminal device going offline, that the IP address corresponding to the first information or the second information is the first IP address, or may determine that the IP address corresponding to the first information or the second information is the third IP address.
With reference to the first aspect, in some implementation manners of the first aspect, after the network device detects the first corresponding relationship and allocates the first IP address to the second terminal device when the state of the first IP address is a reserved state, the method further includes: when the network device determines that the second terminal device is switched from the online state to the offline state at the second moment, and the first terminal device is switched from the online state to the offline state after the second moment, the first corresponding relation is not updated; the network equipment updates the state of the first IP address from the occupied state to the reserved state.
With reference to the first aspect, in certain implementations of the first aspect, the network device is a broadband access server, BRAS.
In a second aspect, a network device is provided, where the network device includes:
an obtaining unit, configured to obtain first information and a first internet protocol IP address of a first terminal device, where the first information includes a first media access control MAC address and first access port information, where the first MAC address indicates the first terminal device, the first access port information indicates information of a first port, where the network device receives an access request of the first terminal device, and the first IP address is an IP address, where the network device is assigned to the first terminal device and is used for the first terminal device to access the network; a determining unit, configured to determine a first correspondence relationship, where the first correspondence relationship is a correspondence relationship between the first information and the first IP address; the determining unit is further configured to determine, when the first terminal device is switched from the online state to the offline state, the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relationship.
With reference to the second aspect, in some implementations of the second aspect, the first access port information includes a first virtual local area network VLAN id and a first port id, where the first port id is used to indicate the first port, and the first VLAN id is used to indicate a broadcast domain to which the first port belongs.
With reference to the second aspect, in some implementations of the second aspect, the first information further includes first access link information of the first terminal device, the first access link information indicating a physical location of the first terminal device.
With reference to the second aspect, in some implementations of the second aspect, the first access link information includes option82 option information, or the first access link information includes at least one of the following information: option18 option information and option37 option information.
That is, the first access link information may include option82 option information. The first access link information may include option18 option information. The first access link information may include option37 option information. The first access link information may also include option18 option information and option37 options.
With reference to the second aspect, in certain implementations of the second aspect, the first information further includes a dynamic host configuration protocol unique identifier, DUID, of the first end device.
Optionally, in some implementations, the first information may further include the first MAC address, the first access link information, and the DUID of the first terminal device.
Optionally, in some implementations, the first information may further include the first MAC address, the first access port information, and the DUID of the first end device.
Optionally, in some implementations, the first information may further include the first MAC address and the first access port information.
Optionally, in some implementations, the first information may further include the first MAC address and the first access link information.
With reference to the second aspect, in certain implementations of the second aspect, the first information further includes a reservation duration, and the determining unit is further configured to: determining the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relation within the reserved period; the determination unit is further configured to: and deleting the first corresponding relation outside the reservation period, and updating the state of the first IP address corresponding to the first information from a reserved state to an unoccupied state.
With reference to the second aspect, in some implementations of the second aspect, the network device further includes a processing unit, and the obtaining unit is further configured to receive first access request information of the first terminal device, where the first access request information is used to request the network device to allocate, to the first terminal device, an IP address of the first terminal device to access the network device according to the first access port information; the processing unit is configured to: allocating the first IP address to the first terminal device according to the first access request information and the first corresponding relation; and updating the state of the first IP address from a reserved state to an occupied state.
With reference to the second aspect, in some implementations of the second aspect, the processing unit is further configured to: and when the first corresponding relation is detected and the state of the first IP address is a reserved state, allocating the first IP address to the first terminal equipment.
With reference to the second aspect, in some implementations of the second aspect, the processing unit is further configured to: when the first corresponding relation is not detected and the state of the first IP address is an unoccupied state, the first IP address is allocated to the first terminal equipment; or when the first corresponding relation is not detected and the state of the first IP address is an occupied state, allocating a second IP address to the first terminal equipment; the second IP address is an IP address used for the first terminal device to access the network according to the first access port information, and the second IP address is different from the first IP address.
With reference to the second aspect, in some implementations of the second aspect, the obtaining unit is further configured to receive second access request information of a second terminal device, where the second access request information is used to request the network device to allocate, to the second terminal device, an IP address of the second terminal device to access the network device according to second access port information, and the second terminal device is different from the first terminal device; the determination unit is further configured to: determining that second information of the second terminal device is the same as the first information, wherein the second information includes a second MAC address and the second access port information, the second MAC address indicates the second terminal device, and the second access port information indicates information of a second port of the network device that receives an access request of the second terminal device; the processing unit is further configured to: and allocating the first IP address to the second terminal device according to the second access request and the first corresponding relation.
With reference to the second aspect, in some implementations of the second aspect, the second access port information includes a second virtual local area network VLAN id and a second port id, the second port id is used to indicate the second port, and the second VLAN id is used to indicate a broadcast domain to which the second port belongs.
With reference to the second aspect, in some implementations of the second aspect, the second information further includes second access link information of the second terminal device, the second access link information indicating a physical location of the second terminal device.
With reference to the second aspect, in some implementations of the second aspect, the second access link information includes option82 option information, or the second access link information includes at least one of the following information: option18 option information and option37 option information.
That is, the second access link information may include option82 option information. The second access link information may include option18 option information. The second access link information may include option37 option information. The second access link information may also include option18 option information and option37 options.
With reference to the second aspect, in some implementations of the second aspect, the second information further includes a DUID of the second terminal device.
With reference to the second aspect, in some implementations of the second aspect, the processing unit is further configured to: when the first corresponding relation is detected and the state of the first IP address is a reserved state, the first IP address is distributed to the second terminal equipment;
the processing unit is further configured to: when the first corresponding relation is detected and the state of the first IP address is an occupied state, a third IP address is distributed to the second terminal equipment; or when the first corresponding relation is not detected and the state of the first IP address is an occupied state, allocating the third IP address to the second terminal equipment; or when the first corresponding relation is not detected and the state of the first IP address is an unoccupied state, the first IP address is allocated to the second terminal equipment; the third IP address is an IP address for the second terminal device to access the network according to the second access port information, and the first IP address, the second IP address, and the third IP address are different.
With reference to the second aspect, in some implementations of the second aspect, the determining unit is further configured to: determining that the second terminal device is switched from the online state to the offline state at a first moment, and determining that the first terminal device is switched from the online state to the offline state before the first moment; the processing unit is further configured to: updating the first corresponding relation to a second corresponding relation, wherein the second corresponding relation is the corresponding relation between the first information and the third IP address, or the corresponding relation between the second information and the third IP address; and updating the state of the third IP address from the occupied state to the reserved state, and updating the state of the first IP address from the occupied state to the unoccupied state.
With reference to the second aspect, in some implementations of the second aspect, the determining unit is further configured to: determining that the second terminal device is switched from the online state to the offline state at a second moment, and determining that the first terminal device is switched from the online state to the offline state after the second moment; the processing unit is further configured to: and updating the state of the first IP address from the occupied state to the reserved state.
With reference to the second aspect, in certain implementations of the second aspect, the network device is a broadband access server, BRAS.
In a third aspect, the present application provides a network device having the functionality to implement the method in any one of the possible implementations of the first aspect and the first aspect. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions.
In a fourth aspect, the present application provides a network device or other combined devices, components, etc. that may implement the functionality of the network device, including at least one processor and a communication interface. The at least one processor is configured to execute a computer program or instructions to enable the network device to implement the communication method in any one of the possible implementations of the first aspect and the first aspect.
Optionally, the network device further comprises at least one memory coupled to the at least one processor, the computer program or instructions being stored in the at least one memory. Wherein the memory may be integrated with the processor or provided separately from the processor.
In one implementation, the network device is a network device. When the network device is a network device, the communication interface may be a transceiver, or an input/output interface.
In another implementation, the network device is a chip or a system-on-a-chip. When the network device is a chip or a system of chips, the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or related circuit on the chip or the system of chips, and the like. A processor may also be embodied as a processing circuit or a logic circuit.
In another implementation, the network device is a chip or system of chips configured in the network device.
Alternatively, the transceiver may be a transmit-receive circuit. Alternatively, the input/output interface may be an input/output circuit.
In a fifth aspect, a computer-readable storage medium is provided for storing a computer program comprising instructions for performing the method of the first aspect above and any possible implementation manner of the first aspect above.
In a sixth aspect, a chip is provided that includes at least one processor and an interface; the at least one processor is configured to invoke and run a computer program, so that the chip executes the method in the first aspect and any possible implementation manner of the first aspect.
The chip may be a System On Chip (SOC), a baseband chip, and the like, where the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, and the like.
In a seventh aspect, a system is provided, which includes the network device according to the second, third or fourth aspect.
Drawings
Fig. 1 is a schematic diagram of a system architecture 100 suitable for use in the method of address reservation provided herein.
Fig. 2 is a schematic flow chart diagram of a method 100 of address reservation provided herein.
Fig. 3 is a schematic flowchart of a method 200 for allocating an IP address to a first terminal device by a network device according to first information.
Fig. 4 is a schematic flow chart of a method 300 for a network device to reserve an IP address for a first terminal device according to first information provided in the present application.
Fig. 5 is a schematic flow chart diagram of a method 400 of address reservation provided herein.
Fig. 6 is a schematic flow chart diagram of a method 500 of address reservation provided herein.
Fig. 7 is a schematic flow chart diagram of a method 600 of address reservation provided herein.
Fig. 8 is a schematic structural diagram of a network device 1000 provided in the present application.
Fig. 9 is a schematic structural diagram of a network device 1100 provided in the present application.
Fig. 10 is a schematic structural diagram of a network device 1200 provided in the present application.
Fig. 11 is a schematic structural diagram of a network system 1300 provided in the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
The terms "first," "second," "third," and the like in this application are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it is to be understood that "first," "second," and "third" do not have any logical or temporal dependency or limitation on the number or order of execution.
The specific form of the first terminal device and the second terminal device is not particularly limited in this application.
For example, the first terminal device and/or the second terminal device may be a mobile phone (mobile phone), a tablet (pad), a computer with wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety, a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a wireless local loop (wireless local), a wireless modem (wireless local), a wireless terminal device connected to a wireless network, a wireless terminal with wireless modem (wireless modem), a wireless terminal device connected to a public computing network (PDA) or other vehicle-mounted communication device, or a wireless network device with wireless processing function (5).
Wherein, wearable equipment also can be called as wearing formula smart machine, is the general term of using wearing formula technique to carry out intelligent design, developing the equipment that can dress to daily wearing, like glasses, gloves, wrist-watch, dress and shoes etc.. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable smart device includes full functionality, large size, and can implement full or partial functionality without relying on a smart phone, such as: smart watches or smart glasses and the like, and only focus on a certain type of application functions, and need to be used in cooperation with other devices such as smart phones, such as various smart bracelets for physical sign monitoring, smart jewelry and the like.
In addition, the first terminal device and/or the second terminal device may also be terminal devices in an internet of things (IoT) system. The IoT is an important component of future information technology development, and is mainly technically characterized in that articles are connected with a network through a communication technology, so that an intelligent network with man-machine interconnection and object interconnection is realized.
In practical applications, in order to improve the efficiency of accessing the terminal device to the network, generally, in the process of switching the terminal device from the online state to the offline state (that is, the terminal device is offline), the configuration network device reserves an IP address used by the terminal device before the terminal device is offline for the terminal device according to the MAC address of the terminal device and a Dhcp Unique Identifier (DUID) of the terminal device. Therefore, when the terminal device requests to go online again, the network device may assign a previously reserved IP address to the terminal device so that the terminal device may access the network using the reserved IP address.
However, in some special scenarios (e.g., scenarios where one MAC address corresponds to multiple sessions), there may be cases where the MAC addresses of different terminal devices are the same, and the above-mentioned didds of different terminal devices are also the same. In this case, the existing address reservation method cannot satisfy the requirement of reserving address resources for the terminal device. For example, in a scenario where one MAC address corresponds to a plurality of sessions, the MAC address of terminal apparatus #1 and the MAC address of terminal apparatus #2 are the same and are MAC address #1, and the DUID of terminal apparatus #1 and the DUID of terminal apparatus #2 are both the same and are DUID #1. When the network device receives the network access requests of the terminal device #1 and the terminal device #2 at the same time, because the MAC addresses #1 and the DUID #1 are in a one-to-two relationship with the terminal device, the network device cannot successfully reserve an IP address for the terminal device #1 or the terminal device #2 (for example, an IP address used when the terminal device #1 accesses the network this time, or an IP address used when the terminal device #2 accesses the network this time).
The application provides an address reservation method and network equipment, which can meet the requirement of reserving address resources for terminal equipment.
For ease of understanding, a system architecture suitable for use with embodiments of the present application will first be described in detail with reference to fig. 1.
Fig. 1 is a schematic diagram of a system architecture 100 suitable for use in the method of address reservation provided herein. As shown in fig. 1, the system architecture 100 may include a terminal device 110, a terminal device 111, and a network device 130.
Specifically, the method for accessing the terminal device 110 and/or the terminal device 111 to the network device through the two-layer network is the same as the existing method, and details are not repeated here.
Specifically, after network device 130 receives an access request from terminal device 110 and/or terminal device 111, network device 130 may assign the locally stored IP address to terminal device 110 and/or terminal device 111.
The IP address locally stored in the network device 130 may be understood as an IP address stored in a local address pool of the network device 130.
In addition, the network device 130 may be a network device accessing an internet protocol version 6 (ipv 6) network. The IPv6 Network may include a remote authentication in user service (RADIUS) server, a Next Generation Network (NGN) server, and the like.
In the embodiment of the present application, the specific type of the network device 130 is not limited. In one example, the network device 130 may be a broadband access server (BRAS). In another example, the network device 130 may also be other devices including BRAS.
It should be understood that fig. 1 is illustrative only and does not constitute any limitation on the present application. For example, in some scenarios, a greater number of terminal devices or a greater number of network devices, etc. may also be included in the system architecture 100.
The address reservation method provided in the present application is described in detail below with reference to fig. 2 to 7.
Fig. 2 is a schematic flow chart diagram of a method 100 of address reservation provided herein. As shown in fig. 2, the method 100 may include steps 110 to 130, and the steps 110 to 130 are described in detail below.
After the first terminal device accesses the network through the network device, it can be understood that, after the network device allocates the IP address to the first terminal device, the first terminal device accesses the network through the network device by using the IP address allocated by the network device. It is to be understood that the IP address assigned by the network device to the first terminal device may be one IP address (e.g., IPv6 address) in the local address pool of the network device.
As an example, the first terminal device may be terminal device 110 in fig. 1. The first terminal device may also be terminal device 111 in fig. 1. The network device may be network device 130 in fig. 1. In some implementations, the network device 130 may be a BRAS device. In other implementations, the network device 130 may be other devices including BRAS devices.
In some embodiments, the first information may include a first media access control MAC address indicating the first terminal device and first access port information indicating information of a first port on which the network device receives an access request of the first terminal device, the first IP address being an IP address assigned by the network device to the first terminal device and used for the first terminal device to access the network.
The first access port information may include a first Virtual Local Area Network (VLAN) identifier and a first port identifier, where the first port identifier is used to indicate a first port, and the first VLAN identifier is used to indicate a broadcast domain to which the first port belongs. It will be appreciated that when the first access port information includes a first VLAN identification and a first port identification, the first information may include a first MAC address, a first VLAN identification and a first port identification.
Optionally, in some implementations, the first IP address may be an IPv6 address.
Optionally, in other implementations, the first IP address may be an Ipv6 address prefix.
In the foregoing technical solution, the first information may include a first MAC address, a first VLAN id, and a first port id.
Optionally, the first information may further include first access link information of the first terminal device, where the first access link information indicates a physical location of the first terminal device. The first access link information includes option82 option information, or the first access link information includes at least one of the following information: option18 option information and option37 option information. That is, the first access link information provided by the present application may include option82 option information. The first access link information may also include option18 option information. The first access link information may also include option37 option information. The first access link information may also include option18 option information and option37 options.
In the above technical solution, the first information may include the first MAC address, the first access port information, and the first access link information.
For example, when the first access link information includes option82 option information, the first information may include a first MAC address, a first VLAN identification, first port information, and option82 option information. For example, when the first access link information includes option18 option information, the first information may include a first MAC address, a first VLAN identification, first port information, and option18 option information. For example, when the first access link information includes option18 option information and option37 option information, the first information may include a first MAC address, a first VLAN identification, first port information, and option18 option information and option37 option information.
Optionally, the first information further includes a dynamic host configuration protocol unique identifier, DUID, of the first terminal device.
In the above technical solution, the first information may include the first MAC address, the first access port information, the first access link information, and the DUID of the first terminal device.
For example, when the first access link information includes option82 option information, the first information may include a first MAC address, a first VLAN identification, a first port identification, option82 option information, and a DUID of the first end device.
It should be understood that the form of the first information provided in the present application is not limited to the above.
In other embodiments, the first information may also include only the first MAC address and the first access port information.
For example, the first information may include a first MAC address, a first VLAN identification, and first port information.
Optionally, the first information may further include only the first MAC address, the first access port information, and the DUID of the first end device.
In still other embodiments, the first information may also include only the first MAC address and the first access link information.
For example, when the first access link information includes option82 option information, the first information may include a first MAC address and option82 option information. For example, when the first access link information includes option37 option information, the first information may include a first MAC address and option37 option information.
Optionally, the first information may further include only the first MAC address, the first access link information, and the DUID of the first terminal device.
Specifically, after the network device obtains the first information and the first IP address, the network device may determine the first corresponding relationship.
It can be understood that, before the first terminal device switches from the online state to the offline state, the first terminal device is in the online state, and the state of the first IP address is the occupied state. In other words, the first terminal device occupies the first IP address before the first terminal device switches from the online state to the offline state.
Optionally, the first information may further include a reservation term. The reservation duration is used for indicating the duration of the network device for reserving the first IP address for the first terminal device.
In some embodiments, the determining, by the network device, the state of the first IP address corresponding to the first information as the reserved state according to the first correspondence includes:
in the reservation period, the network equipment determines the state of the first IP address corresponding to the first information as a reservation state according to the first corresponding relation;
further comprising:
and the network equipment deletes the first corresponding relation and updates the state of the first IP address corresponding to the first information from the reserved state to the unoccupied state outside the reserved period.
In the above technical solution, the network device may determine, according to the reservation duration included in the first information, whether to reserve the first IP address corresponding to the first information for the first terminal device when the first terminal device is switched from the online state to the offline state, so as to avoid a situation of network resource waste caused when the first IP address is in the reserved state for a long time.
In the embodiment of the present application, the manner of configuring the reservation duration and the duration length of the reservation duration are not specifically limited.
In some implementations, the network device may determine a reservation duration for reserving the first IP address for the first terminal device based on the current network state.
In other implementations, the network device may be manually configured to reserve the reservation duration of the first IP address for the first terminal device. For example, the reservation period may be 5, 10, 15, 20, or 30 hours, etc. Alternatively, the duration of the reservation duration may be other values. This is not a limitation of the present application.
Optionally, after the network device determines that the first terminal device is switched from the online state to the offline state, the method further includes:
the network equipment receives first access request information of the first terminal equipment, wherein the first access request information is used for requesting the network equipment to distribute an IP address of the first terminal equipment for accessing the network equipment according to the first access port information;
the network equipment allocates a first IP address for the first terminal equipment according to the first access request information and the first corresponding relation;
the network equipment updates the state of the first IP address from the reserved state to the occupied state.
The network device allocates a first IP address to the first terminal device according to the first access request information and the first corresponding relationship, including:
and when the network equipment detects the first corresponding relation and the state of the first IP address is a reserved state, allocating the first IP address to the first terminal equipment.
In the above technical solution, the network device reserves the first IP address corresponding to the first information for the first terminal device after the first terminal device is offline, and when the first terminal device requests to go online through the network device again, the network device may allocate the first IP address to the first terminal device according to the detected first corresponding relationship (i.e., the corresponding relationship between the first information and the first IP address), so as to improve the efficiency of the first terminal device accessing the network.
Optionally, in some embodiments, after the network device receives the first access request information of the first terminal device, if the network device does not detect the first corresponding relationship, the network device may perform the following operations:
when the network equipment does not detect the first corresponding relation and the state of the first IP address is an unoccupied state, allocating the first IP address for the first terminal equipment; or
When the network equipment does not detect the first corresponding relation and the state of the first IP address is an occupied state, distributing a second IP address for the first terminal equipment;
the second IP address is used for the first terminal equipment to access the network according to the first access port information, and the second IP address is different from the first IP address.
In the embodiment of the present application, the network device does not detect the first corresponding relationship, which may be understood as that the network device does not detect the first corresponding relationship outside the reservation period. In other words, the time from when the network device determines the first corresponding relationship to when the network device receives the first access request is greater than the reservation duration, in which case the network device deletes the first corresponding relationship, so the network device will not detect the first corresponding relationship outside the reservation duration.
Optionally, after the network device determines that the first terminal device is switched from the online state to the offline state, the method further includes:
the network equipment receives second access request information of second terminal equipment, the second access request information is used for requesting the network equipment to distribute an IP address of the second terminal equipment for accessing the network equipment to the second terminal equipment according to the second access port information, and the second terminal equipment is different from the first terminal equipment;
the network equipment determines that second information of the second terminal equipment is the same as the first information, the second information comprises a second MAC address and second access port information, the second MAC address indicates the second terminal equipment, and the second access port information indicates a second port information of an access request of the second terminal equipment received by the network equipment;
and the network equipment allocates a first IP address for the second terminal equipment according to the second access request and the first corresponding relation.
The network device may allocate the first IP address to the second terminal device according to the second access request information and the first corresponding relationship, including: and when the network equipment detects the first corresponding relation and the state of the first IP address is a reserved state, allocating the first IP address to the second terminal equipment.
The second access port information may include a second VLAN identifier and a second port identifier, where the second port identifier is used to indicate a second port, and the second VLAN identifier is used to indicate a broadcast domain to which the second port belongs.
Optionally, the second information further includes second access link information of the second terminal device, where the second access link information indicates a physical location of the second terminal device. The second access link information includes option82 option information, or the second access link information includes at least one of the following information: option18 option information and option37 option information. That is, the second access link information may include option82 option information. The second access link information may include option18 option information. The second access link information may include option37 option information. The second access link information may also include option18 option information and option37 options.
In the above technical solution, the second information may include a second MAC address, second access port information, and second access link information.
The optional second information may also include the DUID of the second terminal device.
In the above technical solution, the second information may include the second MAC address, the second access port information, the second access link information, and the DUID of the second terminal device.
For example, when the second access link information includes option82 option information, the second information may include a second MAC address, a second VLAN identification, a second port identification, option82 option information, and a DUID of the second end device. For example, when the second access link information includes option37 option information, the second information may include a second MAC address, a second VLAN identification, a second port identification, option37 option information, and a DUID of the second end device.
It should be understood that the form of the second information provided in the present application is not limited to the above.
In other embodiments, the second information may also include only the second MAC address and the second access port information.
For example, the second information may include a second MAC address, a second VLAN identification, and second port information.
Optionally, the second information may further include only the second MAC address, the second access port information, and the DUID of the second end device.
In still other embodiments, the second information may also include only the second MAC address and the second access link information.
For example, when the second access link information includes option82 option information, the second information may include a second MAC address and option82 option information. For example, when the second access link information includes option18 option information, the second information may include a second MAC address and option18 option information.
Optionally, the second information may further include only the second MAC address, the second access link information, and the DUID of the second terminal device.
In the embodiment of the present application, the second information of the second terminal device is the same as the first information, and it can be understood that the type of the information included in the first information is the same as the type of the information included in the second information, and the contents corresponding to the two pieces of information of the same type are the same.
For example, the first information includes a first MAC address, a first VLAN identifier and a first port identifier, the second information includes a second MAC address, a second VLAN identifier and a second port identifier, and the first MAC address is the same as the second MAC address, the first VLAN identifier is the same as the second VLAN identifier, and the first port identifier is the same as the second port identifier. In this case, it may be determined that the second information is the same as the first information.
In the above technical solution, when the network device determines that the first information of the first terminal device is the same as the second information of the second terminal device, and the network device detects that the first IP address reserved according to the first information exists and the state of the first IP address is the reserved state, the network device may allocate the first IP address to the second terminal device.
Optionally, when the network device detects the first corresponding relationship and the state of the first IP address is the occupied state, a third IP address is allocated to the second terminal device.
In this embodiment of the application, when the network device detects the first corresponding relationship and the state of the first IP address is an occupied state, it may be understood that the first IP address may be in a state occupied by the first terminal device. Specifically, after the network device receives a first access request of the first terminal device, the network device may allocate a first IP address to the first terminal device according to the first access request and the first corresponding relationship, and the first terminal device may use the first IP address to access the network through the network device. In this case, the first IP address is in a state occupied by the first terminal device.
The third IP address is used for the second terminal device to access the network according to the second access port information, and the first IP address is different from the third IP address.
In the above technical solution, when the network device determines that the first information of the first terminal device is the same as the second information of the second terminal device, and the network device detects that the first IP address reserved according to the first information exists and the state of the first IP address is the occupied state, the network device may allocate the third IP address in the unoccupied state to the second terminal device.
Optionally, after the network device obtains the second access request information, if the network device does not detect the first corresponding relationship, the network device may further perform the following operations:
when the network equipment does not detect the first corresponding relation and the state of the first IP address is an occupied state, distributing a third IP address for the second terminal equipment; or alternatively
When the network equipment does not detect the first corresponding relation and the state of the first IP address is an unoccupied state, allocating the first IP address for the second terminal equipment;
the third IP address is used for the second terminal device to access the network according to the second access port information, and the first IP address, the second IP address and the third IP address are different.
In this embodiment of the application, when the network device does not detect the first corresponding relationship and the state of the first IP address is an occupied state, it can be understood that the first IP address may be in a state occupied by any terminal device except the second terminal device. For example, in this case, the first IP address may be in a state occupied by the first terminal device, or the first IP address may be in a state occupied by a third terminal device, where the third terminal device, the second terminal device, and the first terminal device are different terminal devices.
In the above technical solution, when the network device detects that the first IP address reserved according to the first information exists and the state of the first IP address is the occupied state, the network device may allocate the third IP address in the unoccupied state to the second terminal device, so that the second terminal device may successfully access the network through the network device.
Optionally, in some embodiments, after the network device detects the first corresponding relationship and allocates the third IP address to the second terminal device when the state of the first IP address is the occupied state, the method further includes:
when the network device determines that the second terminal device is switched from the online state to the offline state at the first moment and the first terminal device is switched from the online state to the offline state before the first moment, updating the first corresponding relationship into a second corresponding relationship, wherein the second corresponding relationship is a corresponding relationship between the first information and the third IP address or a corresponding relationship between the second information and the third IP address;
and the network equipment updates the state of the third IP address from the occupied state to the reserved state and updates the state of the first IP address from the occupied state to the unoccupied state.
Optionally, when the network device detects the first corresponding relationship and the state of the first IP address is the reserved state, after allocating the first IP address to the second terminal device, the method further includes:
when the network device determines that the second terminal device is switched from the online state to the offline state at the second moment and the first terminal device is switched from the online state to the offline state after the second moment, the first corresponding relation is not updated;
and the network equipment updates the state of the first IP address from the occupied state to the reserved state.
According to the address reservation method provided by the application, when the MAC address of the first terminal device is the same as the MAC address of the second terminal device, and the DUID of the first terminal device is the same as the DUID of the second terminal device, the network device can further identify the first terminal device and the second terminal device according to the first access port information in the first information and the second access port information in the second information. In this case, the network device may successfully reserve the IP address corresponding to the first information for the first terminal device and successfully reserve the IP address corresponding to the second information for the second terminal device. The address reservation method can better meet the requirement of reserving address resources for the terminal equipment.
The following describes a procedure of allocating or reserving an IP address for the first terminal device by the network device according to the first information in the method 100, with reference to fig. 3 and fig. 4, respectively. It should be understood that fig. 3 and 4 are only schematic and do not limit the present application in any way. For example, the procedure of allocating or reserving an IP address for the second terminal device by the network device according to the second information in the method 100 is also applicable to the procedures shown in fig. 3 and 4.
Referring now to fig. 3, a process of the network device allocating an IP address to the first terminal device according to the first information when the first terminal device is online through the network device will be described.
Fig. 3 is a schematic flow chart of a method 200 for a network device to assign an IP address to a first terminal device according to first information. As shown in fig. 3, the method 200 may include steps 210 to 251, which are described in detail below with respect to steps 210 to 251. It should be understood that fig. 3 is only an illustration and does not constitute any limitation to the method for the network device to assign the IP address to the first terminal device according to the first information in the present application.
Specifically, when the network device queries that the IP address reserved for the first terminal device exists according to the first information, step 230 is executed after step 220; otherwise, step 240 is performed after step 220.
In step 230, the network device determines that the IP address reserved for the first terminal device based on the first information is the first IP address, and the state of the first IP address is in a reserved state.
Specifically, when the network device determines that the IP address reserved for the first terminal device based on the first information is the first IP address and the state of the first IP address is in the reserved state, step 250 is executed after step 230; otherwise, step 240 is performed after step 230.
In step 240, the network device informs the first terminal device that the network can be accessed using the second IP address in the unoccupied state.
In the embodiment of the present application, the execution order of step 230 and step 240 is not particularly limited. For example, after step 220, step 230 may be performed before step 240. Alternatively, after step 220, step 240 may be performed before step 230.
It is to be understood that after step 240, step 241 may also be performed.
And 241, the first terminal device accesses the network through the network device by using the second IP address, and updates the state of the second IP address from the unoccupied state to the occupied state.
In step 250, the network device informs the first terminal device that the first terminal device can access the network through the network device using the first IP address.
It should be understood that the first information in steps 210 to 251 may be any one of the first information in the method 100, for example, the first information may include a first MAC address, a first VLAN id and first port information, which is not described in detail herein.
With reference to fig. 4, a flowchart of when the first terminal device goes offline through the network device, the network device reserving an IP address for the first terminal device according to the first information is described.
Fig. 4 is a schematic flow chart of a method 300 for a network device to reserve an IP address for a first terminal device according to first information provided in the present application. As shown in fig. 4, the method 300 may include steps 310 through 370, which are described in detail below with respect to steps 310 through 370.
In step 310, the network device configures a function of reserving a first IP address for the first terminal device based on the first information, and the first terminal device requests to disconnect the network accessed through the network device.
It is understood that the method of step 310 is the same as the existing method of requesting a disconnected network by a terminal device, and is not described in detail here.
In step 320, the network device determines whether the first information includes a reservation period.
Specifically, when the network device determines that the first information includes the reservation period, step 330 is executed after step 320; otherwise, step 340 is performed.
In step 330, the network device reserves the first IP address corresponding to the first information to the first terminal device, and records the reservation duration.
In step 331, the network device updates the state of the first IP address from the occupied state to the reserved state.
In step 340, the network device reserves a first IP address corresponding to the first information to the first terminal device.
In the embodiment of the present application, the execution order of step 340 and step 330 is not particularly limited. For example, after step 320, step 330 may be performed before step 340. Alternatively, after step 340, step 330 may be performed before step 330.
After step 340, step 341 may also be performed.
In step 341, the network device updates the state of the first IP address from the occupied state to the reserved state.
At step 350, the network device determines whether the reservation period has been exceeded.
Specifically, when the network device determines that the reservation period is exceeded, step 360 is executed; otherwise, step 370 is performed.
In step 360, the network device updates the state of the first IP address from the reserved state to the unoccupied state.
In the embodiment of the present application, the execution order of step 360 and step 370 is not particularly limited. For example, after step 350, step 360 may be performed before step 370. Alternatively, after step 350, step 370 may be performed before step 360.
In step 370, the network device does not update the status of the first IP address, i.e. the status of the first IP address is a reserved status.
The first information in steps 310 to 370 may be any one of the first information in the method 100, for example, the first information may include a first MAC address, a first VLAN identifier, first port information, and a reservation duration, which are not described in detail herein.
It should be understood that fig. 4 is only an illustration and does not constitute any limitation to the method for the network device to reserve the IP address for the first terminal device according to the first information in the present application. For example, in some embodiments, the first information may also not include a reservation period, at which point the network device only needs to perform steps 310, 320, 340, and 341. That is, in the case where the first information does not include the reservation period, the above-described step 330, step 331, step 350, step 360 are optional steps.
The method for address reservation and the system architecture suitable for the method provided by the present application are specifically described above with reference to fig. 1 to 4. In the following, 3 specific embodiments of the address reservation method provided by the present application are described with reference to fig. 5 to 7.
Fig. 5 is a schematic flow chart diagram of a method 400 of address reservation provided herein. As shown in fig. 5, method 400 may include steps 410 through 450, which are described below with respect to steps 410 through 450.
In step 410, the terminal device 110 (i.e., an example of a first terminal device in the method 100, the method 200, or the method 300) accesses the IP network through the network device 130, and the network device 130 (i.e., an example of a network device in the method 100, the method 200, or the method 300) obtains first information and an IP address #1 (i.e., an example of a first IP address in the method 100, the method 200, or the method 300), where the first information includes a first MAC, a first VLAN identifier, a first port identifier, and a reservation term.
After the terminal device 110 accesses the network through the network device 130, it can be understood that after the network device 130 assigns the IP address to the terminal device 110, the terminal device 110 accesses the network through the network device 130 by using the IP address assigned by the network device 130. It is understood that the IP address assigned by network device 130 to end device 110 may be an IP address (e.g., an IPv6 address) in a pool of local addresses for network device 130. The network device 130 may be a BRAS device, among others.
In an embodiment of the present application, the first information may include the first MAC, the first VLAN identifier, the first port identifier, and the reservation term. For a detailed description of the first MAC, the first VLAN identifier, the first port identifier, and the reservation period, reference may be made to the method 100, and details are not repeated here.
IP address #1 may be an IP address. IP address #1 may also be an IP address prefix.
At step 420, the network device 130 determines a first correspondence.
Here, the first correspondence may be understood as a correspondence between the first information and the IP address #1.
After the network device 130 acquires the first information and the IP address #1, the network device 130 may determine the first corresponding relationship.
Step 430, when the network device 130 determines that the terminal device 110 is switched from the online state to the offline state within the reservation duration, the state of the IP address #1 corresponding to the first information is determined as the reserved state according to the first corresponding relationship.
It should be understood that, outside the reservation period, the network device 130 may delete the first correspondence and update the state of the IP address #1 corresponding to the first information from the reserved state to the unoccupied state.
In step 440, the network device 130 receives the first access request information sent by the terminal device 110.
The first access request information is used to request the network device 130 to allocate an IP address of the terminal device 110 to access the network device 130 according to the first access port information to the terminal device 110.
Step 450, in the reserved period, the network device 130 allocates the IP address #1 to the terminal device 110 according to the first access request information and the first corresponding relationship, and updates the state of the IP address #1 to the occupied state.
Within the reservation period, it can be understood that the time from the time when the network device determines the first corresponding relationship to the time when the network device receives the first access request sent by the terminal device 110 is less than the reservation period.
Within the reservation period, the network device 130 may allocate an IP address #1 to the terminal device 110 according to the first access request information and the first corresponding relationship, which specifically includes: when the network device 130 detects the first mapping relationship and the state of the IP address #1 is the reserved state, the network device 130 allocates the IP address #1 to the terminal device 110.
Optionally, if the network device 130 determines that the time corresponding to the time when the first access request information is received is outside the reserved time limit, the network device 130 may further allocate an IP address to the terminal device 110 according to the first access request.
Specifically, if the network device 130 determines that the state of the IP address #1 is an unoccupied state outside the reserved period, the network device 130 may allocate the IP address #1 to the terminal device 110 according to the first access request, and update the state of the IP address #1 to an occupied state.
Specifically, if the network device 130 determines that the state of the IP address #1 is the occupied state outside the reserved period, the network device 130 may allocate a second IP address to the terminal device 110 according to the first access request, and update the state of the second IP address to the occupied state, where the IP address #1 and the second IP address are different IP addresses.
Outside the reservation duration, it may be understood that the time from the time when the network device determines the first corresponding relationship to the time when the network device receives the first access request sent by terminal device 110 is greater than the reservation duration.
It should be understood that fig. 5 is illustrative only and does not constitute any limitation to the present application. For example, the first information may include the first MAC, the first VLAN identification, the first port identification, the DUID of end device 110, and the reservation term. For example, the first information may include the first MAC, the first access link information, and a reservation period. For example, the first information may include the first MAC, the first access link information, and option82 option information. For example, the first information may include the first MAC, the first access link information, and option37 option information. Terminal device 110 may also be, for example, terminal device 111 in fig. 1.
According to the address reservation method provided in the embodiment of the present application, after the terminal device 110 goes offline, the network device may reserve, for the terminal device 110, the IP address #1 used by the terminal device 110 before the offline according to the first information. After that and within the reservation period, when the network device 130 receives the on-line request of the terminal device 110, the network device 130 can more accurately identify the terminal device 110 according to the first information and allocate the IP address #1 in the reserved state to the terminal device 110, so that the efficiency of accessing the network by the terminal device 110 can be improved.
Fig. 6 is a schematic flow chart diagram of a method 500 of address reservation provided herein. As shown in fig. 6, method 500 may include steps 510 through 570, which are described below with respect to steps 510 through 570.
In step 510, after the terminal device 110 (i.e., an example of the first terminal device in the method 100, the method 200, or the method 300) accesses the IP network through the network device 130 (i.e., an example of the network device in the method 100, the method 200, or the method 300), the network device 130 obtains first information and an IP address #1 (i.e., an example of the first IP address in the method 100, the method 200, or the method 300), where the first information includes a first MAC address, a first VLAN identifier, a first port identifier, and a reservation term.
In step 520, the network device 130 determines a first correspondence.
In step 530, when the network device 130 determines that the terminal device 110 is switched from the online state to the offline state, the state of the IP address #1 corresponding to the first information is determined as the reserved state according to the first corresponding relationship.
In step 540, the network device 130 receives the first access request information sent by the terminal device 110.
In step 550, the network device 130 allocates the IP address #1 to the terminal device 110 according to the first access request information and the first corresponding relationship, and updates the state of the IP address #1 to the occupied state.
In step 560, the network device 130 receives the second access request message sent by the terminal device 110.
In step 570, the network device 130 allocates IP address #2 to the terminal device 111 according to the second access request information and the first corresponding relationship.
For a specific implementation manner of each step in the above steps 510 to 570, reference may be made to corresponding contents of the method 100 and/or the method 400, and details are not described here again.
It should be understood that fig. 6 is illustrative only and does not constitute any limitation to the present application. For example, the first information may include the first MAC, the first VLAN identification, the first port identification, the DUID of end device 110, and the reservation term. For example, a greater number of terminal devices 111 and/or a greater number of terminal devices 110 may also be included. For example, the option82 option information in the method 500 may be replaced by option37 option information or option18 option information. For example, the option82 option information in the method 500 may be replaced by option37 option information and option18 option information.
According to the address reservation method provided in the embodiment of the present application, after the terminal device 110 goes offline, the network device may reserve, for the terminal device 110, the IP address #1 used by the terminal device 110 before the offline according to the first information. After that, when the network device 130 receives the online request of the terminal device 111, and the network device 130 determines that the second information of the terminal device 111 is the same as the first information and the status of the IP address #1 is the reserved status, the network device 130 may allocate the IP address #1 in the reserved status to the terminal device 111, so that the efficiency of accessing the network by the terminal device 111 may be improved.
In some special scenarios, for example, in the scenario of fig. 1 where the MAC address of terminal device 110 and the MAC address of terminal device 111 are both the same and are MAC address #1, and the DUID of terminal device 110 and the DUID of terminal device 111 are both the same and are DUID #1. Under the condition that the function that the network device 130 can reserve the IP address according to the MAC address #1 and the DUID #1 is configured, the state of the terminal device 110 is in an online state, the terminal device 111 requests the network device 130 to allocate the IP address, the network device 130 inquires that the IP address reserved based on the MAC address #1 and the DUID #1 is the IP address #1 according to the MAC address #1 and the DUID #1, and when the state of the IP address #1 is an occupied state, the existing address reservation method is adopted, the network device 130 cannot successfully allocate the IP address to the terminal device 111, so that the terminal device 111 cannot successfully go online through the network device 130, and the terminal device 111 cannot normally work online.
In the address reservation method provided in the embodiment of the application, the first information may also only include the first MAC address and the DUID of the terminal device 110, and the network device 130 may successfully allocate the IP address to the terminal device 111 according to the first information when the terminal device 110 is online through the network device 130 and the state of the terminal device 110 is the online state.
Referring to fig. 7, a scheme of how the network device successfully allocates the IP address to the terminal device 111 when the terminal device 110 is online through the network device 130 and the state of the terminal device 110 is online, based on the MAC address and the DUID of the terminal device, according to the address reservation method provided in the present application will be described in detail.
Fig. 7 is a schematic flow chart diagram of a method 600 of address reservation provided herein. As shown in fig. 7, the method 600 may include steps 610 through 680, and steps 610 through 680 are described below.
In step 610, after the terminal device 110 (i.e., an example of the first terminal device in the method 100, the method 200, or the method 300) accesses the IP network through the network device 130 (i.e., an example of the network device in the method 100, the method 200, or the method 300), the network device 130 acquires first information and an IP address #1 (i.e., an example of the first IP address in the method 100, the method 200, or the method 300), where the first information includes the first MAC address and the DUID of the terminal device 110.
At step 620, the network device 130 determines a first correspondence.
Step 630, when the network device 130 determines that the terminal device 110 is switched from the online state to the offline state, the state of the IP address #1 corresponding to the first information is determined as the reserved state according to the first corresponding relationship
In step 640, network device 130 receives the first access request message from terminal device 110.
The first access request information is used to request the network device 130 to allocate an IP address of the terminal device 110 for the terminal device 110 to access the network device 130 according to the first information. The first information of the terminal device 110 may include the first MAC address and the DUID of the terminal device 110. For a detailed description of the first MAC address and the DUID of the terminal device 110, reference may be made to the method 100, and details are not described here.
In step 650, the network device 130 allocates the IP address #1 to the terminal device 110 according to the first access request information and the first corresponding relationship, and updates the state of the IP address #1 from the reserved state to the occupied state.
In step 660, the network device 130 receives the second access request message of the terminal device 111 (i.e. an example of the second terminal device in the method 100, the method 200 or the method 300 described above).
The second access request information is used to request the network device 130 to allocate the IP address of the terminal device 111, which is accessed by the terminal device 111 according to the second information, to the terminal device 111. The second information of the terminal device 111 may include the second MAC address and the DUID of the terminal device 111. For a detailed description of the second MAC address and the DUID of the terminal device 111, reference may be made to the method 100, which is not described in detail here.
In step 670, the network device 130 allocates an IP address #2 (i.e., an example of the third IP address in the method 100, the method 200, or the method 300) to the terminal device 111 according to the second access request information and the first corresponding relationship.
Specifically, the network device 130 allocates the third IP address to the terminal device 111 according to the second access request information and the first corresponding relationship, and specifically includes:
when the network device 130 detects the first corresponding relationship and the state of the IP address #1 is the occupied state, the IP address #2 is allocated to the first terminal device.
The IP address #2 is an unoccupied address, the IP address #2 is different from the IP address #1, and the first correspondence relationship can be understood as a correspondence relationship between the IP address #1 or the IP address #2 and the first information. The first correspondence relationship may also be understood as a correspondence relationship between IP #1 or IP #2 and the second information.
In step 680, the network device 130 compares the time when the terminal device 110 is switched from the online state to the offline state with the time when the terminal device 111 is switched from the online state to the offline state, and determines whether to update the first corresponding relationship to the second corresponding relationship.
In some implementations, when the network device 130 determines that the terminal device 111 is switched from the online state to the offline state at the first time and the terminal device 110 is switched from the online state to the offline state before the first time, the first correspondence is updated to a second correspondence, where the second correspondence is a correspondence between the first information and the IP address #2 or a correspondence between the second information and the IP address # 2; and the network device 130 updates the state of the IP address #2 from the occupied state to the reserved state and updates the state of the first IP address from the occupied state to the unoccupied state.
In other implementations, when the network device 130 determines that the second terminal device is switched from the online state to the offline state at the second time, and the terminal device 110 is switched from the online state to the offline state after the second time, the first corresponding relationship is not updated; and the network device 130 updates the state of the first IP address from the occupied state to the reserved state.
In the embodiment of the present application, the first time and the second time are not particularly limited. For example, the first time may be a time before the second time. Alternatively, the first time may be a time subsequent to the second time.
It should be understood that fig. 7 is illustrative only and does not constitute any limitation to the present application. For example, the first information may further include a lease duration. For example, the first information may also be any one of the first information mentioned in the method 100 of the present application.
Compared with the prior art, according to the address reservation method provided in the embodiment of the present application, when the network device 130 allocates the reserved IP address #1 to the terminal device 110 according to the first corresponding relationship, and the terminal device 110 is switched from the offline state to the online state, when the network device 130 receives the terminal device 111 access request having the same MAC address and the same DUID as the terminal device 110, the network device 130 may still allocate the unused IP address #2 to the terminal device 111, where the IP address #2 is different from the IP address #1.
A method for address reservation and a system architecture suitable for the method provided in the present application are described in detail above with reference to fig. 1 to 7. The network device provided by the present application, and the hardware structure of the network device are described in detail below with reference to fig. 8 to 11. It is to be understood that the description of the method embodiments corresponds to the description of the apparatus embodiments, and therefore reference may be made to the preceding method embodiments for parts not described in detail.
Fig. 8 is a schematic structural diagram of a network device 1000 provided in the present application, where the network device 1000 has any functions of the network device in the methods 100, 200, and 300 or the network device 130 in the methods 400 and 500. As shown in fig. 8, the network device 1000 includes an obtaining unit 1010, configured to perform step 440, step 540, step 640, step 660, or the like of obtaining the first information and the first IP address in step 110; optionally, the network device 1000 further includes: a determining unit 1020, configured to perform step 120, step 130, step 220, step 230, step 420, step 520, step 630, or the like; optionally, the network device 1000 further includes: the processing unit 1040 is configured to execute a relevant step of updating the state of the second IP address in the above steps, or a relevant step of accessing the terminal device to the network through the network device in the above steps, and the like.
The network device 1000 corresponds to the network device in the above method embodiment, such as: for details of the network device 130, modules in the network device 1000, and other operations and/or functions described above, for implementing various steps and methods implemented by the network device in the method embodiment, reference may be made to the method 100, the method 200, the method 300, the method 400, or the method 500 described above, which are not described herein again for brevity.
When the network device 1000 performs address reservation, only the division of the above functional modules is used for illustration, in practical applications, the above function allocation may be completed by different functional modules according to needs, that is, the internal structure of the network device 1000 is divided into different functional modules, so as to complete all or part of the above described functions.
Corresponding to the method embodiment and the virtual device embodiment provided by the present application, a network device is also provided in the present application embodiment, and a hardware structure of the network device is introduced below.
The network device 1100 or the network device 1200 described below corresponds to the network device in the foregoing method embodiment, and in order to implement various steps and methods implemented by the network device 1100 or the network device 1200 in the method embodiment, respectively, for hardware, modules, and other operations and/or functions described above in the network device 1100 or the network device 1200, specific details may be referred to in the foregoing method embodiment for how the network device 1100 or the network device 1200 reserves an address for a terminal device based on the network device, and for brevity, no further description is repeated here. Wherein the steps of the above method 100, method 200, method 300, method 400 or method 500 are performed by instructions in the form of software or integrated logic circuits of hardware in a processor of the network device 1100 or the network device 1200. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, they will not be described in detail here
Each functional module in the network device 1100 or the network device 1200 corresponding to the network device 1000 in the virtual appliance embodiment described above is implemented by software of the network device 1100 or the network device 1200. In other words, the network device 1000 includes functional modules that are generated by a processor of the network device 1100 or the network device 1200 reading program codes stored in a memory.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a network device 1100 provided in the present application, where the network device 1100 may be configured as a network device. The network device 1100 may be implemented by a generic bus architecture.
Network device 1000 includes at least one processor 1101, a communication bus 1102, memory 1103, and at least one communication interface 1104.
The processor 1101 may be a general purpose CPU, NP, microprocessor, or may be one or more integrated circuits such as an application-specific integrated circuit (ASIC), programmable Logic Device (PLD), or a combination thereof for implementing aspects of the present disclosure. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
A communication bus 1102 is used to transfer information between the above components. The communication bus 1102 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The Memory 1103 may be a read-only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only Memory (EEPROM), a compact disc read-only Memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory 1103 may be separate and coupled to the processor 1101 by a communication bus 1102. The memory 1103 may also be integrated with the processor 1101.
In particular implementations, processor 1101 may include one or more CPUs, such as CPU0 and CPU1 shown in fig. 9, as one embodiment.
In particular implementations, network device 1000 may include multiple processors, such as processor 1101 and processor 1105 shown in fig. 9, for one embodiment. Each of these processors may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In particular implementations, network device 1000 may also include an output device 1106 and an input device 1107 as one embodiment. An output device 1106 is in communication with the processor 1101 and can display information in a variety of ways. For example, the output device 1106 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 1107 is in communication with the processor 1101 and may receive user input in a variety of ways. For example, the input device 1107 may be a mouse, keyboard, touch screen device, or sensing device, among others.
In some embodiments, the memory 1103 is used to store program code 1110 for performing aspects of the present application, and the processor 1101 may execute the program code 1110 stored in the memory 1103. That is, the network device 1000 may implement the method 100, the method 200, the method 300, the method 400 or the method 500 provided by the method embodiments through the processor 1101 and the program code 1110 in the memory 1103.
The network device 1100 of the embodiment of the present application may correspond to the network device in the above-described various method embodiments, and the processor 1101, the communication interface 1104 and the like in the network device 1100 may implement the functions of the device in the above-described various method embodiments and/or various steps and methods implemented. For brevity, no further description is provided herein.
The acquisition unit 1010 in the network device 1000 may correspond to the communication interface 1104 in the network device 1100; the determining unit 1020 or the processing unit 1030 in the network device 800 may correspond to the processor 1101 in the network device 1100.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a network device 1200 provided in the present application, where the network device 1200 may be configured as a network device. The network device 1200 includes: a main control board 1210 and an interface board 1230.
The main control board 1210 is also called a Main Processing Unit (MPU) or a route processor card (route processor card), and the main control board 1210 is used for controlling and managing each component in the network device 1200, including routing calculation, device management, device maintenance, and protocol processing functions. The main control board 1210 includes: a central processor 1211 and a memory 1210.
The interface board 1230 is also called a Line Processing Unit (LPU), a line card (line card), or a service board. The interface board 1230 is used for providing various service interfaces and forwarding packets. The service interfaces include, but are not limited to, ethernet interfaces, such as Flexible Ethernet services interfaces (FlexE Ethernet Clients), POS (Packet over SONET/SDH) interfaces, and the like. The interface board 1230 includes: a central processor 1231, a network processor 1232, a forwarding table entry store 1234, and a Physical Interface Card (PIC) 1233.
The central processor 1231 of the interface board 1230 is used for controlling and managing the interface board 1230 and communicating with the central processor 1211 of the main control board 1210.
The network processor 1232 is configured to implement forwarding processing of the packet. The network processor 1232 may take the form of a forwarding chip. Specifically, the network processor 1232 is configured to forward the received message based on the forwarding table stored in the forwarding table entry storage 1234, and if the destination address of the message is the address of the network device 1200, send the message to a CPU (e.g., the central processing unit 1211) for processing; if the destination address of the message is not the address of the network device 1200, the next hop and the outgoing interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to the outgoing interface corresponding to the destination address. The processing of the uplink message comprises the following steps: processing a message input interface and searching a forwarding table; and (3) downlink message processing: forwarding table lookups, and the like.
The physical interface card 1233 is used to implement the interfacing function of the physical layer, from which the original traffic enters the interface board 1230, and the processed messages are sent out from the physical interface card 1233. The physical interface card 1233, also called a daughter card, may be installed on the interface board 1230, and is responsible for converting the optical signal into a message, performing validity check on the message, and forwarding the message to the network processor 1232 for processing. In some embodiments, the central processor may also perform the functions of the network processor 1232, such as implementing software forwarding based on a general purpose CPU, so that the network processor 1232 is not required in the physical interface cards 1233.
Optionally, the network device 1200 includes a plurality of interface boards, for example, the network device 1200 further includes an interface board 1240, and the interface board 1240 includes: a central processor 1241, a network processor 1242, a forwarding table entry memory 1244 and a physical interface card 1243.
Optionally, the network device 1200 further comprises a switch screen 1220. The switch board 1220 may also be called a Switch Fabric Unit (SFU). In the case of a network device having a plurality of interface boards 1230, the switch board 1220 is used to complete data exchange between the interface boards. For example, interface board 1230 and interface board 1240 may communicate with each other via switch board 1220.
The main control board 1210 and the interface board 1230 are coupled. For example. The main control board 1210, the interface board 1230, the interface board 1240 and the switch board 1220 are connected to the system backplane through a system bus to realize intercommunication. In a possible implementation manner, an inter-process communication protocol (IPC) channel is established between the main control board 1210 and the interface board 1230, and the main control board 1210 and the interface board 1230 communicate with each other through the IPC channel.
Logically, the network device 1200 includes a control plane including the main control board 1210 and the central processor 1231, and a forwarding plane including various components performing forwarding, such as a forwarding table entry memory 1234, a physical interface card 1233, and a network processor 1232. The control plane performs functions of a router, generating a forwarding table, processing signaling and protocol messages, configuring and maintaining the state of the device, and the like, issues the generated forwarding table to the forwarding plane, and in the forwarding plane, the network processor 1232 looks up the table of the messages received by the physical interface card 1233 and forwards the messages based on the forwarding table issued by the control plane. The forwarding table issued by the control plane may be stored in forwarding table entry store 1234. In some embodiments, the control plane and the forwarding plane may be completely separate and not on the same device.
The acquisition unit 1010 in the network device 1000 corresponds to the physical interface card 1233 in the network device 1200; the determining unit 1020 or the processing unit 1030 in the network device 1000 may correspond to the network processor 1232 or the central processor 1211 in the network device 1200.
In the embodiment of the present application, operations on interface board 1240 are the same as operations on interface board 1230, and are not described again for brevity. The network device 1200 of this embodiment may correspond to the network devices in the foregoing method embodiments, and the main control board 1210, the interface board 1230 and/or 1240 in the network device 1200 may implement the functions and/or various steps implemented by the network devices in the foregoing method embodiments, and for brevity, no further description is provided here.
It should be noted that there may be one or more main control boards, and when there are more main control boards, the main control boards may include a main control board and a standby main control board. The interface board may have one or more blocks, and the stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on an interface board. The exchange network board may not have one or more blocks, and when there are more blocks, the load sharing redundancy backup can be realized together. Under the centralized forwarding architecture, the network device does not need a switching network board, and the interface board undertakes the processing function of the service data of the whole system. Under the distributed forwarding architecture, the network device can have at least one switching network board, and the data exchange among a plurality of interface boards is realized through the switching network board, so that the high-capacity data exchange and processing capacity is provided. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those of devices in a centralized architecture. Optionally, the form of the network device may also be only one board card, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on the one board card, at this time, the central processing unit on the interface board and the central processing unit on the main control board may be combined into one central processing unit on the one board card to perform the function after the two are superimposed, and the data switching and processing capability of the device in this form is low (for example, network devices such as a low-end switch or a router, etc.). Which architecture is specifically adopted depends on the specific networking deployment scenario, and is not limited herein.
In some possible embodiments, the network device may be implemented as a virtualized device.
For example, the virtualized device may be a Virtual Machine (VM) running a program for sending messages, and the VM is deployed on a hardware device (e.g., a physical server). A virtual machine refers to a complete computer system with complete hardware system functionality, which is emulated by software, running in a completely isolated environment. The virtual machine may be configured as a network device. For example, network device Network devices may be implemented based on general purpose physical servers in conjunction with Network Function Virtualization (NFV) technology. The network device is a virtual host, a virtual router or a virtual switch. Through reading the application, a person skilled in the art can combine the NFV technology to virtually simulate a network device with the above functions on a general physical server. And will not be described in detail herein.
For example, a virtualization appliance may be a container, which is an entity for providing an isolated virtualization environment, e.g., a container may be a docker container. The container may be configured as a network device. For example, the network device may be created by a corresponding mirror image, for example, 1 container instance may be created for proxy-container by a mirror image of the proxy-container (container providing proxy service), which may be represented as container instance proxy-container1, and container instance proxy-container1 may be provided as the network device. When the container technology is adopted for implementation, the network device can run by utilizing the inner core of the physical machine, and a plurality of network devices can share the operating system of the physical machine. Different network devices can be isolated by container technology. The containerized network device may run in a virtualized environment, such as a virtual machine, or may run directly in a physical machine.
For example, the virtualization device may be Pod, and Pod is kubernets (kubernets is a container arrangement engine of google open source, abbreviated as K8s in english) which is a basic unit for deploying, managing and arranging containerized applications. The Pod may include one or more containers. Each container in the same Pod is typically deployed on the same host, so each container in the same Pod can communicate through the host and can share storage resources and network resources of the host. The Pod may be configured as a network device. For example, a Pod as a service (hereinafter, referred to as a container as a service, which is a container-based PaaS service) may be specifically instructed to create a Pod, and provide the Pod as a network device.
Of course, the network device may also be other virtualization devices, which are not listed here.
In some possible embodiments, the network device may also be implemented by a general-purpose processor. For example, the general purpose processor may be in the form of a chip. Specifically, the general-purpose processor implementing the network device includes a processing circuit, and an input interface and an output interface connected and communicated with the processing circuit, where the processing circuit is configured to execute the message generating step in each of the above-mentioned method embodiments through the input interface, the processing circuit is configured to execute the receiving step in each of the above-mentioned method embodiments through the input interface, and the processing circuit is configured to execute the sending step in each of the above-mentioned method embodiments through the output interface. Optionally, the general-purpose processor may further include a storage medium, and the processing circuit is configured to execute the storage steps in the above-described method embodiments through the storage medium. The storage medium may store instructions for execution by a processing circuit that executes the instructions stored by the storage medium to perform the various method embodiments described above.
Fig. 11 is a schematic structural diagram of a network system 1300 provided in the present application, and as shown in fig. 11, the system 1300 includes: network device 1310. Optionally, the system 1300 may further include a first terminal device 1320 and/or a first second terminal device 1330. Optionally, network device 1310 is, for example, network device 1000.
Embodiments of the present application provide a computer program product, which, when run on a network device, causes the network device to perform the method 100, the method 200, the method 300, the method 400, or the method 500 in the above-described method embodiments.
The apparatuses in the various product forms respectively have any function of the network device in the method embodiments, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various method steps and elements described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of both, and that the steps and elements of the various embodiments have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. 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 application.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of 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 also be an electric, mechanical or other form of connection.
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 embodiments of the present application.
In addition, functional units in the embodiments of the present application 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 integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. When loaded and executed on a computer, produce, in whole or in part, the procedures or functions according to the embodiments of the application. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer program instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital Video Disk (DVD)), or a semiconductor medium (e.g., solid state disk), among others.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; the term "at least one" in this application may mean "one" and "two or more", e.g., at least one of A, B and C may mean: a exists alone, B exists alone, C exists alone, A and B exist together, A and C exist together, C and B exist together, A and B exist together, and A, B and C exist together, which are seven cases.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (40)
1. A method of address reservation, the method comprising:
after a first terminal device accesses a network through a network device, the network device acquires first information and a first Internet Protocol (IP) address of the first terminal device, wherein the first information comprises a first Media Access Control (MAC) address and first access port information, the first MAC address indicates the first terminal device, the first access port information indicates a first port of the network device for receiving an access request of the first terminal device, and the first IP address is an IP address which is allocated to the first terminal device by the network device and is used for the first terminal device to access the network;
the network equipment determines a first corresponding relation, wherein the first corresponding relation is the corresponding relation between the first information and the first IP address;
and when the network equipment determines that the first terminal equipment is switched from the online state to the offline state, the network equipment determines the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relation.
2. The method of claim 1, wherein the first access port information comprises a first Virtual Local Area Network (VLAN) identifier indicating the first port and a first port identifier indicating a broadcast domain to which the first port belongs.
3. The method of claim 2, wherein the first information further comprises first access link information for the first terminal device, wherein the first access link information indicates a physical location of the first terminal device.
4. The method of claim 3, wherein the first access link information comprises option82 option information, or wherein the first access link information comprises at least one of the following information: option18 option information and option37 option information.
5. The method according to any of claims 2-4, characterized in that said first information further comprises a dynamic host configuration protocol unique identifier, DUID, of said first terminal device.
6. The method according to any one of claims 1 to 4, wherein the first information further includes a reservation duration, and the determining, by the network device, the state of the first IP address corresponding to the first information as a reserved state according to the first correspondence comprises:
in the reservation period, the network device determines the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relation;
the method further comprises the following steps:
and the network equipment deletes the first corresponding relation and updates the state of the first IP address corresponding to the first information from a reserved state to an unoccupied state outside the reserved period.
7. The method according to any one of claims 1-4, wherein after the network device determines that the first terminal device is switched from an online state to a offline state, the method further comprises:
the network equipment receives first access request information of the first terminal equipment, wherein the first access request information is used for requesting the network equipment to allocate an IP address of the first terminal equipment for accessing the network equipment according to the first access port information;
the network equipment allocates the first IP address to the first terminal equipment according to the first access request information and the first corresponding relation;
and the network equipment updates the state of the first IP address from a reserved state to an occupied state.
8. The method of claim 7, wherein the network device allocates the first IP address to the first terminal device according to the first access request information and the first corresponding relationship, and wherein the allocating comprises:
and when the network equipment detects the first corresponding relation and the state of the first IP address is a reserved state, allocating the first IP address to the first terminal equipment.
9. The method of claim 7, further comprising:
when the network device does not detect the first corresponding relationship and the state of the first IP address is an unoccupied state, allocating the first IP address to the first terminal device; or
When the network equipment does not detect the first corresponding relation and the state of the first IP address is an occupied state, allocating a second IP address to the first terminal equipment;
the second IP address is an IP address used for the first terminal device to access the network according to the first access port information, and the second IP address is different from the first IP address.
10. The method according to any one of claims 1-4, wherein after the network device determines that the first terminal device is switched from an online state to a offline state, the method further comprises:
the network equipment receives second access request information of second terminal equipment, wherein the second access request information is used for requesting the network equipment to allocate the IP address of the second terminal equipment for accessing the network equipment according to second access port information to the second terminal equipment, and the second terminal equipment is different from the first terminal equipment;
the network device determines that second information of the second terminal device is the same as the first information, the second information includes a second MAC address and second access port information, the second MAC address indicates the second terminal device, and the second access port information indicates information of a second port where the network device receives an access request of the second terminal device;
and the network equipment allocates the first IP address to the second terminal equipment according to the second access request and the first corresponding relation.
11. The method of claim 10, wherein the second access port information comprises a second Virtual Local Area Network (VLAN) identifier and a second port identifier, wherein the second port identifier is used to indicate the second port, and wherein the second VLAN identifier is used to indicate a broadcast domain to which the second port belongs.
12. The method of claim 11, wherein the second information further comprises second access link information for the second terminal device, and wherein the second access link information indicates a physical location of the second terminal device.
13. The method of claim 12, wherein the second access link information comprises option82 option information, or wherein the second access link information comprises at least one of: option18 option information and option37 option information.
14. The method according to any of claims 11-13, characterized in that said second information further comprises a DUID of said second terminal device.
15. The method according to any of claims 11-13, wherein the network device allocating the first IP address to the second terminal device according to the second access request information and the first corresponding relationship comprises:
when the network equipment detects the first corresponding relation and the state of the first IP address is a reserved state, allocating the first IP address to the second terminal equipment;
the method further comprises the following steps:
when the network equipment detects the first corresponding relation and the state of the first IP address is an occupied state, distributing a third IP address for the second terminal equipment; or
When the network device does not detect the first corresponding relationship and the state of the first IP address is an occupied state, allocating the third IP address to the second terminal device; or
When the network device does not detect the first corresponding relation and the state of the first IP address is an unoccupied state, allocating the first IP address to the second terminal device;
the third IP address is an IP address for the second terminal device to access the network according to the second access port information, and the first IP address, the second IP address, and the third IP address are different.
16. The method according to claim 15, wherein after the network device detects the first corresponding relationship and allocates a third IP address to the second terminal device when the state of the first IP address is the occupied state, the method further comprises:
when the network device determines that the second terminal device is switched from the online state to the offline state at a first moment, and the first terminal device is switched from the online state to the offline state before the first moment, updating the first corresponding relationship to a second corresponding relationship, where the second corresponding relationship is a corresponding relationship between the first information and the third IP address, or a corresponding relationship between the second information and the third IP address;
and the network equipment updates the state of the third IP address from the occupied state to the reserved state and updates the state of the first IP address from the occupied state to the unoccupied state.
17. The method of claim 15, wherein after the network device detects the first corresponding relationship and the first IP address is in a reserved state and allocates the first IP address to the second terminal device, the method further comprises:
when the network device determines that the second terminal device is switched from the online state to the offline state at a second moment, and the first terminal device is switched from the online state to the offline state after the second moment, the first corresponding relation is not updated;
and the network equipment updates the state of the first IP address from the occupied state to the reserved state.
18. The method according to any of claims 1-4, characterized in that the network device is a broadband access server, BRAS.
19. A network device, characterized in that the network device comprises:
an obtaining unit, configured to obtain first information and a first internet protocol IP address of a first terminal device, where the first information includes a first media access control MAC address and first access port information, where the first MAC address indicates the first terminal device, the first access port information indicates information of a first port, where the network device receives an access request of the first terminal device, and the first IP address is an IP address, where the first IP address is allocated to the first terminal device by the network device and is used for the first terminal device to access the network;
a determining unit, configured to determine a first correspondence relationship, where the first correspondence relationship is a correspondence relationship between the first information and the first IP address;
the determining unit is further configured to determine, when the first terminal device is switched from the online state to the offline state, the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relationship.
20. The network device of claim 19, wherein the first access port information comprises a first Virtual Local Area Network (VLAN) identifier indicating the first port and a first port identifier indicating a broadcast domain to which the first port belongs.
21. The network device of claim 20, wherein the first information further comprises first access link information for the first terminal device, the first access link information indicating a physical location of the first terminal device.
22. The network device of claim 21, wherein the first access link information comprises option82 option information, or wherein the first access link information comprises at least one of: option18 option information and option37 option information.
23. The network device according to any of claims 20-22, wherein said first information further comprises a dynamic host configuration protocol unique identifier, DUID, of said first terminal device.
24. The network device of any of claims 19-22, wherein the first information further comprises a reservation duration, and wherein the determining unit is further configured to:
determining the state of the first IP address corresponding to the first information as a reserved state according to the first corresponding relation within the reserved time limit;
the determination unit is further configured to:
and deleting the first corresponding relation outside the reservation period, and updating the state of the first IP address corresponding to the first information from a reserved state to an unoccupied state.
25. Network device according to any of claims 19-22, characterized in that the network device further comprises a processing unit,
the obtaining unit is further configured to receive first access request information of the first terminal device, where the first access request information is used to request the network device to allocate, to the first terminal device, an IP address of the first terminal device, where the first terminal device accesses the network device according to the first access port information;
the processing unit is configured to:
allocating the first IP address to the first terminal device according to the first access request information and the first corresponding relation; and
and updating the state of the first IP address from a reserved state to an occupied state.
26. The network device of claim 25, wherein the processing unit is further configured to:
and when the first corresponding relation is detected and the state of the first IP address is a reserved state, allocating the first IP address to the first terminal equipment.
27. The network device of claim 25, wherein the processing unit is further configured to:
when the first corresponding relation is not detected and the state of the first IP address is an unoccupied state, the first IP address is allocated to the first terminal equipment; or
When the first corresponding relation is not detected and the state of the first IP address is an occupied state, allocating a second IP address to the first terminal equipment;
the second IP address is an IP address used for the first terminal device to access the network according to the first access port information, and the second IP address is different from the first IP address.
28. The network device of any of claims 19-22,
the acquiring unit is further configured to receive second access request information of a second terminal device, where the second access request information is used to request the network device to allocate, to the second terminal device, an IP address of the second terminal device to access the network device according to second access port information, and the second terminal device is different from the first terminal device;
the determination unit is further configured to:
determining that second information of the second terminal device is the same as the first information, wherein the second information includes a second MAC address and second access port information, the second MAC address indicates the second terminal device, and the second access port information indicates information of a second port of the network device that receives an access request of the second terminal device;
the network device further includes a processing unit, the processing unit further configured to:
and allocating the first IP address to the second terminal equipment according to the second access request and the first corresponding relation.
29. The network device of claim 28, wherein the second access port information comprises a second Virtual Local Area Network (VLAN) identifier and a second port identifier, wherein the second port identifier is used to indicate the second port, and wherein the second VLAN identifier is used to indicate a broadcast domain to which the second port belongs.
30. The network device of claim 29, wherein the second information further comprises second access link information for the second terminal device, the second access link information indicating a physical location of the second terminal device.
31. The network device of claim 30, wherein the second access link information comprises option82 option information, or wherein the second access link information comprises at least one of: option18 option information and option37 option information.
32. The network device of any of claims 29-31, wherein the second information further comprises a DUID of the second terminal device.
33. The network device of claim 28,
the processing unit is further to:
when the first corresponding relation is detected and the state of the first IP address is a reserved state, distributing the first IP address for the second terminal equipment;
the processing unit is further to:
when the first corresponding relation is detected and the state of the first IP address is an occupied state, a third IP address is allocated to the second terminal equipment; or
When the first corresponding relation is not detected and the state of the first IP address is an occupied state, distributing the third IP address to the second terminal equipment; or
When the first corresponding relation is not detected and the state of the first IP address is an unoccupied state, the first IP address is distributed to the second terminal equipment;
the third IP address is an IP address for the second terminal device to access the network according to the second access port information, and the first IP address, the second IP address, and the third IP address are different.
34. The network device of claim 33,
the determination unit is further configured to: determining that the second terminal device is switched from an online state to a offline state at a first moment, and determining that the first terminal device is switched from the online state to the offline state before the first moment;
the processing unit is further to:
updating the first corresponding relationship to a second corresponding relationship, where the second corresponding relationship is a corresponding relationship between the first information and the third IP address, or a corresponding relationship between the second information and the third IP address;
and updating the state of the third IP address from the occupied state to the reserved state, and updating the state of the first IP address from the occupied state to the unoccupied state.
35. The network device of claim 33,
the determination unit is further configured to: determining that the second terminal device is switched from the online state to the offline state at a second moment, and determining that the first terminal device is switched from the online state to the offline state after the second moment;
the processing unit is further to: and updating the state of the first IP address from the occupied state to the reserved state.
36. The network device according to any of claims 19-22, wherein the network device is a broadband access server, BRAS.
37. A network device comprising at least one processor and a communication interface, the at least one processor being configured to execute a computer program or instructions to cause the network device to perform the method of any of claims 1 to 18.
38. The network device of claim 37, further comprising at least one memory coupled with the at least one processor, wherein the computer program or instructions are stored in the at least one memory.
39. A computer-readable storage medium, comprising a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 18.
40. A network communication system comprising a network device according to claim 37 or 38.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010949604.6A CN114172753B (en) | 2020-09-10 | 2020-09-10 | Address reservation method, network equipment and system |
PCT/CN2021/093130 WO2022052496A1 (en) | 2020-09-10 | 2021-05-11 | Address reservation method, network device, and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010949604.6A CN114172753B (en) | 2020-09-10 | 2020-09-10 | Address reservation method, network equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114172753A CN114172753A (en) | 2022-03-11 |
CN114172753B true CN114172753B (en) | 2023-04-07 |
Family
ID=80475759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010949604.6A Active CN114172753B (en) | 2020-09-10 | 2020-09-10 | Address reservation method, network equipment and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114172753B (en) |
WO (1) | WO2022052496A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225612B (en) * | 2022-06-29 | 2023-11-14 | 济南浪潮数据技术有限公司 | Management method, device, equipment and medium for K8S cluster reserved IP |
CN116032888B (en) * | 2022-12-06 | 2024-08-06 | 中国联合网络通信集团有限公司 | Broadband access method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101888575A (en) * | 2010-07-28 | 2010-11-17 | 中兴通讯股份有限公司 | Configuration method and system for realizing port address binding |
CN103067531A (en) * | 2011-10-20 | 2013-04-24 | 安美世纪(北京)科技有限公司 | Public network Internet protocol (IP) address resource management allocation method |
CN103312836A (en) * | 2013-06-28 | 2013-09-18 | 国家电网公司 | Large local network internet protocol (IP) address administration method |
CN106301909A (en) * | 2016-08-11 | 2017-01-04 | 杭州华三通信技术有限公司 | A kind of port detection method and device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635628B (en) * | 2009-08-28 | 2012-01-04 | 杭州华三通信技术有限公司 | Method and device for preventing ARP attacks |
CN101640882B (en) * | 2009-09-07 | 2012-07-11 | 杭州华三通信技术有限公司 | Method and device for preventing flow from breaking |
CN102447709A (en) * | 2012-01-17 | 2012-05-09 | 神州数码网络(北京)有限公司 | Access authority control method and system based on DHCP and 802.1x |
CN102546428A (en) * | 2012-02-03 | 2012-07-04 | 神州数码网络(北京)有限公司 | System and method for internet protocol version 6 (IPv6) message switching based on dynamic host configuration protocol for IPv6 (DHCPv6) interception |
CN104144092A (en) * | 2013-12-03 | 2014-11-12 | 国家电网公司 | Method for being automatically access to LAN terminal |
CN107528931B (en) * | 2016-06-22 | 2021-06-18 | 中兴通讯股份有限公司 | IP address self-adaptive keeping method, device and system based on user behavior |
CN110324246B (en) * | 2018-03-31 | 2021-12-24 | 华为技术有限公司 | Communication method and device |
CN109474481B (en) * | 2018-12-27 | 2022-04-26 | 瑞斯康达科技发展股份有限公司 | Equipment deployment method and system, network management server, mobile terminal and storage medium |
-
2020
- 2020-09-10 CN CN202010949604.6A patent/CN114172753B/en active Active
-
2021
- 2021-05-11 WO PCT/CN2021/093130 patent/WO2022052496A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101888575A (en) * | 2010-07-28 | 2010-11-17 | 中兴通讯股份有限公司 | Configuration method and system for realizing port address binding |
CN103067531A (en) * | 2011-10-20 | 2013-04-24 | 安美世纪(北京)科技有限公司 | Public network Internet protocol (IP) address resource management allocation method |
CN103312836A (en) * | 2013-06-28 | 2013-09-18 | 国家电网公司 | Large local network internet protocol (IP) address administration method |
CN106301909A (en) * | 2016-08-11 | 2017-01-04 | 杭州华三通信技术有限公司 | A kind of port detection method and device |
Non-Patent Citations (3)
Title |
---|
A dynamic topology discovery method for smart substation networks;Yi Yang;《2014 China International Conference on Electricity Distribution (CICED)》;全文 * |
CISCO网络设备的IP/MAC地址绑定适用性分析;李大为等;《吉林电力》(第06期);全文 * |
交换机端口绑定技术在企业局域网中的应用;肖伟;《电子世界》(第20期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
WO2022052496A1 (en) | 2022-03-17 |
CN114172753A (en) | 2022-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10757072B2 (en) | Packet transmission method, apparatus, and system | |
CN107078969B (en) | Realize computer equipment, the system and method for load balancing | |
CN111866064B (en) | Load balancing method, device and system | |
CN112217746B (en) | Message processing method, host and system in cloud computing system | |
CN114172753B (en) | Address reservation method, network equipment and system | |
CN110661641B (en) | Virtual network function VNF deployment method and device | |
CN112583655B (en) | Data transmission method and device, electronic equipment and readable storage medium | |
CN114448937A (en) | Access request response method and device and storage medium | |
CN113973022A (en) | Communication method, CP equipment and NAT equipment | |
US20230224241A1 (en) | Path Identity Allocation Method, System, and Apparatus, Device, and Storage Medium | |
CN112887201A (en) | VRRP (virtual router redundancy protocol) -based interface updating method and device and storage medium | |
CN114205414B (en) | Data processing method, device, electronic equipment and medium based on service grid | |
CN114157455A (en) | Data transmission method, device, equipment and storage medium | |
CN114390101A (en) | Kubernetes load balancing method based on BGP networking | |
CN115225611A (en) | Address allocation method, device, equipment, system and storage medium | |
CN115733743A (en) | Network service deployment method, NFVO (network function virtualization) and NFV (network function virtualization) system | |
CN114531320A (en) | Communication method, device, equipment, system and computer readable storage medium | |
CN114513485A (en) | Method, device, equipment and system for obtaining mapping rule and readable storage medium | |
US11416299B2 (en) | Method and resource scheduler for enabling a computing unit to map remote memory resources based on optical wavelength | |
CN114531360A (en) | Semantic name acquisition method, device, equipment and storage medium | |
US20240275696A1 (en) | Packet Transmission Method, Apparatus, and System, and Storage Medium | |
CN115225610A (en) | Method, device and equipment for configuring address and computer readable storage medium | |
CN115208783A (en) | Method, device, equipment, system and storage medium for detecting server state | |
CN114221827A (en) | Tracing information acquisition method, device and system | |
CN114697220A (en) | Message processing method and related 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |