TW202044025A - Terminal address configuration method and device - Google Patents

Terminal address configuration method and device Download PDF

Info

Publication number
TW202044025A
TW202044025A TW108142516A TW108142516A TW202044025A TW 202044025 A TW202044025 A TW 202044025A TW 108142516 A TW108142516 A TW 108142516A TW 108142516 A TW108142516 A TW 108142516A TW 202044025 A TW202044025 A TW 202044025A
Authority
TW
Taiwan
Prior art keywords
address
gateway
terminal
pool
target
Prior art date
Application number
TW108142516A
Other languages
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 TW202044025A publication Critical patent/TW202044025A/en

Links

Images

Classifications

    • 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
    • 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/5061Pools of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a terminal address configuration method and device applied to a server, and the method comprises the steps: determining a gateway corresponding to an address configuration request when the server receives the address configuration request; selecting a target address from an address pool corresponding to the gateway, and configuring the target address to a terminal corresponding to the address configuration request, so that a multicast address and a unicast address of the terminal are located in the same address pool; wherein the pulse time slot PingSlot frequency points of the addresses in each address pool are the same. In the embodiment of the invention, the PingSlot frequency points of the addresses in the same address pool are the same, so that the frequency points of the multicast addresses are the same as the frequency points of the unicast addresses, and the situation that unicast downlink data or multicast downlink data is lost due to the fact that the frequency points of the multicast addresses are different from the frequency points of the unicast addresses is avoided.

Description

終端的位址配置方法和裝置Terminal address configuration method and device

本申請關於通信技術領域,特別是關於一種終端的位址配置方法和一種終端的位址配置裝置。 This application relates to the field of communication technology, and particularly relates to an address configuration method of a terminal and an address configuration device of a terminal.

物聯網技術是繼電腦和網際網路之後的第三次資訊技術革命,具有即時性和互動性等優點,已經被廣泛應用於城市管理、數位家庭、定位導航、物流管理、安保系統等多個領域。其中,LoRa是物聯網中一種基於擴頻技術的超遠距離傳輸方案,具有傳輸距離遠、低功耗、多節點和低成本等特性。 LoRa網路包括終端、基地台和伺服器。終端的工作模式包括ClassA模式、ClassB模式、ClassC模式。在ClassB模式下,終端會在可預見的時間內開啟接收窗口,該窗口稱為脈衝時槽Pingslot。 終端的通信方式包括單播和組播。單播:伺服器給每個終端配置唯一的位址標識DebAddr,伺服器根據這個位址計算出該終端Class B下行頻點和時間窗口。伺服器在這個頻點和時間窗口單獨發消息給該設備。 組播:伺服器給每個LoRa組播組配置唯一的位址標識McAddr,伺服器根據這個位址計算出這個組播組中多個終端共同的Class B下行頻點和時間窗口。伺服器在這個頻點和時間窗口群發消息給該組播組中的所有終端。 當終端具有單播和組播兩種通信方式時,其單播位址Pingslot與其組播位址Pingslot可能會重疊,但單播頻點和組播頻點並不相同,此時終端只能固定監聽組播/單播頻點,而週期性錯失單播/組播下行資料,甚至永遠也收不到單播/組播下行資料。 Internet of Things technology is the third information technology revolution after computers and the Internet. It has the advantages of immediacy and interactivity. It has been widely used in urban management, digital homes, positioning and navigation, logistics management, security systems, etc. field. Among them, LoRa is an ultra-long-distance transmission scheme based on spread spectrum technology in the Internet of Things, which has the characteristics of long transmission distance, low power consumption, multiple nodes and low cost. The LoRa network includes terminals, base stations and servers. The working modes of the terminal include ClassA mode, ClassB mode, and ClassC mode. In ClassB mode, the terminal will open the receiving window within a foreseeable time. This window is called Pingslot. The terminal's communication methods include unicast and multicast. Unicast: The server configures a unique address identifier DebAddr for each terminal, and the server calculates the Class B downlink frequency and time window of the terminal according to this address. The server sends a separate message to the device at this frequency and time window. Multicast: The server configures a unique address identifier McAddr for each LoRa multicast group, and the server calculates the Class B downlink frequency and time window common to multiple terminals in this multicast group based on this address. The server sends a group message to all terminals in the multicast group at this frequency and time window. When a terminal has two communication modes: unicast and multicast, its unicast address Pingslot and its multicast address Pingslot may overlap, but the unicast frequency and multicast frequency are different, and the terminal can only be fixed at this time Monitor the multicast/unicast frequency point, and periodically miss unicast/multicast downlink data, or even never receive unicast/multicast downlink data.

