WO2022052496A1 - Procédé de réservation d'adresse, dispositif de réseau et système - Google Patents

Procédé de réservation d'adresse, dispositif de réseau et système Download PDF

Info

Publication number
WO2022052496A1
WO2022052496A1 PCT/CN2021/093130 CN2021093130W WO2022052496A1 WO 2022052496 A1 WO2022052496 A1 WO 2022052496A1 CN 2021093130 W CN2021093130 W CN 2021093130W WO 2022052496 A1 WO2022052496 A1 WO 2022052496A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
information
terminal device
state
network device
Prior art date
Application number
PCT/CN2021/093130
Other languages
English (en)
Chinese (zh)
Inventor
高雪
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022052496A1 publication Critical patent/WO2022052496A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • the present application relates to the technical field of network communication, and more particularly, to a method, network device and system for address reservation.
  • IP Address reservation means that after the terminal device goes offline, the network device can reserve the Internet protocol (IP) address (for example, IP address or IP address prefix) used by the terminal device before going offline this time.
  • IP Internet protocol
  • Terminal Equipment That is to say, after the terminal device goes offline, the network device may set the state of the above IP address to a reserved state. Therefore, when the terminal device requests to go online again, the network device can assign the IP address in the reserved state to the terminal device, so that the terminal device can use the reserved IP address to access the network, thereby effectively improving the efficiency of the terminal device. Efficiency of access to the network.
  • IP Internet protocol
  • the existing address reservation methods cannot meet the requirements of reserving address resources for terminal devices. need.
  • the present application provides an address reservation method, network device and system, which can meet the requirement of reserving address resources for terminal equipment.
  • a method for address reservation includes:
  • the network device After the first terminal device accesses the network through the network device, the network device acquires the first information and the first Internet Protocol IP address of the first terminal device, where the first information includes the first media access control MAC address and the first connection.
  • Ingress port information where the first MAC address indicates the first terminal device, the first access port information indicates the first port information on which the network device receives an access request from the first terminal device, and the first IP address is the IP address assigned by the network device to the first terminal device and used for the first terminal device to access the network; the network device determines a first correspondence, and the first correspondence is the first information and the first Correspondence between IP addresses; when the network device determines that the first terminal device is switched from an online state to an offline state, the network device determines the first IP address corresponding to the first information according to the first correspondence The state is determined to be a reserved 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.
  • the network device can further identify the terminal device corresponding to the first access port information according to the first access port information provided in this application, so that In some special scenarios (for example, a case where one MAC address corresponds to multiple different terminal devices), the network device may still reserve IP addresses for the multiple different terminal devices.
  • the address reservation method provided by the present application can better meet the requirement of reserving address resources for terminal equipment.
  • the first access port information includes a first virtual local area network VLAN identifier and a first port identifier, where the first port identifier is used to indicate the first port, the The first VLAN identifier is used to indicate the broadcast domain to which the first port belongs.
  • the first information may include the first MAC address, the first VLAN identifier and the first port identifier. Therefore, after the first terminal device is switched from the online state to the offline state, the network device can reserve an IP address for the first terminal device according to the first MAC address, the first VLAN identifier and the first port identifier.
  • the network device When the network device receives access requests from different terminal devices, the network device usually assigns different port identifiers to different terminal devices.
  • the first information provided by the present application has 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.
  • the first information further includes first access link information of the first terminal device, where the first access link information indicates the first terminal device physical location.
  • the first information may include the first MAC address, the first VLAN identifier, the first port identifier 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 can reserve 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 IP address.
  • 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 can reserve an IP address for the first terminal device according to the first MAC address and the first access link information.
  • the network device can successfully reserve an IP address for terminal device #1 according to access link information #1, and can successfully reserve an IP address for terminal device # according to access link information #2 2 Reserve an IP address.
  • 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 info and option37 option info.
  • 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 further include option18 option information and option37 option.
  • the first information may include the first MAC address, the first access port information and the first access link information.
  • the first information 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.
  • the first access link information 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.
  • the first information further includes a dynamic host configuration protocol unique identifier DUID of the first terminal device.
  • 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.
  • the first information may include the first MAC address, the first VLAN identifier, the first port identifier, option82 option information, and the DUID of the first terminal device.
  • the first information may include a first MAC address, a first VLAN identifier, a first port identifier, option18 option information, and the DUID of the first terminal device.
  • the first information may include the first MAC address, the first VLAN identifier, the first port identifier, option37 option information, and the DUID of the first terminal device.
  • the first information may further include the first MAC address, the first access link information, and the DUID of the first terminal device.
  • the first information may include the first MAC address, option82 option information, and the DUID of the first terminal device.
  • the first information may include a first MAC address, a first VLAN identifier, a first port identifier, and option18 option information and option37 option information.
  • the first information may further include the first MAC address, the first access port information, and the DUID of the first terminal device.
  • the first information may include the first MAC address, the first VLAN identifier, the first port identifier, and the DUID of the first terminal device.
  • the first information may further include first MAC address and first access port information.
  • the first information may include a first MAC address, a first VLAN identifier, and a first port identifier.
  • the first information may further include the first MAC address and the first access link information.
  • the first information may include the first MAC address, option18 option information and option37 option information, and the DUID of the first terminal device.
  • the first information may also include the first MAC address, option37 option information, and the DUID of the first terminal device.
  • the first information further includes a reservation period, and the network device determines the state of the first IP address corresponding to the first information according to the first correspondence Being in a reserved state, including: within 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 correspondence; the method further includes: in the Outside the reservation period, the network device deletes the first correspondence, and updates the state of the first IP address corresponding to the first information from the reserved state to the unoccupied state.
  • the network device may reserve the first IP address for the first terminal device within a certain period of time according to the reservation period. If the reservation period is exceeded, the network device can update the state of the first IP address from the reserved state to the unoccupied state, which can avoid wasting resources of the network address.
  • the method further includes: the network device receiving the first terminal device The first access request information, the first access request information is used to request the network device to allocate the IP address of the first terminal device to access the network device according to the first access port information to the first terminal device; The network device allocates the first IP address to the first terminal device according to the first access request information and the first correspondence; the network device updates the state of the first IP address from a reserved state to an occupied state .
  • the network device reserves the first terminal device for the first terminal device according to the first information.
  • An IP address that is, the state of the first IP address is a reserved state.
  • the network device can assign the first IP address corresponding to the first information to the first terminal device according to the first information, so that the first IP address can be improved. Efficiency of terminal equipment accessing the network.
  • the network device allocates the first IP address to the first terminal device according to the first access request information and the first correspondence, including: when When the network device detects the first correspondence and the state of the first IP address is a reserved state, it allocates the first IP address to the first terminal device.
  • the method further includes: when the network device does not detect the first correspondence, and the state of the first IP address is an unoccupied state, for the The first terminal device allocates the first IP address; or when the network device does not detect the first correspondence and the state of the first IP address is the occupied state, allocates the second IP address to the first terminal device;
  • the second IP address is an IP address used by 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.
  • the network device when the network device does not detect the IP address reserved for the first terminal device, the network device may also assign an IP address in an unoccupied state (for example, the above-mentioned second IP address) to the first terminal device. terminal device, thereby ensuring that the first terminal device can successfully access the network through the network device.
  • an IP address in an unoccupied state for example, the above-mentioned second IP address
  • the method further includes: the network device receiving the second terminal device's second access request information, the second access request information is used to request the network device to allocate the IP address of the second terminal device to access the network device according to the second access port information to the second terminal device, the first The second terminal device is different from the first terminal device; the network device determines that the second information of the second terminal device is the same as the first information, and the second information includes the 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 the information of the second port on which the network device receives the access request of the second terminal device; the network device according to the second access request With the first correspondence, the first IP address is allocated to the second terminal device.
  • the first information is the same as the second information.
  • the network device reserves the first IP address for the first terminal device according to the first information, that is, the first IP address is reserved for the first terminal device.
  • the state of an IP address is a reserved state.
  • the second access port information includes a second virtual local area network VLAN identifier and a second port identifier
  • the second port identifier is used to indicate the second port
  • the The second VLAN identifier is used to indicate the broadcast domain to which the second port belongs.
  • the second information may include the second MAC address, the second VLAN identifier and the second port identifier. Therefore, after the second terminal device is switched from the online state to the offline state, the network device can reserve an IP address for the second terminal device according to the second MAC address, the second VLAN identifier and the second port identifier.
  • the second information further includes second access link information of the second terminal device, where the second access link information indicates the second terminal device physical location.
  • the second information may include the second MAC address, the second VLAN identifier, the second port identifier and the second access link information. Therefore, after the second terminal device is switched from the online state to the offline state, the network device can reserve 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 IP address.
  • 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 info and option37 option info.
  • 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 further include option18 option information and option37 option.
  • the second information may include the second MAC address, the second access port information and the second access link information.
  • the second information may include a second MAC address, a second VLAN identifier, a second port identifier, and option82 option information.
  • the second information may include a second MAC address, a second VLAN identifier, a second port identifier, and option18 option information.
  • the second information further includes the DUID of the second terminal device.
  • 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.
  • the second information may further include the second MAC address, the second access link information, and the DUID of the second terminal device.
  • the second information may include the second MAC address, option82 option information, and the DUID of the second terminal device.
  • the second information may include the second MAC address, option18 option information, and the DUID of the second terminal device.
  • the second information may further include the second MAC address, the second access port information, and the DUID of the second terminal device.
  • the second information may include the second MAC address, the second VLAN ID, the second port ID, and the DUID of the second terminal device.
  • the second information may further include second MAC address and second access port information.
  • the second information may include a second MAC address, a second VLAN identification, and a second port identification.
  • the second information may further include a second MAC address and second access link information.
  • the second information may include the second MAC address, option18 option information and option37 option information, and the DUID of the second terminal device.
  • the second information may include the second MAC address, option18 option information, and the DUID of the second terminal device.
  • the network device allocates the first IP address to the second terminal device according to the second access request information and the first correspondence, including: when When the network device detects the first correspondence and the state of the first IP address is a reserved state, assigning the first IP address to the second terminal device; the method further includes: when the network device detects the first IP address the first correspondence, and when the state of the first IP address is the occupied state, assign a third IP address to the second terminal device; or when the network device does not detect the first correspondence, and the first IP address When the state of the first IP address is the occupied state, the third IP address is allocated to the second terminal device; or when the network device does not detect the first correspondence, and the state of the first IP address is the unoccupied state, the third IP address is assigned to the second terminal device; The second terminal device allocates the first IP address; wherein the third IP address is the IP address used by the second terminal device to access the network according to the second access port information, and the first IP address, the The second terminal device allocates the first IP address; wherein the third IP address
  • 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 the reserved state.
  • the network device may assign 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 preset by The reserved state is updated to the occupied state.
  • the network device can successfully assign the first IP address or the third IP address to the second terminal device, thereby ensuring that the second terminal device can successfully access the network through the network device Access the network.
  • 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 state, update the first correspondence to a second correspondence, where the second correspondence is the correspondence between the first information and the third IP address, or the second information and the third IP address.
  • the network device 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.
  • the network device determines that the first information of the first terminal device and the second information of the second terminal device are the same, and the first IP address assigned by the network device to the first terminal device and the network device assigned to the second terminal The third IP address of the device is different.
  • the network device can determine the IP address corresponding to the first information or the second information according to the time of the first terminal device and the time of the offline of the second terminal device as The first IP address, or it may be determined that the IP address corresponding to the first information or the second information is the third IP address.
  • the network device when the network device detects the first correspondence and the state of the first IP address is the reserved state, it allocates the second terminal device to the second terminal device. After an IP address, the method further includes: when the network device determines that the second terminal device is switched from an online state to an offline state at a second time, and the first terminal device is switched from an online state to an offline state after the second time In the offline state, the first correspondence is not updated; the network device updates the state of the first IP address from the occupied state to the reserved state.
  • the network device is a broadband access server BRAS.
  • a network device in a second aspect, 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, wherein the first MAC address indicates For the first terminal device, the first access port information indicates the information of the first port on which the network device receives the access request of the first terminal device, and the first IP address is the first IP address assigned by the network device to the first terminal device and the IP address used for the first terminal device to access the network; a determining unit, configured to determine a first correspondence, where the first correspondence is the correspondence between the first information and the first IP address; the The determining unit is further configured to determine that the state of the first IP address corresponding to the first information is a reserved state according to the first correspondence when the first terminal device is switched from an online state to an offline state.
  • the first access port information includes a first virtual local area network VLAN identifier and a first port identifier, where the first port identifier is used to indicate the first port, the The first VLAN identifier is used to indicate the broadcast domain to which the first port belongs.
  • the first information further includes first access link information of the first terminal device, where the first access link information indicates the first terminal device physical location.
  • 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 info and option37 option info.
  • 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 further include option18 option information and option37 option.
  • the first information further includes a dynamic host configuration protocol unique identifier DUID of the first terminal device.
  • the first information may further include the first MAC address, the first access link information, and the DUID of the first terminal device.
  • the first information may further include the first MAC address, the first access port information, and the DUID of the first terminal device.
  • the first information may further include first MAC address and first access port information.
  • the first information may further include the first MAC address and the first access link information.
  • the first information further includes a reservation period
  • the determining unit is further configured to: within the reservation period, according to the first correspondence The state of the first IP address corresponding to the information is determined to be a reserved state; the determining unit is further configured to: delete the first correspondence outside the reservation period, and assign the first IP address corresponding to the first information is updated from reserved to unoccupied.
  • 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, the first access The request information is used to request the network device to assign the first terminal device the IP address of the first terminal device accessing the network device according to the first access port information; the processing unit is used to: according to the first access request information and the first correspondence, assign the first IP address to the first terminal device; and update the state of the first IP address from a reserved state to an occupied state.
  • the processing unit is further configured to: when the first correspondence relationship is detected and the state of the first IP address is a reserved state, the first IP address is in the reserved state.
  • the terminal device assigns the first IP address.
  • the processing unit is further configured to: when the first correspondence is not detected and the state of the first IP address is the unoccupied state, the processing unit is the first IP address.
  • a terminal device assigns the first IP address; or when the first correspondence is not detected and the state of the first IP address is the occupied state, assigns a second IP address to the first terminal device; wherein the first IP address is The second IP address is the IP address used by 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.
  • the obtaining unit is further configured to receive second access request information of the second terminal device, where the second access request information is used to request the network device to be The second terminal device assigns the IP address of the second terminal device to access the network device according to the second access port information, and the second terminal device is different from the first terminal device;
  • the determining unit is further configured to: determine the The 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, the second access port
  • the port information indicates the information of the second port for the network device to receive the access request of the second terminal device;
  • the processing unit is further configured to: according to the second access request and the first correspondence, for the second terminal device The first IP address is allocated.
  • the second access port information includes a second virtual local area network VLAN identifier and a second port identifier
  • the second port identifier is used to indicate the second port
  • the The second VLAN identifier is used to indicate the broadcast domain to which the second port belongs.
  • the second information further includes second access link information of the second terminal device, where the second access link information indicates the second terminal device physical location.
  • 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 info and option37 option info.
  • 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 further include option18 option information and option37 option.
  • the second information further includes the DUID of the second terminal device.
  • the processing unit is further configured to: when the first correspondence is detected and the state of the first IP address is a reserved state, the second The terminal device allocates the first IP address;
  • the processing unit is further configured to: when the first correspondence is detected and the state of the first IP address is the occupied state, assign a third IP address to the second terminal device; or when the first correspondence is not detected relationship, and the state of the first IP address is occupied, assign the third IP address to the second terminal device; or when the first correspondence is not detected, and the state of the first IP address is unoccupied In the state, the first IP address is allocated to the second terminal device; wherein, the third IP address is the IP address used by the second terminal device to access the network according to the second access port information, and the third IP address is used for accessing the network according to the second access port information.
  • An IP address, the second IP address and the third IP address are different.
  • the determining unit is further configured to: determine that the second terminal device is switched from an online state to an offline state at the first moment, and determine that the first terminal device is in The online state is switched to the offline state before the first moment; the processing unit is further configured to: update the first correspondence to a second correspondence, where the second correspondence is the first information and the third IP address The corresponding relationship between, or the corresponding relationship between the second information and the third IP address; the state of the third IP address is updated from the occupied state to the reserved state, and the state of the first IP address is changed by The occupied state is updated to the unoccupied state.
  • the determining unit is further configured to: determine that the second terminal device is switched from an online state to an offline state at a second moment, and determine that the first terminal device is in a The online state is switched to the offline state after the second moment; the processing unit is further configured to: update the state of the first IP address from the occupied state to the reserved state.
  • the network device is a broadband access server BRAS.
  • the present application provides a network device, where the network device has a function of implementing the method in the first aspect and any possible implementation manner of the first aspect.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more units corresponding to the above-mentioned functions.
  • the present application provides a network device or other combined device, component, etc. that can implement the functions of the above-mentioned 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, so that the network device can implement the first aspect and the communication method in any possible implementation manner of the first aspect.
  • the network device further includes at least one memory coupled to the at least one processor, and the computer program or instructions are stored in the at least one memory.
  • the memory may be integrated with the processor, or the memory may be provided separately from the processor.
  • the network device is a network device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the network device is a chip or a system on a chip.
  • the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit, etc. on the chip or a chip system.
  • a processor may also be embodied as a processing circuit or a logic circuit.
  • the network device is a chip or a chip system configured in the network device.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • a computer-readable storage medium for storing a computer program, the computer program including instructions for executing the method in the above-mentioned first aspect and any possible implementation manner of the above-mentioned first aspect.
  • a chip including at least one processor and an interface; the at least one processor is used to call and run a computer program, so that the chip executes the above-mentioned first aspect and the above-mentioned first aspect method in any possible implementation of .
  • the above-mentioned chip may be a system on chip (system on chip, SOC), or a baseband chip, etc., wherein the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, and the like.
  • SOC system on chip
  • baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, and the like.
  • a system including the network device described in the second aspect, the third aspect or the fourth aspect.
  • FIG. 1 is a schematic diagram of a system architecture 100 suitable for the address reservation method provided by the present application.
  • FIG. 2 is a schematic flowchart of a method 100 for address reservation provided by the present application.
  • FIG. 3 is a schematic flowchart of a method 200 for a network device to assign an IP address to a first terminal device according to the first information provided by the present application.
  • FIG. 4 is a schematic flowchart of a method 300 for a network device to reserve an IP address for a first terminal device according to the first information provided by the present application.
  • FIG. 5 is a schematic flowchart of a method 400 for address reservation provided by the present application.
  • FIG. 6 is a schematic flowchart of a method 500 for address reservation provided by the present application.
  • FIG. 7 is a schematic flowchart of a method 600 for address reservation provided by the present application.
  • FIG. 8 is a schematic structural diagram of a network device 1000 provided by the present application.
  • FIG. 9 is a schematic structural diagram of a network device 1100 provided by the present application.
  • FIG. 10 is a schematic structural diagram of a network device 1200 provided by the present application.
  • FIG. 11 is a schematic structural diagram of a network system 1300 provided by the present application.
  • first terminal device and the second terminal device are not specifically limited in this application.
  • the first terminal device and/or the second terminal device may be a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality) , AR) terminal equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid , wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) Telephones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, available Wearable devices, terminal devices in 5G networks, terminal devices in non-public networks, etc.
  • a virtual reality (virtual reality, VR) terminal device an augmented reality (augmented reality) , AR) terminal equipment
  • wireless terminals in industrial control wireless terminals in self
  • wearable devices can also be called wearable smart devices, which is a general term for the intelligent design of daily wear and the development of wearable devices using wearable technology, such as glasses, gloves, watches, clothing and shoes.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories.
  • Wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-scale, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones. Use, such as all kinds of smart bracelets, smart jewelry, etc. for physical sign monitoring.
  • first terminal device and/or the second terminal device may also be terminal devices in an internet of things (internet of things, IoT) system.
  • IoT internet of things
  • IoT is an important part of the development of information technology in the future. Its main technical feature is to connect items to the network through communication technology, so as to realize the intelligent network of human-machine interconnection and interconnection of things.
  • the network device in order to improve the efficiency of the terminal device accessing the network, usually in the process of switching the terminal device from the online state to the offline state (that is, the terminal device goes offline), configure the network device according to the MAC address of the terminal device and the The dynamic host configuration protocol unique identifier (dhcp unique identifier, DUID) of the terminal device reserves the IP address used by the terminal device before going offline this time for the terminal device. Therefore, when the terminal device requests to go online again, the network device can assign the previously reserved IP address to the terminal device, so that the terminal device can use the reserved IP address to access the network.
  • dhcp unique identifier DUID
  • the existing address reservation method cannot meet the requirement of reserving address resources for terminal equipment.
  • the MAC address of terminal device #1 and the MAC address of terminal device #2 are the same and are MAC address #1
  • the DUID of terminal device #1 and the DUID of terminal device #2 All are the same and are DUID#1.
  • the network device receives the network access request of terminal device #1 and terminal device #2 at the same time.
  • terminal device #2 reserves an IP address (for example, the IP address used by terminal device #1 to access the network this time, or the IP address used by terminal device #2 to access the network this time).
  • the present application provides an address reservation method and network device, which can meet the requirements of reserving address resources for terminal devices.
  • FIG. 1 For ease of understanding, a system architecture applicable to this embodiment of the present application is described in detail first with reference to FIG. 1 .
  • FIG. 1 is a schematic diagram of a system architecture 100 suitable for the address reservation method provided by the present application.
  • the system architecture 100 may include a terminal device 110 , a terminal device 111 and a network device 130 .
  • Terminal equipment 110 and/or terminal equipment 111 may be connected via a Layer 2 network, an asymmetric digital subscriber line (ADSL) (eg, using a digital subscriber line access multiplexer (DSLAM)) ) to access the network device 130.
  • ADSL asymmetric digital subscriber line
  • DSL digital subscriber line access multiplexer
  • the method for the terminal device 110 and/or the terminal device 111 to access the network device through the Layer 2 network is the same as the existing method, which will not be described in detail here.
  • the network device 130 may allocate an IP address or an IP address prefix to the terminal device 110 and/or the terminal device according to the access request of the terminal device 110 and/or the terminal device 111 .
  • the network device 130 may assign the locally stored IP address to the terminal device 110 and/or the terminal device 111 .
  • the IP address stored locally by the network device 130 may be understood as the IP address stored in the local address pool of the network device 130 .
  • the network device 130 may be a network device that accesses an internet protocol version 6 (IPv6) network.
  • IPv6 network may include a remote authentication dial in user service (RADIUS) server, a Next Generation Network (NGN) server, and the like.
  • RADIUS remote authentication dial in user service
  • NTN Next Generation Network
  • the specific type of the network device 130 is not limited.
  • the above-mentioned network device 130 may be a broadband remote access server (BRAS).
  • BRAS broadband remote access server
  • the above-mentioned network device 130 may also be other devices including BRAS.
  • FIG. 1 is only for illustration and does not constitute any limitation to the present application.
  • the system architecture 100 may further include a greater number of terminal devices or a greater number of network devices, and the like.
  • FIG. 2 is a schematic flowchart of a method 100 for address reservation provided by the present application. As shown in FIG. 2 , the method 100 may include steps 110 to 130 , and the steps 110 to 130 will be described in detail below.
  • Step 110 after the first terminal device accesses the network through the network device, the network device obtains the first information of the first terminal device and the first Internet Protocol IP address, the first information includes the first media access control MAC address and the first connection. ingress port information, wherein the first MAC address indicates the first terminal device, the first access port information indicates the information of the first port where the network device receives the access request of the first terminal device, and the first IP address is assigned by the network device to the first terminal device. An IP address of a terminal device and used for the first terminal device to access the network.
  • the first terminal device accesses the network through the network device
  • the network device allocates an IP address to the first terminal device
  • the first terminal device uses the IP address allocated by the network device to access the network through the network device.
  • the IP address allocated by the network device to the first terminal device may be an IP address (eg, an IPv6 address) in the local address pool of the network device.
  • the first terminal device may be the terminal device 110 in FIG. 1 .
  • the first terminal device may also be the terminal device 111 in FIG. 1 .
  • the network device may be network device 130 in FIG. 1 .
  • network device 130 may be a BRAS device.
  • the network device 130 may be other devices including BRAS devices.
  • the first information may include a first media access control MAC address and first access port information, where the first MAC address indicates the first terminal device, and the first access port information indicates that the network device receives the first Information about the first port of the access request of the terminal device, where the first IP address is the IP address allocated 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 (virtual local area network, VLAN) identifier and a first port identifier, where the first port identifier is used to indicate the first port, and the first VLAN identifier is used to indicate the first port.
  • VLAN virtual local area network
  • the first IP address may be an IPv6 address.
  • the first IP address may be an IPv6 address prefix.
  • the first information may include the first MAC address, the first VLAN identifier and the first port identifier.
  • the first information may further include first access link information of the first terminal device, where the first access link information indicates the 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 this 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 further include option18 option information and option37 option.
  • the first information may include the first MAC address, the first access port information and the first access link information.
  • the first information may include a first MAC address, a first VLAN identifier, first port information, and option82 option information.
  • the first information may include a first MAC address, a first VLAN identifier, first port information and option18 option information.
  • the first information may include the first MAC address, the first VLAN identifier, the first port information, and option18 option information and option37 option information.
  • the first information further includes the dynamic host configuration protocol unique identifier DUID of the first terminal device.
  • 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.
  • the first information may include the first MAC address, the first VLAN identifier, the first port identifier, option82 option information, and the DUID of the first terminal device.
  • the first information may also include only the first MAC address and the first access port information.
  • the first information may include the first MAC address, the first VLAN identifier, and the first port information.
  • the first information may also include only the first MAC address, the first access port information, and the DUID of the first terminal device.
  • the first information may also include only the first MAC address and the first access link information.
  • the first information when the first access link information includes option82 option information, the first information may include the first MAC address and option82 option information.
  • the first information when the first access link information includes option37 option information, the first information may include the first MAC address and option37 option information.
  • the first information may also include only the first MAC address, the first access link information, and the DUID of the first terminal device.
  • Step 120 the network device determines a first correspondence, where the first correspondence is a correspondence between the first information and the first IP address.
  • the network device may determine the first correspondence.
  • Step 130 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 the reserved state according to the first correspondence.
  • the first terminal device before the first terminal device is switched 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, before the first terminal device switches from the online state to the offline state, the first terminal device occupies the first IP address.
  • the first information may further include a reservation period.
  • the reservation period is used to indicate the period for which the network device reserves the first IP address for the first terminal device.
  • the network device determines the state of the first IP address corresponding to the first information as the reserved state according to the first correspondence, including:
  • the network device determines the state of the first IP address corresponding to the first information as the reservation state according to the first correspondence;
  • the network device deletes the first correspondence, and updates the state of the first IP address corresponding to the first information from the reserved state to the unoccupied state.
  • the network device may determine whether to reserve the first terminal device corresponding to the first information for the first terminal device when the first terminal device switches from the online state to the offline state according to the reservation period included in the first information.
  • the IP address can avoid the waste of network resources caused when the first IP address is in the reserved state for a long time.
  • the manner of configuring the reservation period and the period length of the reservation period are not specifically limited.
  • the network device may determine a reservation period for reserving the first IP address for the first terminal device according to the current network state.
  • a reservation period for reserving the first IP address for the first terminal device by the network device may be manually configured.
  • the reservation period can be 5, 10, 15, 20 or 30 hours, etc.
  • the period length of the reservation period may also take other values. This application does not limit this.
  • the method further includes:
  • the network device receives the first access request information of the first terminal device, where the first access request information is used to request the network device to assign the IP address of the first terminal device to access the network device according to the first access port information to the first terminal device ;
  • the network device allocates the first IP address to the first terminal device according to the first access request information and the first correspondence;
  • the network device updates the state of the first IP address from the reserved state to the occupied state.
  • the network device assigns the first IP address to the first terminal device according to the first access request information and the first correspondence, including:
  • the network device When the network device detects the first correspondence and the state of the first IP address is the reserved state, the first IP address is allocated to the first terminal device.
  • the network device reserves the first IP address corresponding to the first information for the first terminal device after the first terminal device goes offline.
  • the network device can The first IP address is allocated to the first terminal device according to the detected first correspondence (ie, the correspondence between the first information and the first IP address), thereby improving the efficiency of the first terminal device accessing the network.
  • the network device may perform the following operations:
  • the second IP address is an IP address used by 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.
  • the network device does not detect the first correspondence, which can be understood as the network device does not detect the first correspondence outside the reservation period.
  • the time corresponding to the time when the network device determines the first correspondence to the time corresponding to when the network device receives the first access request is greater than the reservation period.
  • the network device deletes the first correspondence, so at Outside the reservation period, the network device will not be able to detect the first correspondence.
  • the method further includes:
  • the network device receives the second access request information of the second terminal device, where the second access request information is used to request the network device to assign to the second terminal device the IP address of the second terminal device accessing the network device according to the second access port information , the second terminal device is different from the first terminal device;
  • the network device determines that the second information of the second terminal device is the same as the first information, the second information includes the 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 The network device receives the information of the second port of the access request of the second terminal device;
  • the network device allocates the first IP address to the second terminal device according to the second access request and the first correspondence.
  • the network device may assign the first IP address to the second terminal device according to the second access request information and the first correspondence, including: when the network device detects the first correspondence and the state of the first IP address is pre-defined In the remaining state, assign the first IP address to the second terminal device.
  • the above-mentioned second access port information may include 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 the broadcast domain to which the second port belongs.
  • the second information further includes second access link information of the second terminal device, where the second access link information indicates the 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 further include option18 option information and option37 option.
  • the second information may include the second MAC address, the second access port information and the second access link information.
  • the optional second information may further include the DUID of the second terminal device.
  • 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.
  • the second information may include the second MAC address, the second VLAN identifier, the second port identifier, option82 option information, and the DUID of the second terminal device.
  • the second information may include the second MAC address, the second VLAN identifier, the second port identifier, option37 option information, and the DUID of the second terminal device.
  • the second information may also include only the second MAC address and the second access port information.
  • the second information may include the second MAC address, the second VLAN identification, and the second port information.
  • the second information may also include only the second MAC address, the second access port information, and the DUID of the second terminal device.
  • the second information may also include only the second MAC address and the second access link information.
  • the second information when the second access link information includes option82 option information, the second information may include the second MAC address and option82 option information.
  • the second information when the second access link information includes option18 option information, the second information may include the second MAC address and option18 option information.
  • the second information may also include only the second MAC address, the second access link information, and the DUID of the second terminal device.
  • the second information of the second terminal device is the same as the first information. It can be understood that the type of information included in the first information is the same as the type of information included in the second information, and the above two are of the same type. The information corresponds to the same content.
  • 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
  • the first MAC address and the second MAC address The same, 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 can be determined that the second information is the same as the first information.
  • the network device when the network device determines that the first information of the first terminal device and the second information of the second terminal device are the same, and the network device detects that there is a first IP address reserved according to the first information and the first IP address is When the state of the address is the reserved state, the network device may allocate the first IP address to the second terminal device.
  • a third IP address is allocated to the second terminal device.
  • the network device when the network device detects the first correspondence and the state of the first IP address is the occupied state, it can be understood that the first IP address may be in the state of being occupied by the first terminal device. Specifically, after the network device receives the first access request from the first terminal device, the network device may assign the first IP address to the first terminal device according to the first access request and the first correspondence, and the first terminal device may Access the network through the network device using the first IP address. In this case, the first IP address is in a state of being occupied by the first terminal device.
  • the third IP address is an IP address used by 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.
  • the network device when the network device determines that the first information of the first terminal device and the second information of the second terminal device are the same, and the network device detects that there is a first IP address reserved according to the first information and the first IP address is When the state of the address is the occupied state, the network device may assign the third IP address in the unoccupied state to the second terminal device.
  • the network device may further perform the following operations:
  • the third IP address is an IP address used by 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.
  • the first IP address when the network device does not detect the first correspondence, and the state of the first IP address is the occupied state, it can be understood that the first IP address may be in any state other than the second terminal device.
  • the state in which an end device is occupied For example, in this case, the first IP address may be in a state of being occupied by a first terminal device, or the first IP address may be in a state of being occupied by a third terminal device, wherein the third terminal device and the second terminal device and the first terminal device are different terminal devices.
  • the network device when the first information of the first terminal device and the second information of the second terminal device are the same, when the network device detects that there is a first IP address reserved according to the first information and the first IP address When the state is the occupied state, the network device can assign the third IP address in the unoccupied state to the second terminal device, so the second terminal device can successfully access the network through the network device.
  • the method when the network device detects the first correspondence and the state of the first IP address is the occupied state, after allocating the third IP address to the second terminal device, the method further includes:
  • the network device determines that the second terminal device switches from the online state to the offline state at the first moment, and the first terminal device switches from the online state to the offline state before the first moment, it updates the first correspondence to the second Correspondence, the second correspondence is the correspondence between the first information and the third IP address, or the correspondence between the second information and the third IP address;
  • the network device 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.
  • the method further includes:
  • the network device determines that the second terminal device switches from the online state to the offline state at the second moment, and the first terminal device switches from the online state to the offline state after the second moment, the first correspondence is not updated;
  • the network device updates the state of the first IP address from the occupied state to the reserved state.
  • the network device can The first access port information in the information and the second access port information in the second information further identify the first terminal device and the second terminal device. In this case, the network device can 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 provided by the present application can better meet the requirement of reserving address resources for terminal equipment.
  • FIG. 3 and FIG. 4 are for illustration only and do not constitute any limitation to the present application.
  • the process 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 processes shown in FIG. 3 and FIG. 4 .
  • the network device allocates an IP address to the first terminal device according to the first information.
  • FIG. 3 is a schematic flowchart of a method 200 for a network device to assign an IP address to a first terminal device according to the first information provided by the present application.
  • the method 200 may include steps 210 to 251 , and the steps 210 to 251 will be described in detail below. It should be understood that FIG. 3 is only for illustration and does not constitute any limitation to the method for allocating an IP address to the first terminal device by the network device according to the first information in the present application.
  • Step 210 the network device is configured with 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 access the network through the network device.
  • Step 220 the network device queries whether there is an IP address reserved for the first terminal device according to the first information.
  • step 230 is performed after step 220; otherwise, step 240 is performed after step 220.
  • 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 the reserved state.
  • step 250 is performed after step 230; otherwise, step 250 is performed.
  • step 240 is executed after step 230 .
  • Step 240 the network device notifies the first terminal device that the second IP address in the unoccupied state can be used to access the network.
  • step 230 and step 240 are not specifically limited.
  • step 230 may be performed first and then step 240 may be performed.
  • step 240 may be performed first and then step 230 may be performed.
  • step 241 may also be performed.
  • Step 241 the first terminal device uses the second IP address to access the network through the network device, and updates the state of the second IP address from the unoccupied state to the occupied state.
  • Step 250 the network device notifies the first terminal device that the first IP address can be used to access the network through the network device.
  • Step 251 the first terminal device uses the first IP address to access the network through the network device, and updates the state of the first IP address from the reserved state to the occupied state.
  • 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 the first MAC address, the first VLAN identifier and the first port information, which will not be described in detail here.
  • the network device reserves the IP address for the first terminal device according to the first information.
  • FIG. 4 is a schematic flowchart of a method 300 for a network device to reserve an IP address for a first terminal device according to the first information provided by the present application. As shown in FIG. 4 , the method 300 may include steps 310 to 370 , and the steps 310 to 370 will be described in detail below.
  • Step 310 the network device is configured with 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.
  • step 310 is the same as the existing method of requesting a disconnected network by a terminal device, and details are not described herein again.
  • Step 320 the network device determines whether the reservation period is included in the first information.
  • step 330 is performed after step 320; otherwise, step 340 is performed.
  • Step 330 The network device reserves the first IP address corresponding to the first information to the first terminal device, and records the reservation period.
  • Step 331 the network device updates the state of the first IP address from the occupied state to the reserved state.
  • Step 340 The network device reserves the first IP address corresponding to the first information to the first terminal device.
  • step 340 and step 330 is not specifically limited. For example, after step 320, step 330 may be performed first and then step 340 may be performed. Alternatively, after step 340, step 330 may be performed first and then step 330 may be performed.
  • step 341 may also be performed.
  • Step 341 the network device updates the state of the first IP address from the occupied state to the reserved state.
  • step 350 the network device determines whether the reservation period has expired.
  • step 360 is performed; otherwise, step 370 is performed.
  • Step 360 the network device updates the state of the first IP address from the reserved state to the unoccupied state.
  • step 360 and step 370 is not specifically limited.
  • step 360 may be performed first and then step 370 may be performed.
  • step 370 may be performed first and then step 360 may be performed.
  • Step 370 the network device does not update the state of the first IP address, that is, the state of the first IP address is the reserved state.
  • the first information in steps 310 to 370 may be any of the first information in method 100, for example, the first information may include the first MAC address, the first VLAN identifier, the first port information and the preset The retention period will not be described in detail here.
  • FIG. 4 is only for illustration and does not constitute any limitation to the method for the network device to reserve an IP address for the first terminal device according to the first information in this application.
  • the first information may not include a reservation period, and in this case, 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 steps 330, 331, 350, and 360 are optional steps.
  • FIG. 5 is a schematic flowchart of a method 400 for address reservation provided by the present application. As shown in FIG. 5 , the method 400 may include steps 410 to 450 , and the steps 410 to 450 will be described below.
  • the terminal device 110 accesses the IP network through the network device 130, and the network device 130 (ie, the above-mentioned method 100, method 200 or method An example of the network device in 300) obtains first information and IP address #1 (that is, an example of the first IP address in the above method 100, method 200 or method 300), the first information includes the first MAC, the first VLAN identification, first port identification and reservation period.
  • the terminal device 110 accesses the network through the network device 130 , it can be understood that after the network device 130 assigns an IP address to the terminal device 110 , the terminal device 110 uses the IP address assigned by the network device 130 to access the network through the network device 130 . It can be understood that the IP address allocated by the network device 130 to the terminal device 110 may be an IP address (eg, an IPv6 address) in the local address pool of the network device 130 .
  • the network device 130 may be a BRAS device.
  • the first information may include a first MAC, a first VLAN identifier, a first port identifier, and a reservation period.
  • a first MAC 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.
  • Step 420 the network device 130 determines the first correspondence.
  • the first correspondence may be understood as the correspondence between the first information and the IP address #1.
  • the network device 130 may determine the first correspondence.
  • Step 430 within the reservation period, when the network device 130 determines that the terminal device 110 is switched from the online state to the offline state, it determines the state of the IP address #1 corresponding to the first information as the reserved state according to the first correspondence.
  • 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.
  • 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 assign the terminal device 110 an IP address for the terminal device 110 to access the network device 130 according to the first access port information.
  • Step 450 within the reservation period, the network device 130 allocates IP address #1 to the terminal device 110 according to the first access request information and the first correspondence, and updates the state of IP address #1 to the occupied state.
  • the time corresponding to the time when the network device determines the first correspondence to the time corresponding to when the network device receives the first access request sent by the terminal device 110 is less than the reservation period.
  • the network device 130 may allocate the IP address #1 to the terminal device 110 according to the first access request information and the first correspondence, which specifically includes: the network device 130 detects the first correspondence, and the IP address #1 When the state of 1 is the reserved state, the network device 130 assigns the IP address #1 to the terminal device 110 .
  • the network device 130 may also allocate an IP address to the terminal device 110 according to the first access request.
  • the network device 130 may allocate the IP address #1 to the terminal device 110 according to the first access request, and assign the IP address #1 to the terminal device 110.
  • the state of 1 is updated to the occupied state.
  • the network device 130 can allocate a second IP address to the terminal device 110 according to the first access request, and assign the second IP address to the second IP address.
  • the state is updated to the occupied state, wherein the IP address #1 and the second IP address are different IP addresses.
  • the time corresponding to the time when the network device determines the first correspondence to the time corresponding to when the network device receives the first access request sent by the terminal device 110 is greater than the reservation period.
  • the first information may include the first MAC, the first VLAN ID, the first port ID, the DUID of the terminal device 110 and the reservation period.
  • the first information may include the first MAC, the first access link information and the reservation period.
  • the first information may include the first MAC, the first access link information, and option82 option information.
  • the first information may include the first MAC, the first access link information, and option37 option information.
  • the terminal device 110 may also be the terminal device 111 in FIG. 1 .
  • the network device may reserve the IP address #1 used by the terminal device 110 before the current offline for the terminal device 110 according to the first information. After that and within the reservation period, when the network device 130 receives the online request of the terminal device 110, the network device 130 can more accurately identify the terminal device 110 according to the first information, and use the reserved IP address #1 is allocated to the terminal device 110, so that the efficiency of the terminal device 110 accessing the network can be improved.
  • FIG. 6 is a schematic flowchart of a method 500 for address reservation provided by the present application. As shown in FIG. 6 , the method 500 may include steps 510 to 570 , and the steps 510 to 570 will be described below.
  • Step 510 the terminal device 110 (ie, an example of the first terminal device in the above method 100, method 200 or method 300) passes through the network device 130 (ie, an example of the network device in the above method 100, method 200 or method 300) After accessing the IP network, the network device 130 obtains first information and IP address #1 (that is, an example of the first IP address in the above method 100, method 200, or method 300), where the first information includes the first MAC address, the first IP address, and the first IP address.
  • Step 520 the network device 130 determines the first correspondence.
  • Step 530 when the network device 130 determines that the terminal device 110 is switched from the online state to the offline state, it determines the state of the IP address #1 corresponding to the first information as the reserved state according to the first correspondence.
  • Step 540 The network device 130 receives the first access request information sent by the terminal device 110.
  • 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 correspondence, and updates the state of the IP address #1 to the occupied state.
  • Step 560 the network device 130 receives the second access request information sent by the terminal device 110 .
  • Step 570 The network device 130 allocates an IP address #2 to the terminal device 111 according to the second access request information and the first correspondence.
  • the first information may include the first MAC, the first VLAN ID, the first port ID, the DUID of the terminal device 110 and the reservation period.
  • a greater number of terminal devices 111 and/or a greater number of terminal devices 110 may also be included.
  • option82 option information in the above method 500 may also be replaced with option37 option information or option18 option information.
  • option82 option information in the above method 500 may also be replaced with option37 option information and option18 option information.
  • the network device can reserve the IP address #1 used by the terminal device 110 before the current offline for the terminal device 110 according to the first information.
  • 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 state of the IP address #1 is the reserved state, the network device 130 can allocate the IP address #1 in the reserved state to the terminal device 111, so that the efficiency of the terminal device 111 accessing the network can be improved.
  • the MAC address of the terminal device 110 and the MAC address of the terminal device 111 in FIG. 1 are the same and are MAC address #1, and the DUID of the terminal device 110 and the DUID of the terminal device 111 are both the same and are in the scene of DUID#1.
  • the network device 130 When the function that the network device 130 can reserve an IP address according to the MAC address #1 and DUID #1 is configured, the state of the terminal device 110 is in the online state, the terminal device 111 requests the network device 130 to allocate an IP address, and the network device 130 according to When MAC address #1 and DUID #1 query and find that the IP address reserved based on MAC address #1 and DUID #1 is IP address #1, and the status of this IP address #1 is occupied, use the reserved IP address of the existing address. In the method, the network device 130 cannot successfully assign an IP address to the terminal device 111, so the terminal device 111 cannot go online successfully through the network device 130, so that the terminal device 111 cannot work normally online.
  • the first information may only include the first MAC address and the DUID of the terminal device 110.
  • the state of 110 is the online state, the IP address is successfully allocated to the terminal device 111 .
  • the network device is based on the MAC address and the DUID of the terminal device.
  • the terminal device 110 goes online through the network device 130 and the state of the terminal device 110 is the online state , how to successfully assign an IP address to the terminal device 111.
  • FIG. 7 is a schematic flowchart of a method 600 for address reservation provided by the present application. As shown in FIG. 7 , the method 600 may include steps 610 to 680 , and the steps 610 to 680 will be described below.
  • Step 610 the terminal device 110 (ie, an example of the first terminal device in the above method 100, method 200 or method 300) passes through the network device 130 (ie, an example of the network device in the above method 100, method 200 or method 300) After accessing the IP network, the network device 130 obtains first information and IP address #1 (ie, an example of the first IP address in the above method 100, method 200 or method 300), the first information includes the first MAC address and the terminal DUID of device 110.
  • IP address #1 ie, an example of the first IP address in the above method 100, method 200 or method 300
  • Step 620 the network device 130 determines the 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, it determines the state of the IP address #1 corresponding to the first information as the reserved state according to the first correspondence
  • Step 640 the network device 130 receives the first access request message from the terminal device 110 .
  • the first access request information is used to request the network device 130 to assign the terminal device 110 an IP address 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 .
  • the first MAC address and the DUID of the terminal device 110 reference may be made to the method 100, and details are not repeated here.
  • Step 650 the network device 130 allocates IP address #1 to the terminal device 110 according to the first access request information and the first correspondence, and updates the state of the IP address #1 from the reserved state to the occupied state.
  • Step 660 the network device 130 receives the second access request message from the terminal device 111 (ie, an example of the second terminal device in the above method 100, method 200 or method 300).
  • the second access request information is used to request the network device 130 to assign the terminal device 111 an IP address for the terminal device 111 to access the network device 130 according to the second information.
  • the second information of the terminal device 111 may include the second MAC address and the DUID of the terminal device 111.
  • the second MAC address and the DUID of the terminal device 111 reference may be made to the method 100, and details are not repeated here.
  • Step 670 The network device 130 allocates IP address #2 (ie, an example of the third IP address in the above method 100, method 200 or method 300) to the terminal device 111 according to the second access request information and the first correspondence.
  • IP address #2 ie, an example of the third IP address in the above method 100, method 200 or method 300
  • the network device 130 allocates a third IP address to the terminal device 111 according to the second access request information and the first correspondence, which specifically includes:
  • the network device 130 determines that the first MAC address is the same as the second MAC address, and the DUID of the terminal device 110 is the same as the DUID of the terminal device 111;
  • the network device 130 When the network device 130 detects the first correspondence, and the state of the IP address #1 is the occupied state, the first terminal device is allocated an IP address #2.
  • the IP address #2 is an unoccupied address, and the IP address #2 is different from the IP address #1.
  • the first correspondence can be understood as the correspondence between IP#1 or IP#2 and the first information.
  • the first correspondence can also be understood as the correspondence between IP#1 or IP#2 and the second information.
  • step 680 the network device 130 compares the time corresponding to the time when the terminal device 110 is switched from the online state to the offline state with the time corresponding to the time when the terminal device 111 is switched from the online state to the offline state, and determines whether to update the first correspondence to the second. Correspondence.
  • the network device 130 determines that the terminal device 111 switches from the online state to the offline state at the first moment, and the terminal device 110 switches from the online state to the offline state before the first moment, the first corresponding The relationship is updated to a second corresponding relationship, and the second corresponding relationship is the corresponding relationship between the first information and the IP address #2, or the corresponding relationship between the second information and the IP address #2; and the network device 130 converts the IP address The state of #2 is updated from the occupied state to the reserved state, and the state of the first IP address is updated from the occupied state to the unoccupied state.
  • the network device 130 determines that the second terminal device switches from the online state to the offline state at the second moment, and the terminal device 110 switches from the online state to the offline state after the second moment, no update is made. a first correspondence; and the network device 130 updates the state of the first IP address from the occupied state to the reserved state.
  • the first moment and the second moment are not specifically limited.
  • the first moment may be a moment before the second moment.
  • the first time may be a time after the second time.
  • the first information may also include a lease term.
  • the first information may also be any kind of first information involved in the method 100 of the present application.
  • the network device 130 allocates the reserved IP address #1 to the terminal device 110 according to the first correspondence, and the terminal device 110 is in the offline state.
  • the network device 130 can still assign the unused IP address #2 to the terminal Device 111, wherein IP address #2 is not the same as IP address #1.
  • a method for address reservation provided by the present application and a system architecture suitable for the method are described in detail above with reference to FIG. 1 to FIG. 7 .
  • the network device provided by the present application and the hardware structure of the network device will be described in detail with reference to FIG. 8 to FIG. 11 . It should be understood that the descriptions of the method embodiments correspond to the descriptions of the apparatus embodiments. Therefore, for the parts not described in detail, reference may be made to the foregoing method embodiments.
  • the device 1000 has the network device in the above-mentioned method 100, method 200, and method 300, or has any function of the network device 130 in the above-mentioned method 400 and method 500. As shown in FIG.
  • the network device 1000 includes an obtaining unit 1010 for executing steps 440 , 540 , 640 or 660 related to obtaining the first information and the first IP address in the foregoing step 110 ; optionally, the The network device 1000 further includes: a determining unit 1020 for performing the above steps 120, 130, 220, 230, 420, 520 or 630, etc.; optionally, the network device 1000 further includes: a processing unit 1040 , which is used to perform the relevant steps of updating the state of the first IP address in the above steps or the relevant steps of connecting 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 embodiments, such as: the network device 130, the modules in the network device 1000 and the other operations and/or functions described above are respectively implemented to implement various methods implemented by the network device in the method embodiments.
  • the steps and methods refer to the above-mentioned method 100 , method 200 , method 300 , method 400 or method 500 , which are not repeated here for brevity.
  • the embodiments of the present application further provide a network device, and the 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 embodiments, and the hardware, modules, and the foregoing other operations and/or functions in the network device 1100 or the network device 1200 are respectively for implementing the method embodiments.
  • the detailed process of how the network device 1100 or the network device 1200 reserves an address for the terminal device based on the network device can refer to the above method embodiments for details. For brevity, It is not repeated here.
  • each step of the above method 100 , method 200 , method 300 , method 400 or method 500 is completed by an integrated logic circuit of hardware in the processor of the network device 1100 or the network device 1200 or instructions in the form of software.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here
  • the network device 1100 or the network device 1200 corresponds to each functional module in the network device 1000 in the foregoing virtual appliance embodiment, and is implemented by using the software of the network device 1100 or the network device 1200 .
  • the functional modules included in the network device 1000 are generated after the processor of the network device 1100 or the network device 1200 reads the program codes stored in the memory.
  • FIG. 9 is a schematic structural diagram of a network device 1100 provided by the present application, and the network device 1100 may be configured as a network device.
  • the network device 1100 may be implemented by a general bus architecture.
  • the network device 1000 includes at least one processor 1101 , a communication bus 1102 , a 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 for implementing the solutions of the present application, such as application-specific integrated circuits (ASIC), programmable logic A device (programmable logic device, PLD) or a combination thereof.
  • ASIC application-specific integrated circuits
  • PLD programmable logic A device
  • the above-mentioned PLD can be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
  • a communication bus 1102 is used to transfer information between the aforementioned components.
  • the communication bus 1102 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the memory 1103 can be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be random access memory (RAM) or can store information and instructions Other types of dynamic storage devices, it can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage , optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 1103 may exist independently and be connected to the processor 1101 through the communication bus 1102 .
  • the memory 1103 may also be integrated with the processor 1101 .
  • the Communication interface 1104 uses any transceiver-like device for communicating with other devices or a communication network.
  • the communication interface 1104 includes a wired communication interface and may also include a wireless communication interface.
  • the wired communication interface may be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface or a combination thereof.
  • the wireless communication interface may be a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface or a combination thereof, and the like.
  • the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 9 .
  • the network device 1000 may include multiple processors, such as the processor 1101 and the processor 1105 as shown in FIG. 9 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the network device 1000 may further include an output device 1106 and an input device 1107 .
  • the output device 1106 is in communication with the processor 1101 and can display information in a variety of ways.
  • 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, or the like .
  • Input device 1107 is in communication with processor 1101 and can receive user input in a variety of ways.
  • the input device 1107 may be a mouse, a keyboard, a touch screen device or a sensing device, or the like.
  • the memory 1103 is used to store the program code 1110 for executing the solutions of the present application, and the processor 1101 can execute the program code 1110 stored in the memory 1103 . That is, the network device 1000 can implement the method 100 , the method 200 , the method 300 , the method 400 or the method 500 provided by the method embodiment through the processor 1101 and the program code 1110 in the memory 1103 .
  • the network device 1100 in this embodiment of the present application may correspond to the network device in each of the foregoing method embodiments, and the processor 1101, the communication interface 1104, etc. in the network device 1100 may implement the functions of the devices in the foregoing method embodiments. functions and/or various steps and methods implemented. For brevity, details are not repeated here.
  • the obtaining unit 1010 in the network device 1000 may be equivalent 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 be equivalent to the processor 1101 in the network device 1100 .
  • FIG. 10 is a schematic structural diagram of a network device 1200 provided by the present application, and 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 the main processing unit (main processing unit, MPU) or the route processor card (route processor card).
  • the main control board 1210 is used to control and manage various components in the network device 1200 Management, equipment maintenance, protocol processing functions.
  • the main control board 1210 includes: a central processing unit 1211 and a memory 1210 .
  • the interface board 1230 is also referred to as a line processing unit (LPU), a line card or a service board.
  • the interface board 1230 is used to provide various service interfaces and realize data packet forwarding.
  • the service interface includes, but is not limited to, an Ethernet interface, a POS (Packet over SONET/SDH) interface, etc.
  • the Ethernet interface is, for example, a flexible Ethernet service interface (Flexible Ethernet Clients, FlexE Clients).
  • the interface board 1230 includes: a central processing unit 1231 , a network processor 1232 , a forwarding table entry memory 1234 and a physical interface card (ph8sical interface card, PIC) 1233 .
  • the central processing unit 1231 on the interface board 1230 is used to control and manage the interface board 1230 and communicate with the central processing unit 1211 on the main control board 1210 .
  • the network processor 1232 is used to implement packet forwarding processing.
  • the form of the network processor 1232 may be a forwarding chip.
  • the network processor 1232 is configured to forward the received message based on the forwarding table stored in the forwarding table entry memory 1234. If the destination address of the message is the address of the network device 1200, the message is sent to the CPU (such as processing by the central processing unit 1211); if the destination address of the packet is not the address of the network device 1200, the next hop and outgoing interface corresponding to the destination address are found from the forwarding table according to the destination address, and the packet is forwarded to The outbound interface corresponding to the destination address.
  • the processing of the uplink packet includes: processing the incoming interface of the packet, and searching the forwarding table; processing of the downlink packet: searching the forwarding table, and so on.
  • the physical interface card 1233 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 1230 through this, and the processed packets are sent from the physical interface card 1233 .
  • the physical interface card 1233 is also called a daughter card, which can be installed on the interface board 1230 and is responsible for converting the optoelectronic signal into a message and forwarding the message to the network processor 1232 for processing after checking the validity of the message.
  • the central processing unit 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 card 1233 .
  • the network device 1200 includes multiple interface boards.
  • the network device 1200 further includes an interface board 1240 .
  • the interface board 1240 includes a central processing unit 1241 , a network processor 1242 , a forwarding table entry storage 1244 and a physical interface card 1243 .
  • the network device 1200 further includes a switch fabric board 1220 .
  • the switch fabric unit 1220 may also be referred to as a switch fabric unit (switch fabric unit, SFU).
  • SFU switch fabric unit
  • the switching network board 1220 is used to complete data exchange between the interface boards.
  • the interface board 1230 and the interface board 1240 can communicate through the switch fabric board 1220 .
  • the main control board 1210 and the interface board 1230 are coupled.
  • the main control board 1210 , the interface board 1230 , the interface board 1240 , and the switch fabric board 1220 are connected to the system backplane through a system bus to achieve intercommunication.
  • an inter-process communication (inter-process communication, 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 through the IPC channel.
  • IPC inter-process communication
  • the network device 1200 includes a control plane and a forwarding plane.
  • the control plane includes a main control board 1210 and a central processing unit 1231.
  • the forwarding plane includes various components that perform forwarding, such as forwarding entry storage 1234, physical interface card 1233, and network processing. device 1232.
  • the control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, and configuring and maintaining the status of devices.
  • the control plane issues the generated forwarding tables to the forwarding plane.
  • the network processor 1232 is based on the control plane.
  • the delivered forwarding table is forwarded to the packet received by the physical interface card 1233 by looking up the table.
  • the forwarding table issued by the control plane may be stored in the forwarding table entry storage 1234 . In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
  • the obtaining unit 1010 in the network device 1000 is equivalent 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 be equivalent to the network processor 1232 or the central processing unit 1211 in the network device 1200 .
  • the operations on the interface board 1240 in the embodiment of the present application are the same as the operations on the interface board 1230, and are not repeated for brevity.
  • the network device 1200 in this embodiment may correspond to the network device 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 all of the network devices in the foregoing method embodiments. For the sake of brevity, the functions and/or various steps implemented are not repeated here.
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, they may include the main main control board and the backup main control board.
  • a network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture.
  • the form of the network device can also be that there is only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board.
  • the central processing unit on the board can be combined into a central processing unit on this board to perform the functions of the two superimposed, the data exchange and processing capacity of this form of equipment is low (for example, low-end switches or routers and other networks. equipment).
  • the specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
  • the aforementioned network devices may be implemented as virtualized devices.
  • the virtualization device may be a virtual machine (English: Virtual Machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (for example, a physical server).
  • a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.
  • Virtual machines can be configured as network devices.
  • a network device can be implemented based on a general physical server combined with a network function virtualization (Network Functions Virtualization, NFV) technology.
  • Network devices are virtual hosts, virtual routers, or virtual switches.
  • a virtualization device may be a container, which is an entity used to provide an isolated virtualization environment, for example, a container may be a docker container.
  • Containers can be configured as network devices.
  • a network device can be created through a corresponding image.
  • a proxy-container (a container that provides proxy services) can be used to create a container instance for the proxy-container, which can be represented as a container instance proxy-container1.
  • the instance proxy-container1 is provided as a network device.
  • network devices can use the kernel of a physical machine to run, and multiple network devices can share the operating system of the physical machine. Different network devices can be isolated through container technology.
  • Containerized network devices can run in a virtualized environment, such as virtual machines, and containerized network devices can also run directly on physical machines.
  • a virtualized device can be a Pod, and a Pod is Kubernetes (Kubernetes is a container orchestration engine open sourced by Google, abbreviated as K8s in English) as the basic unit for deploying, managing, and orchestrating containerized applications.
  • a Pod can contain one or more containers. Each container in the same Pod is usually deployed on the same host, so each container in the same Pod can communicate through the host and can share the host's storage resources and network resources. Pods can be configured as network devices.
  • a container as a service can be instructed to create a Pod and provide the Pod as a network device.
  • the network device may also be other virtualized devices, which will not be listed here.
  • the above-mentioned network device may also be implemented by a general-purpose processor.
  • the general purpose processor may be in the form of a chip.
  • a general-purpose processor that implements a network device includes a processing circuit, an input interface and an output interface that are internally connected and communicated with the processing circuit, and the processing circuit is configured to perform the steps of generating messages in each of the above method embodiments through the input interface, The processing circuit is configured to perform the receiving step in the above method embodiments through the input interface, and the processing circuit is configured to perform the sending step in the above method embodiments through the output interface.
  • the general-purpose processor may further include a storage medium, and the processing circuit is configured to use the storage medium to perform the storage steps in each of the foregoing method embodiments.
  • the storage medium may store instructions executed by the processing circuit, where the processing circuit is configured to execute the instructions stored in the storage medium to perform the above-mentioned various method embodiments.
  • FIG. 11 is a schematic structural diagram of a network system 1300 provided by the present application.
  • the system 1300 includes: a network device 1310 .
  • the system 1300 may further include a first terminal device 1320 and/or a first and second terminal device 1330 .
  • the network device 1310 is, for example, the network device 1000 .
  • Embodiments of the present application provide a computer program product, which, when the computer program product runs on a network device, enables the network device to execute method 100 , method 200 , method 300 , method 400 or method 500 in the foregoing method embodiments.
  • the above apparatuses in various product forms respectively have any functions of the network equipment in the above method embodiments, which will not be repeated here.
  • the disclosed systems, devices and methods may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the unit is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
  • the units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present application.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • 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.
  • the technical solutions of the present application are essentially or part of contributions to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can 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.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program instructions may be transmitted from a website site, computer, server or data center via Wired or wireless transmission to another website site, computer, server or data center.
  • 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, data center, etc. that includes one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVDs), or semiconductor media (eg, solid state drives), and the like.
  • the term "and/or” in this application is only an association relationship to describe associated objects, which means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, and A and B exist at the same time. , there are three cases of B alone.
  • the character "/" in this document generally indicates that the contextual object is an "or” relationship; the term “at least one” in this application can mean “one” and "two or more", for example, A At least one of , B, and C can mean: A alone exists, B exists alone, C exists alone, A and B exist simultaneously, A and C exist simultaneously, C and B exist simultaneously, and A and B and C exist simultaneously. seven situations.

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

La présente demande concerne un procédé de réservation d'adresse. Le procédé comprend : lorsqu'un premier équipement terminal accède à un réseau au moyen d'un dispositif de réseau, le dispositif de réseau acquiert de premières informations et une première adresse IP du premier équipement terminal, les premières informations comprenant une première adresse MAC et de premières informations de port d'accès, la première adresse MAC indiquant le premier équipement terminal, les premières informations de port d'accès indiquant des informations concernant un premier port au moyen duquel le dispositif de réseau reçoit une demande d'accès du premier équipement terminal, et la première adresse IP étant une adresse IP attribuée par le dispositif de réseau au premier équipement terminal et utilisée pour que le premier équipement terminal accède au réseau ; le dispositif de réseau détermine une première correspondance, la première correspondance étant une correspondance entre les premières informations et la première adresse IP ; lorsque le dispositif de réseau détermine que le premier équipement terminal est commuté d'un état en ligne à un état hors ligne, le dispositif de réseau détermine l'état de la première adresse IP correspondant aux premières informations en tant qu'état de réservation selon la première correspondance, répondant ainsi aux exigences de réservation d'adresses pour des équipements terminaux.
PCT/CN2021/093130 2020-09-10 2021-05-11 Procédé de réservation d'adresse, dispositif de réseau et système WO2022052496A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010949604.6 2020-09-10
CN202010949604.6A CN114172753B (zh) 2020-09-10 2020-09-10 地址预留的方法、网络设备和系统

Publications (1)

Publication Number Publication Date
WO2022052496A1 true WO2022052496A1 (fr) 2022-03-17

Family

ID=80475759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/093130 WO2022052496A1 (fr) 2020-09-10 2021-05-11 Procédé de réservation d'adresse, dispositif de réseau et système

Country Status (2)

Country Link
CN (1) CN114172753B (fr)
WO (1) WO2022052496A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225612A (zh) * 2022-06-29 2022-10-21 济南浪潮数据技术有限公司 一种k8s集群预留ip的管理方法、装置、设备及介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116032888A (zh) * 2022-12-06 2023-04-28 中国联合网络通信集团有限公司 宽带接入方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447709A (zh) * 2012-01-17 2012-05-09 神州数码网络(北京)有限公司 基于DHCP和802.1x接入权限控制方法及系统
CN102546428A (zh) * 2012-02-03 2012-07-04 神州数码网络(北京)有限公司 基于DHCPv6侦听的IPv6报文交换系统及方法
CN104144092A (zh) * 2013-12-03 2014-11-12 国家电网公司 局域网终端自动接入方法
CN107528931A (zh) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 一种基于用户行为的ip地址自适应保持方法、装置及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635628B (zh) * 2009-08-28 2012-01-04 杭州华三通信技术有限公司 一种防止arp攻击的方法及装置
CN101640882B (zh) * 2009-09-07 2012-07-11 杭州华三通信技术有限公司 一种防止流量中断方法及装置
CN101888575B (zh) * 2010-07-28 2015-04-01 中兴通讯股份有限公司 一种实现端口地址绑定的配置方法和系统
CN102387223A (zh) * 2011-10-20 2012-03-21 北京科美特信息技术有限公司 一种酒店公共网络的公网ip地址资源管理和分配方法
CN103312836B (zh) * 2013-06-28 2016-08-10 国家电网公司 一种大型局域网络ip地址管理方法
CN106301909B (zh) * 2016-08-11 2019-09-17 新华三技术有限公司 一种端口探测方法和装置
CN110324246B (zh) * 2018-03-31 2021-12-24 华为技术有限公司 一种通信方法及装置
CN109474481B (zh) * 2018-12-27 2022-04-26 瑞斯康达科技发展股份有限公司 设备部署方法和系统、网管服务器、移动终端、存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447709A (zh) * 2012-01-17 2012-05-09 神州数码网络(北京)有限公司 基于DHCP和802.1x接入权限控制方法及系统
CN102546428A (zh) * 2012-02-03 2012-07-04 神州数码网络(北京)有限公司 基于DHCPv6侦听的IPv6报文交换系统及方法
CN104144092A (zh) * 2013-12-03 2014-11-12 国家电网公司 局域网终端自动接入方法
CN107528931A (zh) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 一种基于用户行为的ip地址自适应保持方法、装置及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225612A (zh) * 2022-06-29 2022-10-21 济南浪潮数据技术有限公司 一种k8s集群预留ip的管理方法、装置、设备及介质
CN115225612B (zh) * 2022-06-29 2023-11-14 济南浪潮数据技术有限公司 一种k8s集群预留ip的管理方法、装置、设备及介质

Also Published As

Publication number Publication date
CN114172753B (zh) 2023-04-07
CN114172753A (zh) 2022-03-11

Similar Documents

Publication Publication Date Title
US10757072B2 (en) Packet transmission method, apparatus, and system
US11558346B2 (en) Address management method and system, and device
US11399405B2 (en) Session management method, device, and system
CN110113441B (zh) 实现负载均衡的计算机设备、系统和方法
EP3720050A1 (fr) Procédé et appareil de déploiement de tranche de réseau
WO2022052496A1 (fr) Procédé de réservation d'adresse, dispositif de réseau et système
EP3806395B1 (fr) Procédé et appareil de déploiement de fonctions de réseau virtuel (vnf)
WO2018000202A1 (fr) Procédé, appareil et système de migration de charge
WO2022012489A1 (fr) Procédé d'indication de capacité et dispositif associé
US20230171223A1 (en) Communication Method, CP Device, and NAT Device
WO2021143183A1 (fr) Procédé de déploiement de machine virtuelle et appareil associé
CN116886496A (zh) 基于dpu的数据处理方法、装置、设备及可读存储介质
WO2022057487A1 (fr) Procédé, système, appareil et dispositif d'attribution d'identifiant de trajet, et support de stockage
WO2021244500A1 (fr) Procédé, appareil et système de détermination d'état de sauvegarde
WO2020249080A1 (fr) Procédé et appareil de déploiement de fonction réseau virtuelle (vnf)
CN112887185B (zh) 一种叠加网络的通信方法及装置
CN114531320A (zh) 通信方法、装置、设备、系统及计算机可读存储介质
CN114513485A (zh) 获取映射规则的方法、装置、设备、系统及可读存储介质
CN112887201A (zh) 基于vrrp的接口更新方法、装置及存储介质
WO2022022313A1 (fr) Procédé de transmission d'informations de routage, appareil et système de communication
US11996993B2 (en) Packet transmission method, apparatus, and system, and storage medium
EP4149062A1 (fr) Procédé et appareil de déploiement de service de réseau virtualisé
WO2023207235A1 (fr) Procédé de gestion de plan d'utilisateur, dispositif de plan de commande et dispositif de plan d'utilisateur
WO2022161288A1 (fr) Procédé et appareil d'envoi de trafic, système, et support de stockage
EP4262154A1 (fr) Procédé et appareil de mise à l'échelle souple

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21865557

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21865557

Country of ref document: EP

Kind code of ref document: A1