WO2016202080A1 - Procédé et dispositif d'acquisition d'adresse - Google Patents

Procédé et dispositif d'acquisition d'adresse Download PDF

Info

Publication number
WO2016202080A1
WO2016202080A1 PCT/CN2016/079482 CN2016079482W WO2016202080A1 WO 2016202080 A1 WO2016202080 A1 WO 2016202080A1 CN 2016079482 W CN2016079482 W CN 2016079482W WO 2016202080 A1 WO2016202080 A1 WO 2016202080A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
message
repeater
terminal
home gateway
Prior art date
Application number
PCT/CN2016/079482
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 WO2016202080A1 publication Critical patent/WO2016202080A1/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/668Internet protocol [IP] address subnets

Definitions

  • DHCP Dynamic Host Configuration Protocol
  • FIG. 1 is a schematic diagram of networking of a home gateway and a Repeater. As shown in FIG. 1, the home gateway and the Repeater are connected by wireless, the Repeater and the mobile terminal are connected by wireless, the Repeater and the notebook are connected by wireless, and between the Repeater and the personal computer (PC, Personal Computer). Connected by wire. In this networking structure, mobile terminals, notebooks, and PCs need to obtain an address assigned by the home gateway to implement communication.
  • FIG. 2 is a flow chart of a related method of obtaining an address. As shown in Figure 2, the method generally includes:
  • the terminal sends a DISCOVER packet to the Repeater.
  • the Repeater forwards the source media access control (MAC, Media Access Control) address of the received DISCOVER packet to its own MAC address and forwards it to the home gateway.
  • the home gateway of the Bootstrap Protocol sends an OFFER message to the Repeater.
  • the OFFER message includes an Internet Protocol (IP) address assigned to the terminal, and the Repeater forwards the OFFER message to the terminal; the terminal sends the OFFER message to the Repeater.
  • IP Internet Protocol
  • the request (REQUEST) message the Repeater forwards the REQUEST message to the home gateway; the home gateway sends an acknowledgement character (ACK, Acknowledgement) to the Repeater, and the Repeater forwards the ACK to the terminal.
  • ACK acknowledgement character
  • the home gateway After receiving the DISCOVER packet, the home gateway that does not support BOOTP detects whether the source MAC address in the DISCOVER packet and the information related to the MAC address in the DISCOVER packet match. If the match is matched, the OFFER packet is sent to the Repeater. If there is no match, the OFFER message is not sent, so the terminal cannot obtain the IP address assigned by the home gateway. When the terminal does not receive the OFFER message within the preset time, it sends a DISCOVER message to the Repeater again.
  • the embodiment of the invention provides a method and a device for obtaining an address, which can ensure the acquisition of an address, thereby improving the success rate of obtaining an address.
  • the embodiment of the invention provides a method for obtaining an address, including:
  • the wireless repeater Repeater obtains an internet protocol IP address and a subnet mask from the home gateway, calculates an IP address range segment according to the obtained IP address and subnet mask, and starts a dynamic host configuration protocol DHCP service;
  • the Repeater When receiving the first discovery DISCOVER message from the terminal, the Repeater sends the first provided OFFER message to the terminal, where the first OFFER message includes the IP address allocated by the Repeater according to the calculated IP address range segment. .
  • the Repeater obtains an IP address and a subnet mask from the home gateway, including:
  • the Repeater sends a second DISCOVER message to the home gateway, where the source media access control MAC address of the second DISCOVER message and the information related to the MAC address in the second DISCOVER message match;
  • the Repeater receives a second OFFER message from the home gateway; wherein the second OFFER message includes the IP address and the subnet mask.
  • the first OFFER message further includes:
  • the subnet mask in the second OFFER message the route in the second OFFER message, the domain name resolution system DNS in the second OFFER message, and the lease term.
  • the method further includes:
  • the Repeater sends a third DISCOVER message to the home gateway; where the source MAC address of the third DISCOVER message and the information related to the MAC address in the third DISCOVER message do not match;
  • the Repeater does not receive the third OFFER report from the home gateway within a preset time Text.
  • the method further includes: before the sending the first OFFER message to the terminal, the Repeater performs collision detection on the IP address allocated for the terminal.
  • the method further includes:
  • the Repeater receives a request REQUEST message from the terminal, and sends an acknowledgement character ACK to the terminal.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • An embodiment of the present invention further provides an apparatus for obtaining an address, including:
  • the calculation module is configured to obtain an Internet Protocol IP address and a subnet mask from the home gateway, calculate an IP address range segment according to the obtained IP address and a subnet mask, and enable a dynamic host configuration protocol DHCP service;
  • the sending module is configured to receive the first notification message, and send the first provided OFFER message to the terminal, where the first OFFER message includes an IP address allocated by the Repeater according to the calculated IP address range segment;
  • the receiving module is configured to send a first notification message to the sending module when the Repeater receives the first discovery DISCOVER message from the terminal.
  • the computing module is configured to:
  • the sending module is further configured to:
  • the receiving module is further configured to:
  • the third OFFER message from the home gateway is not received within a preset time, and the second notification message is sent to the sending module.
  • the sending module is configured to: receive the first notification message, and after performing conflict detection on the IP address allocated by the terminal, send the first OFFER message to the terminal.
  • the receiving module is further configured to:
  • the sending module is further configured to:
  • Receiving the third notification message sending an acknowledgement character ACK to the terminal.
  • the embodiment of the present invention includes: a Repeater acquires an IP address and a subnet mask from a home gateway, calculates an IP address range segment according to the obtained IP address and a subnet mask, and starts a dynamic host configuration protocol DHCP service; When receiving the first DISCOVER message from the terminal, the Repeater sends the first OFFER message to the terminal.
  • the first OFFER message includes the IP address allocated by the Repeater according to the calculated IP address range segment.
  • FIG. 1 is a schematic diagram of networking of a related home gateway and a Repeater
  • FIG. 2 is a flow chart of a related method for obtaining an address
  • FIG. 3 is a flowchart of a method for obtaining an address according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for obtaining an address according to a first embodiment of the present invention
  • FIG. 5 is a flowchart of a method for obtaining an address according to a second embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for obtaining an address according to a third embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an apparatus for obtaining an address according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for obtaining an address, including:
  • Step 300 The Receiver obtains an IP address and a subnet mask from the home gateway, calculates an IP address range segment according to the obtained IP address and a subnet mask, and starts a DHCP service.
  • the Repeater obtains the IP address and subnet mask from the home gateway, including:
  • the Repeater sends a second DISCOVER message to the home gateway, and the Repeater receives the second OFFER message from the home gateway.
  • the second DISCOVER packet is used to obtain an IP address and a subnet mask from the home gateway.
  • the Repeater can periodically send the second DISCOVER message to the home gateway.
  • the source MAC address of the second DISCOVER packet and the information related to the MAC address in the second DISCOVER packet match.
  • the information related to the MAC address in the second DISCOVER packet is a field in which the second DISCOVER packet includes an active MAC address, such as a user hardware address (Chaddr, Client Hardware Address) field, or a user identifier (ClientID, Client). Identification) field, etc.
  • a user hardware address Chaddr, Client Hardware Address
  • ClientID User identifier
  • Identification Identification
  • the source MAC address in the second DISCOVER packet may be the MAC address of the Repeater, and the MAC address included in the information related to the MAC address in the second DISCOVER packet may be the MAC address of the Repeater.
  • the IP address range segment may be an IP address range segment centered on the IP address in the second OFFER message.
  • the second OFFER message may also include a routing and domain name resolution system (DNS, Domain Name System), lease term, etc.
  • DNS Domain Name System
  • lease term etc.
  • Step 301 When the Repeater receives the first DISCOVER message from the terminal, send the first OFFER message to the terminal.
  • the first OFFER message includes the IP address assigned by the Repeater according to the calculated IP address range segment, and may also include a subnet mask, a route, a DNS, a lease, and the like.
  • the subnet mask in the first OFFER message is the same as the subnet mask in the second OFFER message, and the route in the first OFFER message is the same as the route in the second OFFER message, the first OFFER report
  • the DNS in the text is the same as the DNS in the second OFFER message.
  • the lease term in the first OFFER message can be defined according to the specific situation.
  • the lease term in the first OFFER message is preferably less than or equal to the second OFFER message. Lease period.
  • the method before sending the first OFFER message to the terminal, the method further includes: the Repeater detects the conflict of the IP address allocated for the terminal.
  • the Repeater obtains an IP address from the home gateway through the second DISCOVER message constructed by itself, and assigns an IP address to the terminal according to the obtained IP address, thereby avoiding the situation that the home gateway does not support BOOTP, and the terminal is improved. Get the success rate of the address.
  • the method further includes:
  • Step 302 The Repeater receives the REQUEST packet from the terminal, and sends an ACK to the terminal.
  • the method also includes:
  • the Repeater sends a third DISCOVER message to the home gateway.
  • the source MAC address of the third DISCOVER packet and the information related to the MAC address in the third DISCOVER packet do not match; the Repeater does not receive the home gateway from the preset time.
  • the third OFFER message is not transmitted to the home gateway.
  • the third DISCOVER packet is used to detect whether the home gateway supports BOOTP. If the home gateway supports BOOTP, the home gateway sends a third OFFER message to the Repeater; If the home gateway does not support BOOTP, the home gateway will not send a third OFFER message to the Repeater.
  • the Receiver obtains the address according to the related method.
  • the source MAC address in the third DISCOVER packet may be the MAC address of the Repeater, and the MAC address included in the information related to the MAC address in the third DISCOVER packet may be arbitrarily set.
  • the method includes:
  • Step 400 After the Repeater and the home gateway are successfully connected in the wireless manner, the third DISCOVER packet is sent to the home gateway.
  • Step 401 The Repeater does not receive the third OFFER message from the home gateway within a preset time, and sends a second DISCOVER message to the home gateway.
  • Step 402 The Repeater receives the second OFFER message from the home gateway, calculates an IP address range segment according to the IP address and the subnet mask in the second OFFER message, and starts the DHCP service.
  • Step 403 The Receiver receives the first DISCOVER message from the terminal, performs collision detection on the IP address allocated for the terminal, and sends the first OFFER message to the terminal.
  • Step 404 The Repeater receives the REQUEST packet from the terminal, and sends an ACK to the terminal.
  • the method includes:
  • Step 500 After the Repeater and the home gateway successfully associate in a wireless manner, send a third DISCOVER packet to the home gateway.
  • Step 501 The Repeater receives a third OFFER message from the home gateway.
  • Step 502 The Receiver receives the first DISCOVER packet from the terminal, and forwards the source MAC address in the first DISCOVER packet to its own MAC address, and then forwards the packet to the home gateway.
  • Step 503 The Repeater receives the first OFFER message from the home gateway, and forwards the first OFFER message to the terminal.
  • Step 504 The Receiver receives the REQUEST packet from the terminal, and forwards the REQUEST packet to the home gateway.
  • Step 505 The Repeater receives an ACK from the home gateway, and forwards the ACK to the terminal.
  • the method includes:
  • Step 600 The Repeater sends a second DISCOVER message to the home gateway.
  • Step 601 The Repeater receives the second OFFER message from the home gateway, calculates an IP address range segment according to the IP address and the subnet mask in the second OFFER message, and starts the DHCP service.
  • Step 602 The Receiver receives the first DISCOVER message from the terminal, performs collision detection on the IP address allocated for the terminal, and sends the first OFFER message to the terminal.
  • Step 603 The Repeater receives the REQUEST packet from the terminal, and sends an ACK to the terminal.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • an embodiment of the present invention further provides an apparatus for obtaining an address, including:
  • the calculation module is configured to obtain an Internet Protocol IP address and a subnet mask from the home gateway, calculate an IP address range segment according to the obtained IP address and a subnet mask, and enable a DHCP service;
  • the sending module is configured to receive the first notification message, and send the first OFFER message to the terminal, where the first OFFER message includes an IP address allocated by the Repeater according to the calculated IP address range segment;
  • the receiving module is configured to send a first notification message to the sending module when the Repeater receives the first DISCOVER message from the terminal.
  • the calculation module is set to:
  • the second OFFER message includes the IP address and a subnet mask; and the IP address range segment is calculated according to the obtained IP address and subnet mask.
  • the sending module is further configured to:
  • the receiving module is also set to:
  • the third OFFER message from the home gateway is not received within the preset time, and the second notification message is sent to the sending module.
  • the sending module is configured to:
  • the first OFFER message After receiving the first notification message, after performing collision detection on the IP address allocated for the terminal, the first OFFER message is sent to the terminal.
  • the receiving module is further configured to:
  • the sending module is also set to:
  • a third notification message is received, and an acknowledgement character ACK is sent to the terminal.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