鑒於上述問題,提出了本申請實施例以便提供一種克服上述問題或者至少部分地解決上述問題的一種終端的位址配置方法和相應的一種終端的位址配置裝置。 為了解決上述問題,本申請實施例公開了一種終端的位址配置方法,應用於伺服器,所述方法包括: 當伺服器接收到位址配置請求時,確定所述位址配置請求對應的閘道器; 從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,以使所述終端的組播位址和單播位址位於同一個位址池中;其中,每個位址池中的位址的脈衝時槽PingSlot頻點相同。 可選的,還包括: 從預置的多個位址池中,確定對應所述閘道器的位址池。 可選的,所述從預置的多個位址池中,確定對應所述閘道器的位址池,包括: 確定所述閘道器的下行通道數量; 根據所述閘道器的下行通道數量,從預置的多個位址池中確定對應所述閘道器的位址池。 可選的,所述根據所述閘道器的下行通道數量,從預置的多個位址池中確定對應所述閘道器的位址池,包括: 若所述閘道器的下行通道數量為一個,則從預置的多個位址池中確定一個對應所述閘道器的位址池; 若所述閘道器的下行通道數量為多個,則從預置的多個位址池中確定多個對應所述閘道器的位址池;其中所述多個位址池兩兩之間間隔有未使用的頻點。 可選的,所述從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,包括: 若所述位址配置請求為針對組播位址的位址配置請求,並且所述終端在先已配置有單播位址,則從該單播位址所在的位址池中選取一個位址作為目標位址; 將所述目標位址配置為所述終端的組播位址。 可選的,所述從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,包括: 若所述位址配置請求為針對單播位址的位址配置請求,並且所述終端在先已配置有組播位址,則從該組播位址所在的位址池中選取一個位址作為目標位址; 將所述目標位址配置為所述終端的單播位址。 可選的,所述從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,包括: 若所述位址配置請求為針對單播位址以及組播位址的位址配置請求,則從與所述閘道器對應的一個位址池中選取兩個位址作為目標位址; 將所述目標位址分別配置為所述終端的單播位址和組播位址。 可選的,不同位址池的位址的PingSlot頻點不同。 本申請實施例還公開了一種終端的位址配置裝置,所述裝置設置於伺服器,所述裝置包括: 閘道器確定模組,用於當伺服器接收到位址配置請求時,確定所述位址配置請求對應的閘道器; 終端位址配置模組,用於從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,以使所述終端的組播位址和單播位址位於同一個位址池中;其中,每個位址池的位址的脈衝時槽PingSlot頻點相同。 可選的,還包括: 閘道器位址池確定模組,用於從預置的多個位址池中,確定對應所述閘道器的位址池。 可選的,所述閘道器位址池確定模組包括: 下行通道數量確定子模組,用於確定所述閘道器的下行通道數量; 閘道器位址池確定子模組,用於根據所述閘道器的下行通道數量,從預置的多個位址池中確定與所述閘道器對應的位址池。 可選的,所述閘道器位址池確定子模組包括: 第一閘道器位址池確定單元,用於若所述閘道器的下行通道數量為一個,則從預置的多個位址池中確定一個與所述閘道器對應的位址池; 第二閘道器位址池確定單元,用於若所述閘道器的下行通道數量為多個,則從預置的多個位址池中確定多個對應所述閘道器的位址池;其中所述多個位址池兩兩之間間隔有未使用的頻點。 可選的,所述終端位址配置模組包括: 第一目標位址選取子模組,用於若所述位址配置請求為針對組播位址的位址配置請求,並且所述終端在先已配置有單播位址,則從該單播位址所在的位址池中選取一個位址作為目標位址; 第一目標位址配置子模組,用於將所述目標位址配置為所述終端的組播位址。 可選的,所述終端位址配置模組包括: 第二目標位址選取子模組,用於若所述位址配置請求為針對單播位址的位址配置請求,並且所述終端在先已配置有組播位址,則從該組播位址所在的位址池中選取一個位址作為目標位址; 第二目標位址配置子模組,用於將所述目標位址配置為所述終端的單播位址。 可選的,所述終端位址配置模組包括: 第三目標位址選取子模組,用於若所述位址配置請求為針對單播位址以及組播位址的位址配置請求,則從與所述閘道器對應的一個位址池中選取兩個位址作為目標位址; 第三目標位址配置子模組,用於將所述目標位址分別配置為所述終端的單播位址和組播位址。 可選的,不同位址池的位址的PingSlot頻點不同。 本申請實施例還公開了一種裝置,包括: 一個或多個處理器;和 其上儲存有指令的一個或多個機器可讀媒體,當由所述一個或多個處理器執行時,使得所述裝置執行如上所述的一個或多個的方法。 本申請實施例還公開了一個或多個機器可讀媒體,其上儲存有指令,當由一個或多個處理器執行時,使得所述處理器執行如上所述的一個或多個的方法。 本申請實施例包括以下優點: 在本申請實施例中,可以從與閘道器對應的一個位址池中選擇目標位址,並將目標位址配置給終端,以使為終端配置的組播位址和單播位址位於同一個位址池中,由於同一個位址池中的位址的PingSlot頻點相同,因此組播位址的頻點和單播位址的頻點相同,不會出現由於組播位址的頻點和單播位址的頻點不同,而損失單播下行資料或組播下行資料的情況。 In view of the foregoing problems, the embodiments of the present application are proposed to provide an address configuration method of a terminal and a corresponding device for configuring an address of a terminal that overcome the above problems or at least partially solve the above problems. In order to solve the above-mentioned problem, an embodiment of the present application discloses a method for configuring an address of a terminal, which is applied to a server, and the method includes: When the server receives the address configuration request, it determines the gateway corresponding to the address configuration request; Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address of the terminal and the single The broadcast addresses are located in the same address pool; among them, the pulse time slot PingSlot frequency point of the address in each address pool is the same. Optional, also includes: From a plurality of preset address pools, determine the address pool corresponding to the gateway. Optionally, the determining the address pool corresponding to the gateway from a plurality of preset address pools includes: Determine the number of downstream channels of the gateway; According to the number of downstream channels of the gateway, an address pool corresponding to the gateway is determined from a plurality of preset address pools. Optionally, the determining the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway includes: If the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools; If the number of downlink channels of the gateway is multiple, multiple address pools corresponding to the gateway are determined from the multiple preset address pools; wherein the multiple address pools are two by two There are unused frequency points in the interval. Optionally, the selecting a target address from an address pool corresponding to the gateway, and configuring the target address to the terminal corresponding to the address configuration request includes: If the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, select an address from the address pool where the unicast address is located As the target address; The target address is configured as the multicast address of the terminal. Optionally, the selecting a target address from an address pool corresponding to the gateway, and configuring the target address to the terminal corresponding to the address configuration request includes: If the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, then an address is selected from the address pool where the multicast address is located As the target address; The target address is configured as the unicast address of the terminal. Optionally, the selecting a target address from an address pool corresponding to the gateway, and configuring the target address to the terminal corresponding to the address configuration request includes: If the address configuration request is an address configuration request for a unicast address and a multicast address, selecting two addresses from an address pool corresponding to the gateway as the target address; The target address is respectively configured as the unicast address and the multicast address of the terminal. Optionally, the PingSlot frequency points of addresses in different address pools are different. The embodiment of the application also discloses a device for configuring an address of a terminal, the device is set on a server, and the device includes: The gateway determination module is used to determine the gateway corresponding to the address configuration request when the server receives the address configuration request; The terminal address configuration module is used to select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that all The multicast address and the unicast address of the terminal are located in the same address pool; wherein, the pulse time slot PingSlot frequency point of each address pool address is the same. Optional, also includes: The gateway address pool determining module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools. Optionally, the gateway address pool determination module includes: The number of downlink channels determining sub-module is used to determine the number of downlink channels of the gateway; The gateway address pool determining sub-module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downstream channels of the gateway. Optionally, the gateway address pool determining sub-module includes: The first gateway address pool determining unit is configured to determine an address pool corresponding to the gateway from a plurality of preset address pools if the number of downstream channels of the gateway is one ; The second gateway address pool determining unit is configured to determine multiple addresses corresponding to the gateway from the preset multiple address pools if the number of downstream channels of the gateway is multiple Pool; wherein there are unused frequency points between the multiple address pools. Optionally, the terminal address configuration module includes: The first target address selection sub-module is used for, if the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, start from the unicast address Select an address from the address pool where the address is located as the target address; The first target address configuration sub-module is used to configure the target address as the multicast address of the terminal. Optionally, the terminal address configuration module includes: The second target address selection submodule is used to select from the multicast address if the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance Select an address from the address pool where the address is located as the target address; The second target address configuration sub-module is used to configure the target address as the unicast address of the terminal. Optionally, the terminal address configuration module includes: The third target address selection sub-module is used to select an address pool corresponding to the gateway if the address configuration request is an address configuration request for a unicast address and a multicast address Select two addresses as the target address; The third target address configuration sub-module is used to configure the target address as the unicast address and the multicast address of the terminal respectively. Optionally, the PingSlot frequency points of addresses in different address pools are different. The embodiment of the application also discloses a device, including: One or more processors; and One or more machine-readable media on which instructions are stored, when executed by the one or more processors, cause the device to perform one or more of the methods described above. The embodiment of the present application also discloses one or more machine-readable media on which instructions are stored, which when executed by one or more processors, cause the processors to execute one or more of the methods described above. The embodiments of the application include the following advantages: In the embodiment of this application, the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and unicast address configured for the terminal are located In the same address pool, because the PingSlot frequency points of the addresses in the same address pool are the same, the frequency point of the multicast address is the same as the frequency point of the unicast address. The frequency point and the frequency point of the unicast address are different, and the unicast downlink data or multicast downlink data is lost.

為使本申請的上述目的、特徵和優點能夠更加明顯易懂,下面結合圖式和具體實施方式對本申請作進一步詳細的說明。 參照圖1,示出了本申請的一種終端的位址配置方法實施例一的步驟流程圖,具體可以包括如下步驟: 步驟101,當伺服器接收到位址配置請求時,確定所述位址配置請求對應的閘道器; 在本申請實施例中,終端為ClassB模式終端。在終端入網時,終端向閘道器發送位址配置請求,然後閘道器將位址配置請求轉發給伺服器。 具體的,伺服器部署有位址分配器,位址配置請求中包括終端標識DevEUI和閘道器標識GWEUI。 位址分配器可以根據終端標識確定是由哪個終端發送的位址配置請求,根據閘道器標識確定是由哪個閘道器轉發的位址配置請求。 步驟102,從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,以使所述終端的組播位址和單播位址位於同一個位址池中;其中,每個位址池的位址的脈衝時槽PingSlot頻點相同。 在本申請實施例中,位址分配器可以為閘道器選擇至少一個對應的位址池,每個位址池包含有多個位址,屬於同一個位址池的位址的PingSlot頻點相同,屬於不同位址池的位址的PingSlot頻點不相同。 在本申請實施例中,可以從與閘道器對應的一個位址池中選擇目標位址,並將目標位址配置給終端,以使為終端配置的組播位址和單播位址位於同一個位址池中,由於同一個位址池中的位址的PingSlot頻點相同,因此組播位址的頻點和單播位址的頻點相同,不會出現由於組播位址的頻點和單播位址的頻點不同,而損失單播下行資料或組播下行資料的情況。 參照圖2,示出了本申請的一種終端的位址配置方法實施例二的步驟流程圖,具體可以包括如下步驟: 步驟201,當伺服器接收到位址配置請求時,確定所述位址配置請求對應的閘道器; 在本申請實施例中,終端為ClassB模式終端。在終端入網時,終端向閘道器發送位址配置請求,然後閘道器將位址配置請求轉發給伺服器。 具體的,伺服器部署有位址分配器,位址配置請求中包括終端標識DevEUI和閘道器標識GWEUI。 位址分配器可以根據終端標識確定是由哪個終端發送的位址配置請求,根據閘道器標識確定是由哪個閘道器轉發的位址配置請求。 步驟202,從預置的多個位址池中,確定對應所述閘道器的位址池。 位址分配器可以從預置的多個位址池中,為位址配置請求對應的閘道器確定對應位址池。 每個位址池包含有多個位址,屬於同一個位址池的位址的PingSlot頻點相同,屬於不同位址池的位址的PingSlot頻點不相同。 參照圖3所示為本申請實施例中一種劃分位址池的示意圖。CN470頻段是分配給中國地區使用的頻段,可以將該頻段內的所有位址劃分為8個位址池。 第1個位址池的位址可以表示為Nx8,第2個位址池的位址可以表示為Nx8+1,第3個位址池的位址可以表示為Nx8+2,第4個位址池的位址可以表示為Nx8+3,第5個位址池的位址可以表示為Nx8+4,第6個位址池的位址可以表示為Nx8+5,第7個位址池的位址可以表示為Nx8+6,第8個位址池的位址可以表示為Nx8+7,N=1,2,……。 除了將CN470頻段劃分為8個位址池外,還可以將CN470頻段劃分為其他數量的位址池;例如,若網路部署了16個通道的閘道器,則可以將CN470頻段劃分為16個位址池;若網路部署了32個通道的閘道器,則可以將CN470頻段劃分為32個位址池。 位址池的劃分方式可以根據實際情況來確定,本申請實施例對此不做限定。 CN470頻段下根據單播位址計算Class B下行頻道頻點的公式為:

Figure 02_image001
CN470頻段下根據組播位址計算Class B下行頻道頻點的公式為:
Figure 02_image003
其中,floor()為向下取整的函數,modulo為模數運算,beacon_time為信標幀時長,beacon_period為信標幀週期。 由這兩個公式可知,當單播位址和組播位址都屬於同一個位址池時,對應的頻道頻點是相同的。 在本申請實施例中,所述步驟202可以包括如下子步驟: 子步驟S11,確定所述閘道器的下行通道數量; 位址分配器可以根據位址配置請求中的閘道器標識,從資料庫中查找閘道器的下行通道數量; 子步驟S12,根據所述閘道器的下行通道數量,從預置的多個位址池中確定對應所述閘道器的位址池。 位址分配器可以根據閘道器的下行通道數量,從預置的多個位址池中確定與閘道器對應的位址池。 在本申請實施例中,所述子步驟S12可以進一步包括: 子步驟S121,若所述閘道器的下行通道數量為一個,則從預置的多個位址池中確定一個對應所述閘道器的位址池; 子步驟S122,若所述閘道器的下行通道數量為多個,則從預置的多個位址池中確定多個對應所述閘道器的位址池;其中所述多個位址池兩兩之間間隔有未使用的頻點。 如果閘道器具備多下行通道的能力,在很多時候,同時下行的幾個實體頻點相距較近,會產生較大的鄰頻干擾問題。鄰頻干擾是常見的干擾問題,不僅在多路組播時會產生,在多路單播下行也會產生。 因此,在本申請實施例中,在閘道器的下行通道數量為多個時,位址分配器可以為閘道器確定多個對應的位址池,多個位址池兩兩之間間隔有未使用的頻點,可以使得下行通道之間具有頻率間隔,解決鄰頻干擾問題。 參照圖4所示為本申請實施例中一種確定對應閘道器的位址池的示意圖。 對於有1個下行頻道的閘道器,可以選擇1號位址池,該閘道器服務範圍內所有終端的單播位址和組播位址可以從1號位址池獲取。 對於有2個下行頻道的閘道器,可以選擇1號、5號位址池,該閘道器服務範圍內所有終端的單播位址和組播位址可以從這兩個位址池獲取。 對於有2個下行頻道的閘道器,可以選擇1號、3號、5號、7號位址池,該閘道器服務範圍內所有終端的單播位址和組播位址可以從這四個位址池獲取。 步驟203,從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,以使所述終端的組播位址和單播位址位於同一個位址池中;其中,每個位址池的位址的脈衝時槽PingSlot頻點相同。 在本申請實施例中,位址配置請求可以包含所要請求的位址的類型。具體的,位址配置請求可以包括針對組播位址的位址配置請求,針對單播位址的位址配置請求,以及針對單播位址和組播位址的位址配置請求。 針對組播位址的位址配置請求表示終端需要請求組播位址,針對單播位址的位址配置請求表示終端需要請求單播位址,針對單播位址和組播位址的位址配置請求表示終端需要請求單播位址和組播位址。 在本申請實施例的一種示例中,所述步驟203可以包括: 若所述位址配置請求為針對組播位址的位址配置請求,並且所述終端在先已配置有單播位址,則從該單播位址所在的位址池中選取一個位址作為目標位址;將所述目標位址配置為所述終端的組播位址。 若所述位址配置請求為針對組播位址的位址配置請求,並且所述終端在先未配置有單播位址,則從與所述閘道器對應的任意一個位址池中選取目標位址,將所述目標位址配置為所述終端的組播位址。 在本申請實施例的另一種示例中,所述步驟203可以包括: 若所述位址配置請求為針對單播位址的位址配置請求,並且所述終端在先已配置有組播位址,則從該組播位址所在的位址池中選取一個位址作為目標位址;將所述目標位址配置為所述終端的單播位址。 若所述位址配置請求為針對單播位址的位址配置請求,並且所述終端在先未配置有組播位址,則從與所述閘道器對應的任意一個位址池中選取目標位址;將所述目標位址配置為所述終端的單播位址。 在本申請實施例的另一種示例中,所述步驟203可以包括: 若所述位址配置請求為針對單播位址以及組播位址的位址配置請求,則從與所述閘道器對應的一個位址池中選取兩個位址作為目標位址;將所述目標位址分別配置為所述終端的單播位址和組播位址。 在本申請實施例中,可以從與閘道器對應的一個位址池中選擇目標位址,並將目標位址配置給終端,以使為終端配置的組播位址和單播位址位於同一個位址池中,由於同一個位址池中的位址的PingSlot頻點相同,因此組播位址的頻點和單播位址的頻點相同,不會出現由於組播位址的頻點和單播位址的頻點不同,而損失單播下行資料或組播下行資料的情況。 需要說明的是,對於方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是所屬技術領域中具有通常知識者應該知悉,本申請實施例並不受所描述的動作順序的限制,因為依據本申請實施例,某些步驟可以採用其他順序或者同時進行。其次,所屬技術領域中具有通常知識者也應該知悉,說明書中所描述的實施例均屬於較佳實施例,所關於的動作並不一定是本申請實施例所必須的。 參照圖5,示出了本申請的一種終端的位址配置裝置實施例的結構框圖,所述裝置設置於伺服器,所述裝置具體可以包括如下模組: 閘道器確定模組501,用於當伺服器接收到位址配置請求時,確定所述位址配置請求對應的閘道器; 終端位址配置模組502,用於從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,以使所述終端的組播位址和單播位址位於同一個位址池中;其中,每個位址池的位址的脈衝時槽PingSlot頻點相同。 在本申請實施例中,不同位址池的位址的PingSlot頻點不同。 在本申請實施例中,所述的裝置還可以包括: 閘道器位址池確定模組,用於從預置的多個位址池中,確定對應所述閘道器的位址池。 在本申請實施例中,所述閘道器位址池確定模組可以包括: 下行通道數量確定子模組,用於確定所述閘道器的下行通道數量; 閘道器位址池確定子模組,用於根據所述閘道器的下行通道數量,從預置的多個位址池中確定與所述閘道器對應的位址池。 在本申請實施例中,所述閘道器位址池確定子模組包括: 第一閘道器位址池確定單元,用於若所述閘道器的下行通道數量為一個,則從預置的多個位址池中確定一個與所述閘道器對應的位址池; 第二閘道器位址池確定單元,用於若所述閘道器的下行通道數量為多個,則從預置的多個位址池中確定多個對應所述閘道器的位址池;其中所述多個位址池兩兩之間間隔有未使用的頻點。 在本申請實施例中,所述終端位址配置模組502可以包括: 第一目標位址選取子模組,用於若所述位址配置請求為針對組播位址的位址配置請求,並且所述終端在先已配置有單播位址,則從該單播位址所在的位址池中選取一個位址作為目標位址; 第一目標位址配置子模組,用於將所述目標位址配置為所述終端的組播位址。 在本申請實施例中,所述終端位址配置模組502可以包括: 第二目標位址選取子模組,用於若所述位址配置請求為針對單播位址的位址配置請求,並且所述終端在先已配置有組播位址,則從該組播位址所在的位址池中選取一個位址作為目標位址; 第二目標位址配置子模組,用於將所述目標位址配置為所述終端的單播位址。 在本申請實施例中,所述終端位址配置模組502可以包括: 第三目標位址選取子模組,用於若所述位址配置請求為針對單播位址以及組播位址的位址配置請求,則從與所述閘道器對應的一個位址池中選取兩個位址作為目標位址; 第三目標位址配置子模組,用於將所述目標位址分別配置為所述終端的單播位址和組播位址。 對於裝置實施例而言,由於其與方法實施例基本相似,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 本申請實施例還提供了一種裝置,包括: 一個或多個處理器;和 其上儲存有指令的一個或多個機器可讀媒體,當由所述一個或多個處理器執行時,使得所述裝置執行本申請實施例所述的方法。 本申請實施例還提供了一個或多個機器可讀媒體,其上儲存有指令,當由一個或多個處理器執行時,使得所述處理器執行本申請實施例所述的方法。 本說明書中的各個實施例均採用循序的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似的部分互相參見即可。 所屬技術領域中具有通常知識者應明白,本申請實施例的實施例可提供為方法、裝置、或電腦程式產品。因此,本申請實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本申請實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。 本申請實施例是參照根據本申請實施例的方法、終端設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式資料處理終端設備的處理器以產生一個機器,使得透過電腦或其他可程式資料處理終端設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的裝置。 這些電腦程式指令也可儲存在能引導電腦或其他可程式資料處理終端設備以特定方式工作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。 這些電腦程式指令也可裝載到電腦或其他可程式資料處理終端設備上,使得在電腦或其他可程式終端設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式終端設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。 儘管已描述了本申請實施例的較佳實施例,但所屬技術領域中具有通常知識者一旦得知了基本進步性概念,則可對這些實施例做出另外的變更和修改。所以,所附申請專利範圍意欲解釋為包括較佳實施例以及落入本申請實施例範圍的所有變更和修改。 最後,還需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者終端設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者終端設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、物品或者終端設備中還存在另外的相同要素。 以上對本申請所提供的一種終端的位址配置方法和一種終端的位址配置裝置,進行了詳細介紹,本文中應用了具體個例對本申請的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本申請的方法及其核心思想;同時,對於本領域的一般技術人員,依據本申請的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本申請的限制。In order to make the above objectives, features, and advantages of the application more obvious and understandable, the application will be further described in detail below in conjunction with the drawings and specific implementations. 1, there is shown a step flow chart of Embodiment 1 of a method for configuring an address of a terminal according to the present application, which may specifically include the following steps: Step 101: When the server receives an address configuration request, determine the address configuration Request the corresponding gateway; In this embodiment of the application, the terminal is a ClassB mode terminal. When the terminal accesses the network, the terminal sends an address configuration request to the gateway, and then the gateway forwards the address configuration request to the server. Specifically, the server is deployed with an address allocator, and the address configuration request includes the terminal identifier DevEUI and the gateway identifier GWEUI. The address allocator can determine which terminal sent the address configuration request according to the terminal identifier, and which gateway forwarded the address configuration request according to the gateway identifier. Step 102: Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address of the terminal The address and the unicast address are in the same address pool; among them, the pulse time slot PingSlot frequency point of each address pool address is the same. In the embodiment of this application, the address allocator can select at least one corresponding address pool for the gateway, and each address pool contains multiple addresses, and the PingSlot frequency points of addresses belonging to the same address pool The same, the PingSlot frequency points of addresses belonging to different address pools are different. In the embodiment of this application, the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and unicast address configured for the terminal are located In the same address pool, because the PingSlot frequency points of the addresses in the same address pool are the same, the frequency point of the multicast address is the same as the frequency point of the unicast address. The frequency point and the frequency point of the unicast address are different, and the unicast downlink data or multicast downlink data is lost. Referring to FIG. 2, there is shown a step flow chart of Embodiment 2 of a method for configuring an address of a terminal according to the present application, which may specifically include the following steps: Step 201, when the server receives an address configuration request, determine the address configuration Request the corresponding gateway; In this embodiment of the application, the terminal is a ClassB mode terminal. When the terminal accesses the network, the terminal sends an address configuration request to the gateway, and then the gateway forwards the address configuration request to the server. Specifically, the server is deployed with an address allocator, and the address configuration request includes the terminal identifier DevEUI and the gateway identifier GWEUI. The address allocator can determine which terminal sent the address configuration request according to the terminal identifier, and which gateway forwarded the address configuration request according to the gateway identifier. Step 202: Determine an address pool corresponding to the gateway from a plurality of preset address pools. The address allocator can determine the corresponding address pool for the gateway corresponding to the address configuration request from a plurality of preset address pools. Each address pool contains multiple addresses. The PingSlot frequency points of the addresses belonging to the same address pool are the same, and the PingSlot frequency points of the addresses belonging to different address pools are different. Referring to FIG. 3, it is a schematic diagram of dividing an address pool in an embodiment of this application. The CN470 frequency band is a frequency band allocated for use in China. All addresses in this frequency band can be divided into 8 address pools. The address of the first address pool can be expressed as Nx8, the address of the second address pool can be expressed as Nx8+1, the address of the third address pool can be expressed as Nx8+2, and the fourth address The address of the address pool can be expressed as Nx8+3, the address of the 5th address pool can be expressed as Nx8+4, the address of the 6th address pool can be expressed as Nx8+5, the 7th address pool The address of can be expressed as Nx8+6, the address of the eighth address pool can be expressed as Nx8+7, N=1, 2,.... In addition to dividing the CN470 frequency band into 8 address pools, the CN470 frequency band can also be divided into other number of address pools; for example, if the network deploys a 16-channel gateway, the CN470 frequency band can be divided into 16 An address pool; if the network deploys a 32-channel gateway, the CN470 frequency band can be divided into 32 address pools. The way of dividing the address pool can be determined according to actual conditions, which is not limited in the embodiment of the present application. The formula for calculating the frequency of the Class B downlink channel based on the unicast address in the CN470 frequency band is:
Figure 02_image001
The formula for calculating the frequency of the Class B downlink channel based on the multicast address in the CN470 frequency band is:
Figure 02_image003
Among them, floor() is a function rounded down, modulo is a modulo operation, beacon_time is the beacon frame duration, and beacon_period is the beacon frame period. It can be seen from these two formulas that when the unicast address and the multicast address belong to the same address pool, the corresponding channel frequency points are the same. In the embodiment of the present application, the step 202 may include the following sub-steps: Sub-step S11, determining the number of downstream channels of the gateway; the address allocator may follow the gateway identifier in the address configuration request from Find the number of downstream channels of the gateway in the database; sub-step S12, according to the number of downstream channels of the gateway, determine the address pool corresponding to the gateway from a plurality of preset address pools. The address allocator can determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downstream channels of the gateway. In the embodiment of the present application, the sub-step S12 may further include: sub-step S121, if the number of downlink channels of the gateway is one, determine one corresponding to the gateway from a plurality of preset address pools The address pool of the gateway; sub-step S122, if the number of downstream channels of the gateway is multiple, determine multiple address pools corresponding to the gateway from the multiple preset address pools; There are unused frequency points between the plurality of address pools. If the gateway has the capability of multiple downlink channels, in many cases, several physical frequency points that are downlink at the same time are close together, which will cause larger adjacent channel interference problems. Adjacent channel interference is a common interference problem, not only in multi-channel multicast, but also in multi-channel unicast downlink. Therefore, in the embodiment of the present application, when the number of downstream channels of the gateway is multiple, the address allocator can determine multiple corresponding address pools for the gateway, and the multiple address pools are spaced between each other. There are unused frequency points, which can make the frequency interval between the downlink channels and solve the problem of adjacent channel interference. 4 is a schematic diagram of determining the address pool corresponding to the gateway in an embodiment of the application. For a gateway with 1 downstream channel, you can select the address pool No. 1. The unicast addresses and multicast addresses of all terminals within the service range of the gateway can be obtained from the address pool No. 1. For a gateway with 2 downstream channels, you can select address pools No. 1 and No. 5. The unicast addresses and multicast addresses of all terminals within the service range of the gateway can be obtained from these two address pools . For a gateway with 2 downstream channels, you can select address pools No. 1, No. 3, No. 5, and No. 7, and the unicast addresses and multicast addresses of all terminals within the service range of the gateway can be selected from here Four address pools are acquired. Step 203: Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address of the terminal is The address and the unicast address are in the same address pool; among them, the pulse time slot PingSlot frequency point of each address pool address is the same. In the embodiment of the present application, the address configuration request may include the type of address to be requested. Specifically, the address configuration request may include an address configuration request for a multicast address, an address configuration request for a unicast address, and an address configuration request for a unicast address and a multicast address. An address configuration request for a multicast address indicates that the terminal needs to request a multicast address, an address configuration request for a unicast address indicates that the terminal needs to request a unicast address, and the location of the unicast address and the multicast address The address configuration request means that the terminal needs to request a unicast address and a multicast address. In an example of the embodiment of the present application, the step 203 may include: if the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, Then select an address from the address pool where the unicast address is located as the target address; configure the target address as the multicast address of the terminal. If the address configuration request is an address configuration request for a multicast address, and the terminal has not been previously configured with a unicast address, select from any address pool corresponding to the gateway The target address is configured to be the multicast address of the terminal. In another example of the embodiment of the present application, the step 203 may include: if the address configuration request is an address configuration request for a unicast address, and the terminal has been previously configured with a multicast address , Select an address from the address pool where the multicast address is located as the target address; configure the target address as the unicast address of the terminal. If the address configuration request is an address configuration request for a unicast address, and the terminal has not been previously configured with a multicast address, select from any address pool corresponding to the gateway Target address; configure the target address as the unicast address of the terminal. In another example of the embodiment of the present application, the step 203 may include: if the address configuration request is an address configuration request for a unicast address and a multicast address, from the gateway Two addresses are selected from a corresponding address pool as target addresses; the target addresses are respectively configured as the unicast address and the multicast address of the terminal. In the embodiment of this application, the target address can be selected from an address pool corresponding to the gateway, and the target address can be configured to the terminal, so that the multicast address and unicast address configured for the terminal are located In the same address pool, because the PingSlot frequency points of the addresses in the same address pool are the same, the frequency point of the multicast address is the same as the frequency point of the unicast address. The frequency point and the frequency point of the unicast address are different, and the unicast downlink data or multicast downlink data is lost. It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those with ordinary knowledge in the technical field should know that the embodiments of this application are not subject to the described sequence of actions. Is limited because according to the embodiments of the present application, some steps can be performed in other order or simultaneously. Secondly, those with ordinary knowledge in the technical field should also be aware that the embodiments described in the specification are all preferred embodiments, and the related actions are not necessarily required by the embodiments of this application. Referring to FIG. 5, there is shown a structural block diagram of an embodiment of a terminal address configuration device of the present application. The device is set on a server, and the device may specifically include the following modules: a gateway determination module 501, When the server receives the address configuration request, it determines the gateway corresponding to the address configuration request; the terminal address configuration module 502 is used to select from an address pool corresponding to the gateway Target address, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address and the unicast address of the terminal are in the same address pool; wherein each The addresses of the address pool have the same pulse time slot PingSlot frequency. In this embodiment of the application, the PingSlot frequency points of addresses in different address pools are different. In the embodiment of the present application, the device may further include: a gateway address pool determining module, configured to determine an address pool corresponding to the gateway from a plurality of preset address pools. In the embodiment of the present application, the gateway address pool determining module may include: a downlink channel quantity determining sub-module, configured to determine the number of downstream channels of the gateway; gateway address pool determining submodule The module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway. In the embodiment of the present application, the gateway address pool determining sub-module includes: a first gateway address pool determining unit, configured to: if the number of downstream channels of the gateway is one, start Determine an address pool corresponding to the gateway among the multiple address pools set; the second gateway address pool determining unit is used for if the number of downlink channels of the gateway is multiple, then A plurality of address pools corresponding to the gateway are determined from a plurality of preset address pools; wherein there are unused frequency points between two of the plurality of address pools. In this embodiment of the present application, the terminal address configuration module 502 may include: a first target address selection submodule, configured to, if the address configuration request is an address configuration request for a multicast address, And the terminal has been configured with a unicast address in advance, then select an address from the address pool where the unicast address is located as the target address; the first target address configuration submodule is used to configure all The target address is configured as the multicast address of the terminal. In this embodiment of the present application, the terminal address configuration module 502 may include: a second target address selection submodule, configured to, if the address configuration request is an address configuration request for a unicast address, And the terminal has been configured with a multicast address in advance, then an address is selected from the address pool where the multicast address is located as the target address; the second target address configuration submodule is used to configure all The target address is configured as a unicast address of the terminal. In this embodiment of the application, the terminal address configuration module 502 may include: a third target address selection sub-module, configured to, if the address configuration request is for a unicast address and a multicast address For the address configuration request, two addresses are selected as target addresses from an address pool corresponding to the gateway; the third target address configuration sub-module is used to configure the target addresses separately Is the unicast address and multicast address of the terminal. As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. An embodiment of the present application also provides a device, including: one or more processors; and one or more machine-readable media on which instructions are stored. When executed by the one or more processors, the The device executes the method described in the embodiment of this application. The embodiments of the present application also provide one or more machine-readable media on which instructions are stored, which when executed by one or more processors, cause the processors to execute the methods described in the embodiments of the present application. The various embodiments in this specification are described in a sequential manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. Those with ordinary knowledge in the technical field should understand that the embodiments of the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application can adopt computer program products implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program codes. form. The embodiments of this application are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, dedicated computers, embedded processors, or other programmable data processing terminal equipment to generate a machine that can be executed by the processor of the computer or other programmable data processing terminal equipment A device for realizing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram is generated. These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured product including the instruction device , The instruction device realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram. These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to generate computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed above provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram. Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they have learned the basic and progressive concepts. Therefore, the scope of the attached patent application is intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application. Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities Or there is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also those that are not explicitly listed. Other elements listed, or also include elements inherent to this process, method, article, or terminal device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article or terminal device that includes the element. The address configuration method of the terminal and the address configuration device of the terminal provided in this application are described in detail above. Specific examples are used in this article to illustrate the principle and implementation of the application. The description of the above embodiments It is only used to help understand the methods and core ideas of this application; at the same time, for those of ordinary skill in the art, according to the ideas of this application, there will be changes in the specific implementation and scope of application. In summary, The content of this manual should not be construed as a limitation on this application.