Un procédé et un dispositif d'acquisition d'adresse comprennent les étapes suivantes : un répéteur sans fil acquiert une adresse de protocole Internet (IP) et un masque de sous-réseau à partir d'une passerelle résidentielle, calcule une plage d'adresses IP d'après l'adresse IP et le masque de sous-réseau obtenus, et initie un service de protocole de configuration d'hôte dynamique (DHCP) ; lorsque le répéteur reçoit un premier paquet de découverte d'un terminal, il transmet un premier paquet d'offre au terminal, le premier paquet d'offre contenant l'adresse IP attribuée au terminal d'après la plage d'adresses IP obtenue par le calcul.
PCT/CN2016/079482 2015-06-15 2016-04-15 Procédé et dispositif d'acquisition d'adresse WO2016202080A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510330917.2 2015-06-15
CN201510330917.2A CN106254567A (zh) 2015-06-15 2015-06-15 一种获取地址的方法和装置

Publications (1)

Publication Number Publication Date
WO2016202080A1 true WO2016202080A1 (fr) 2016-12-22

Family

ID=57544839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079482 WO2016202080A1 (fr) 2015-06-15 2016-04-15 Procédé et dispositif d'acquisition d'adresse

Country Status (2)

Country Link
CN (1) CN106254567A (fr)
WO (1) WO2016202080A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683159A (zh) * 2019-03-11 2020-09-18 阿里巴巴集团控股有限公司 Ip地址分配方法、设备、系统及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010038481A (ko) * 1999-10-25 2001-05-15 서평원 라우터에서 디에이취씨피 서버와 릴레이 에이전트 병합 방법
CN1859254A (zh) * 2006-04-04 2006-11-08 华为技术有限公司 一种宽带用户异常下线的快速接入方法及系统
WO2007074006A1 (fr) * 2005-12-29 2007-07-05 France Telecom Procédé d'affectation dynamique d'ensembles d'adresses par dhcp, entité de gestion, relais et programme d'ordinateur correspondants
CN102413203A (zh) * 2011-12-01 2012-04-11 中兴通讯股份有限公司 Ip地址的分配方法及装置
CN102685264A (zh) * 2012-05-08 2012-09-19 北京星网锐捷网络技术有限公司 动态主机配置协议地址分配方法、中继设备及服务器

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011029406A1 (fr) * 2009-09-11 2011-03-17 华为技术有限公司 Procédé, équipement et système d'affectation automatique d'une adresse ip

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010038481A (ko) * 1999-10-25 2001-05-15 서평원 라우터에서 디에이취씨피 서버와 릴레이 에이전트 병합 방법
WO2007074006A1 (fr) * 2005-12-29 2007-07-05 France Telecom Procédé d'affectation dynamique d'ensembles d'adresses par dhcp, entité de gestion, relais et programme d'ordinateur correspondants
CN1859254A (zh) * 2006-04-04 2006-11-08 华为技术有限公司 一种宽带用户异常下线的快速接入方法及系统
CN102413203A (zh) * 2011-12-01 2012-04-11 中兴通讯股份有限公司 Ip地址的分配方法及装置
CN102685264A (zh) * 2012-05-08 2012-09-19 北京星网锐捷网络技术有限公司 动态主机配置协议地址分配方法、中继设备及服务器