101:步驟 102:步驟 201:步驟 202:步驟 203:步驟 501:閘道器確定模組 502:終端位址配置模組 S11:子步驟 S12:子步驟 S121:子步驟 S122:子步驟101: steps 102: Step 201: Step 202: Step 203: Step 501: Gateway determination module 502: terminal address configuration module S11: Substep S12: Substep S121: Substep S122: substep

[圖1]是本申請的一種終端的位址配置方法實施例一的步驟流程圖; [圖2]是本申請的一種終端的位址配置方法實施例二的步驟流程圖; [圖3]是本申請實施例中一種劃分位址池的示意圖; [圖4]是本申請實施例中一種確定對應閘道器的位址池的示意圖; [圖5]是本申請的一種終端的位址配置裝置實施例的結構框圖。[Fig. 1] is a flowchart of the steps of Embodiment 1 of a method for configuring an address of a terminal according to the present application; [Fig. 2] is a flowchart of the steps of Embodiment 2 of a method for configuring a terminal address according to the present application; [Fig. 3] is a schematic diagram of dividing an address pool in an embodiment of the present application; [Figure 4] is a schematic diagram of determining the address pool corresponding to the gateway in an embodiment of the present application; [Figure 5] is a structural block diagram of an embodiment of a terminal address configuration device of the present application.

Claims (18)

一種終端的位址配置方法,其特徵在於,應用於伺服器,所述方法包括: 當伺服器接收到位址配置請求時,確定所述位址配置請求對應的閘道器; 從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,以使所述終端的組播位址和單播位址位於同一個位址池中;其中,每個位址池中的位址的脈衝時槽PingSlot頻點相同。A method for configuring an address of a terminal, characterized in that it is applied to a server, and the method includes: When the server receives the address configuration request, it determines the gateway corresponding to the address configuration request; Select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that the multicast address of the terminal and the single The broadcast addresses are located in the same address pool; among them, the pulse time slot PingSlot frequency point of the address in each address pool is the same. 根據請求項1所述的方法,其中,還包括: 從預置的多個位址池中,確定對應所述閘道器的位址池。The method according to claim 1, which further includes: From a plurality of preset address pools, determine the address pool corresponding to the gateway. 根據請求項2所述的方法,其中,所述從預置的多個位址池中,確定對應所述閘道器的位址池,包括: 確定所述閘道器的下行通道數量; 根據所述閘道器的下行通道數量,從預置的多個位址池中確定對應所述閘道器的位址池。The method according to claim 2, wherein the determining an address pool corresponding to the gateway from a plurality of preset address pools includes: Determine the number of downstream channels of the gateway; According to the number of downstream channels of the gateway, an address pool corresponding to the gateway is determined from a plurality of preset address pools. 根據請求項3所述的方法,其中,所述根據所述閘道器的下行通道數量,從預置的多個位址池中確定對應所述閘道器的位址池,包括: 若所述閘道器的下行通道數量為一個,則從預置的多個位址池中確定一個對應所述閘道器的位址池; 若所述閘道器的下行通道數量為多個,則從預置的多個位址池中確定多個對應所述閘道器的位址池;其中所述多個位址池兩兩之間間隔有未使用的頻點。The method according to claim 3, wherein the determining the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downlink channels of the gateway includes: If the number of downlink channels of the gateway is one, determine an address pool corresponding to the gateway from a plurality of preset address pools; If the number of downlink channels of the gateway is multiple, multiple address pools corresponding to the gateway are determined from the multiple preset address pools; wherein the multiple address pools are two by two There are unused frequency points in the interval. 根據請求項1-4任一項所述的方法,其中,所述從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,包括: 若所述位址配置請求為針對組播位址的位址配置請求,並且所述終端在先已配置有單播位址,則從該單播位址所在的位址池中選取一個位址作為目標位址; 將所述目標位址配置為所述終端的組播位址。The method according to any one of claim items 1-4, wherein the selecting a target address from an address pool corresponding to the gateway, and configuring the target address to the address The terminal corresponding to the configuration request includes: If the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, select an address from the address pool where the unicast address is located As the target address; The target address is configured as the multicast address of the terminal. 根據請求項1-4任一項所述的方法,其中,所述從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,包括: 若所述位址配置請求為針對單播位址的位址配置請求,並且所述終端在先已配置有組播位址,則從該組播位址所在的位址池中選取一個位址作為目標位址; 將所述目標位址配置為所述終端的單播位址。The method according to any one of claim items 1-4, wherein the selecting a target address from an address pool corresponding to the gateway, and configuring the target address to the address The terminal corresponding to the configuration request includes: If the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance, then an address is selected from the address pool where the multicast address is located As the target address; The target address is configured as the unicast address of the terminal. 根據請求項1-4任一項所述的方法,其中,所述從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,包括: 若所述位址配置請求為針對單播位址以及組播位址的位址配置請求,則從與所述閘道器對應的一個位址池中選取兩個位址作為目標位址; 將所述目標位址分別配置為所述終端的單播位址和組播位址。The method according to any one of claim items 1-4, wherein the selecting a target address from an address pool corresponding to the gateway, and configuring the target address to the address The terminal corresponding to the configuration request includes: If the address configuration request is an address configuration request for a unicast address and a multicast address, selecting two addresses from an address pool corresponding to the gateway as the target address; The target address is respectively configured as the unicast address and the multicast address of the terminal. 根據請求項1所述的方法,其中,不同位址池的位址的PingSlot頻點不同。The method according to claim 1, wherein the PingSlot frequency points of addresses in different address pools are different. 一種終端的位址配置裝置,其特徵在於,所述裝置設置於伺服器,所述裝置包括: 閘道器確定模組,用於當伺服器接收到位址配置請求時,確定所述位址配置請求對應的閘道器; 終端位址配置模組,用於從與所述閘道器對應的一個位址池中選取目標位址,並將所述目標位址配置給所述位址配置請求對應的終端,以使所述終端的組播位址和單播位址位於同一個位址池中;其中,每個位址池的位址的脈衝時槽PingSlot頻點相同。An address configuration device for a terminal, characterized in that the device is set in a server, and the device includes: The gateway determination module is used to determine the gateway corresponding to the address configuration request when the server receives the address configuration request; The terminal address configuration module is used to select a target address from an address pool corresponding to the gateway, and configure the target address to the terminal corresponding to the address configuration request, so that all The multicast address and the unicast address of the terminal are located in the same address pool; wherein, the pulse time slot PingSlot frequency point of each address pool address is the same. 根據請求項9所述的裝置,其中,還包括: 閘道器位址池確定模組,用於從預置的多個位址池中,確定對應所述閘道器的位址池。The device according to claim 9, which further includes: The gateway address pool determining module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools. 根據請求項10所述的裝置,其中,所述閘道器位址池確定模組包括: 下行通道數量確定子模組,用於確定所述閘道器的下行通道數量; 閘道器位址池確定子模組,用於根據所述閘道器的下行通道數量,從預置的多個位址池中確定與所述閘道器對應的位址池。The device according to claim 10, wherein the gateway address pool determination module includes: The number of downlink channels determining sub-module is used to determine the number of downlink channels of the gateway; The gateway address pool determining sub-module is used to determine the address pool corresponding to the gateway from a plurality of preset address pools according to the number of downstream channels of the gateway. 根據請求項11所述的裝置,其中,所述閘道器位址池確定子模組包括: 第一閘道器位址池確定單元,用於若所述閘道器的下行通道數量為一個,則從預置的多個位址池中確定一個與所述閘道器對應的位址池; 第二閘道器位址池確定單元,用於若所述閘道器的下行通道數量為多個,則從預置的多個位址池中確定多個對應所述閘道器的位址池;其中所述多個位址池兩兩之間間隔有未使用的頻點。The device according to claim 11, wherein the gateway address pool determining sub-module includes: The first gateway address pool determining unit is configured to determine an address pool corresponding to the gateway from a plurality of preset address pools if the number of downstream channels of the gateway is one ; The second gateway address pool determining unit is configured to determine multiple addresses corresponding to the gateway from the preset multiple address pools if the number of downstream channels of the gateway is multiple Pool; wherein there are unused frequency points between the multiple address pools. 根據請求項9-12任一項所述的裝置,其中,所述終端位址配置模組包括: 第一目標位址選取子模組,用於若所述位址配置請求為針對組播位址的位址配置請求,並且所述終端在先已配置有單播位址,則從該單播位址所在的位址池中選取一個位址作為目標位址; 第一目標位址配置子模組,用於將所述目標位址配置為所述終端的組播位址。The device according to any one of claim 9-12, wherein the terminal address configuration module includes: The first target address selection sub-module is used for, if the address configuration request is an address configuration request for a multicast address, and the terminal has been configured with a unicast address in advance, start from the unicast address Select an address from the address pool where the address is located as the target address; The first target address configuration sub-module is used to configure the target address as the multicast address of the terminal. 根據請求項9-12任一項所述的裝置,其中,所述終端位址配置模組包括: 第二目標位址選取子模組,用於若所述位址配置請求為針對單播位址的位址配置請求,並且所述終端在先已配置有組播位址,則從該組播位址所在的位址池中選取一個位址作為目標位址; 第二目標位址配置子模組,用於將所述目標位址配置為所述終端的單播位址。The device according to any one of claim 9-12, wherein the terminal address configuration module includes: The second target address selection submodule is used to select from the multicast address if the address configuration request is an address configuration request for a unicast address, and the terminal has been configured with a multicast address in advance Select an address from the address pool where the address is located as the target address; The second target address configuration sub-module is used to configure the target address as the unicast address of the terminal. 根據請求項9-12任一項所述的裝置,其中,所述終端位址配置模組包括: 第三目標位址選取子模組,用於若所述位址配置請求為針對單播位址以及組播位址的位址配置請求,則從與所述閘道器對應的一個位址池中選取兩個位址作為目標位址; 第三目標位址配置子模組,用於將所述目標位址分別配置為所述終端的單播位址和組播位址。The device according to any one of claim 9-12, wherein the terminal address configuration module includes: The third target address selection sub-module is used to select an address pool corresponding to the gateway if the address configuration request is an address configuration request for a unicast address and a multicast address Select two addresses as the target address; The third target address configuration sub-module is used to configure the target address as the unicast address and the multicast address of the terminal respectively. 根據請求項9所述的裝置,其中,不同位址池的位址的PingSlot頻點不同。The device according to claim 9, wherein the PingSlot frequency points of addresses in different address pools are different. 一種裝置,其特徵在於,包括: 一個或多個處理器;和 其上儲存有指令的一個或多個機器可讀媒體,當由所述一個或多個處理器執行時,使得所述裝置執行如請求項1-8所述的一個或多個的方法。A device, characterized in that it comprises: One or more processors; and One or more machine-readable media on which instructions are stored, when executed by the one or more processors, cause the device to perform one or more of the methods described in Claims 1-8. 一個或多個機器可讀媒體,其上儲存有指令,當由一個或多個處理器執行時,使得所述處理器執行如請求項1-8所述的一個或多個的方法。One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods described in claim items 1-8.
TW108142516A 2019-01-15 2019-11-22 Terminal address configuration method and device TW202044025A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910037024.7A CN111435950B (en) 2019-01-15 2019-01-15 Address configuration method and device for terminal
CN201910037024.7 2019-01-15