Also Published As

Publication number Publication date
CN106254567A (zh) 2016-12-21

Similar Documents

Publication Publication Date Title
US9350814B2 (en) Internet protocol connectivity over a service-oriented architecture bus
JP5711754B2 (ja) スマートクライアントルーティング
US9325382B2 (en) Method and system of providing internet protocol (IP) data communication in a NFC peer to peer communication environment
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
US20150113168A1 (en) Network Bridging
WO2017215492A1 (fr) Procédé et appareil de détection de dispositif
US20120278888A1 (en) Gateway and method for avoiding attacks
WO2018103400A1 (fr) Procédé de liaison wifi de fidélité sans fil et produit associé
US20130332586A1 (en) Providing ipv6 connectivity through shared external interfaces on electronic devices
WO2016202059A1 (fr) Procédé d'accès à un réseau ipv6 et passerelle
US9992159B2 (en) Communication information detecting device and communication information detecting method
CN102970387A (zh) 一种域名解析方法、装置及系统
US10303502B2 (en) Creating a virtual machine for an IP device using information requested from a lookup service
WO2020124954A1 (fr) Procédé et appareil permettant de mettre en œuvre une itinérance sans fil, passerelle, et support de stockage
US9288740B2 (en) Communication apparatus, control method for the same, communication system, and non-transitory computer-readable storage medium
WO2016202080A1 (fr) Procédé et dispositif d'acquisition d'adresse
WO2016095751A1 (fr) Procédé et appareil d'analyse de nom de domaine
WO2016177185A1 (fr) Procédé et appareil de traitement d'adresse de commande d'accès au support (mac)
WO2017166038A1 (fr) Procédé et terminal de communication
CN103516820A (zh) 基于mac地址的端口映射方法和装置
KR101842971B1 (ko) 서버 장치 및 통신 중계 장치를 포함하는 네트워크 시스템과 통신 중계 방법, ip 할당 방법
KR101506852B1 (ko) 네트워크 모드 선택 방법과 그를 위한 모바일 라우터
US20160241512A1 (en) Method and apparatus for allocating ip parameter
US10111051B2 (en) Communication apparatus, control method therefor, program, and storage medium
US10673809B2 (en) Technique for managing an address in a local area network

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: 16810821

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: 16810821

Country of ref document: EP

Kind code of ref document: A1