Publications (1)

Publication Number Publication Date
TW202044025A true TW202044025A (en) 2020-12-01

Family

ID=71580065

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108142516A TW202044025A (en) 2019-01-15 2019-11-22 Terminal address configuration method and device

Country Status (3)

Country Link
CN (1) CN111435950B (en)
TW (1) TW202044025A (en)
WO (1) WO2020147610A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118584B (en) * 2020-11-23 2021-02-19 翱捷科技(深圳)有限公司 Gateway, LoRa network system, gateway operation method and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316027A (en) * 2011-08-17 2012-01-11 清华大学 Bidirectional conversion method based on IPv6 unicast and SSM multicast and system thereof
US20140006568A1 (en) * 2012-06-28 2014-01-02 Alcatel-Lucent Canada, Inc. Prioritization based on ip pool and subnet by dhcp
US9860677B1 (en) * 2016-09-30 2018-01-02 Intel Corporation Internet-of-things gateway coordination
US10178646B2 (en) * 2017-04-12 2019-01-08 Cisco Technology, Inc. System and method to facilitate slice management in a network environment
CN108307355B (en) * 2017-12-21 2020-07-31 中兴克拉科技(苏州)有限公司 Multicast implementation method of L PWAN Internet of things
CN108063837A (en) * 2017-12-25 2018-05-22 锐捷网络股份有限公司 Dynamic IP addressing distribution method and device
CN109194774B (en) * 2018-08-09 2021-10-22 中兴克拉科技(苏州)有限公司 Equipment address expansion method of LPWAN network server

Also Published As

Publication number Publication date
WO2020147610A1 (en) 2020-07-23
CN111435950B (en) 2022-05-27
CN111435950A (en) 2020-07-21

Similar Documents

Publication Publication Date Title
US10333835B2 (en) Packet transmission method, apparatus, and system
CN111464446B (en) Communication method and device for multi-line server access and server
WO2019042186A1 (en) Network management method and related device
EP3499850B1 (en) Address management methods and apparatuses
US20130148596A1 (en) Resource management system and method of centralized base station in mobile communication network
KR20220018555A (en) Method and apparatus for logical TSN bridge
CN109495526A (en) A kind of file transmitting method, device, system, electronic equipment and storage medium
WO2017219873A1 (en) Method and apparatus for locating domain names attacked by syn
WO2021057369A1 (en) Httpdns scheduling method and apparatus, medium, and device
TW201939991A (en) Positioning method and system for communication network
CN102769867A (en) Network access method
TW202044025A (en) Terminal address configuration method and device
US9730230B2 (en) System and method for performing resource allocation
CN105656978A (en) Resource sharing method and device
CN110247778B (en) Operating system installation method and device, electronic equipment and storage medium
CN105939404B (en) The acquisition methods and device of NAT resource
CN109862134B (en) Lease time configuration method and system of IP address and DHCP client
TW201940003A (en) Terminal, base station, and method for communications between the terminal and the base station and for accessing a network
EP3410638B1 (en) Network affinity index increase
TW202008846A (en) Communication method and apparatus for terminal
CN101888337B (en) Control matrix-based network real-time traffic control method
CN103369550B (en) A kind of targeted sites, inquiry website, communication system and the means of communication
WO2017193675A1 (en) Uplink resource scheduling method and device
CN110784910B (en) LoRa network new service node access method
WO2020238738A1 (en) Beacon frame communication and base station synchronization methods and apparatuses in communication network