CN111698340B - Wireless service providing method, device, electronic equipment and storage medium - Google Patents

Wireless service providing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111698340B
CN111698340B CN202010329019.6A CN202010329019A CN111698340B CN 111698340 B CN111698340 B CN 111698340B CN 202010329019 A CN202010329019 A CN 202010329019A CN 111698340 B CN111698340 B CN 111698340B
Authority
CN
China
Prior art keywords
country code
response message
dhcp
dhcp response
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010329019.6A
Other languages
Chinese (zh)
Other versions
CN111698340A (en
Inventor
单丽娜
刘宜平
黄翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202010329019.6A priority Critical patent/CN111698340B/en
Publication of CN111698340A publication Critical patent/CN111698340A/en
Application granted granted Critical
Publication of CN111698340B publication Critical patent/CN111698340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a wireless service providing method, a wireless service providing device, an electronic device and a storage medium, wherein the method is applied to a fat AP, and comprises the following steps: sending a DHCP request message to a DHCP server in a network where the fat AP is located; receiving a DHCP response message sent by a DHCP server; acquiring a country code from the DHCP response message, and configuring the country code to the local when the local does not have the country code; and performing wireless communication according to the working parameters corresponding to the country code and the IP address acquired from the DHCP response message to provide wireless service. According to the embodiment of the application, a large amount of human resources can be saved, and the user experience can be improved.

Description

Wireless service providing method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a method and an apparatus for providing a wireless service, an electronic device, and a storage medium.
Background
At present, for FAT (FAT) Access Points (APs) in a network, a country code is usually configured manually, and the FAT APs perform wireless communication according to working parameters corresponding to the locally configured country code to provide wireless services.
If the fat AP is sold to a country different from the configured country code, the country code needs to be changed manually to ensure that the fat AP provides wireless service normally.
It can be seen that, the above-mentioned wireless service providing method requires manual configuration or country code change, and consumes more human resources and affects user experience when the number of fat APs is large.
Disclosure of Invention
The application provides a wireless service providing method, a wireless service providing device, an electronic device and a storage medium, which can save a large amount of human resources and improve user experience.
The technical scheme provided by the application is as follows:
the application provides a wireless service providing method, which is applied to a fat AP, and the method comprises the following steps:
sending a DHCP request message to a Dynamic Host Configuration Protocol (DHCP) server in a network where the fat AP is located;
receiving a DHCP response message sent by the DHCP server;
acquiring a country code from the DHCP response message, and configuring the country code to the local when the local does not have the country code;
and performing wireless communication according to the working parameters corresponding to the country code and the IP address acquired from the DHCP response message to provide wireless service.
The present application also provides a wireless service providing apparatus applied to a fat AP, the apparatus including:
the sending module is used for sending a DHCP request message to a DHCP server in a network where the fat AP is located;
the receiving module is used for receiving a DHCP response message sent by the DHCP server;
the configuration module is used for acquiring a country code from the DHCP response message and configuring the country code to the local when the country code is not configured locally;
and the communication module is used for carrying out wireless communication according to the working parameters corresponding to the country code and the IP address acquired from the DHCP response message and working on the determined working channel so as to provide wireless service.
The present application further provides an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the steps of any of the above wireless service providing methods are implemented.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the wireless service providing methods.
According to the technical scheme, no matter which country the fat AP uses, the corresponding country code is obtained by the fat AP from the DHCP server side, and relevant automatic configuration is carried out according to whether the country code exists locally or not, so that the fat AP is ensured to normally provide wireless service. The wireless service providing mode does not need manual configuration or change of the country code of the fat AP, thereby greatly saving human resources and improving user experience.
Drawings
Fig. 1 is a flowchart illustrating a method for providing wireless services according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a wireless service providing apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An embodiment of the present application provides a wireless service providing method, as shown in fig. 1, where the method is applied to a fat AP, and may include the following steps:
s11, sending a DHCP request message to a DHCP server in a network where the fat AP is located.
And S12, receiving a DHCP response message sent by the DHCP server.
And S13, acquiring the country code from the DHCP response message, and configuring the country code to the local when the country code does not exist locally.
And S14, performing wireless communication according to the working parameters corresponding to the country code and the IP address acquired from the DHCP response message to provide wireless service.
Preferably, in step S13, when the fat AP acquires the country code from the DHCP response message, the fat AP may specifically acquire the country code from an option field specified in the DHCP response message.
In the embodiment of the present application, the specified option field may be an option43 field, an option82 field, or an option184 field. Of course, other custom option fields are possible.
The contents of the specified option field (i.e., country code) may be configured on the DHCP server in advance, for example, may be configured with the DHCP address pool.
That is to say, the country code of the fat AP is configured on the DHCP server side in advance, where the country code is a country code corresponding to a country currently using the fat AP, and after receiving a DHCP request message sent by the fat AP, the subsequent DHCP server allocates an IP address to the fat AP, and carries the allocated IP address and the configured country code in a DHCP response message to respond to the fat AP, so that the fat AP performs related automatic configuration according to whether the country code exists locally, thereby saving human resources.
Specifically, after receiving the DHCP response message, the fat AP acquires the IP address and the country code from the DHCP response message, configures the country code to the local when the local does not have the country code, and continues to execute step S14.
When the country code exists locally, further judging whether the local country code is consistent with the acquired country code;
and if so, performing wireless communication according to the working parameters corresponding to the local country code and the IP address acquired from the DHCP response message to provide wireless service.
And if not, updating the local country code into the acquired country code, and performing wireless communication according to the working parameters corresponding to the acquired country code and the IP address acquired from the DHCP response message to provide wireless service. This situation applies to scenarios where the usage of a fat AP is not consistent with the country code of the original configuration.
It should be noted that the above-mentioned operating parameters may be an operating frequency band, an operating channel, a transmission power level, and the like of the fat AP.
Further, in this embodiment of the application, after the IP address obtained from the DHCP response message is invalid, the fat AP needs to reapply the IP address, that is, send the DHCP request message to the DHCP server again, if the country currently using the fat AP does not change, then the country code carried in the DHCP response message fed back by the DHCP server does not change, and after the subsequent fat AP receives the DHCP response message carrying the IP address and the country code, it is determined that the country code carried in the DHCP response message has been locally configured, and the DHCP response message is not configured repeatedly, and the IP address carried in the DHCP response message is directly used for subsequent operations.
The wireless service providing method will be described in detail with reference to specific embodiments.
Assuming that a network is constructed in china using a part of fat APs, the country codes, i.e., CNs, of the fat APs are configured in advance on a DHCP server in the network, and the fat APs may or may not be initially configured with country codes.
In one example, the country code of these fat APs may be configured with a pool of IP addresses.
For any fat AP in the network, after the initial power-on, the fat AP firstly sends a DHCP request message to a DHCP server in the network; then, the fat AP receives a DHCP response message sent by a DHCP server, acquires a country code CN from an option43 field in the DHCP response message, and assumes that the fat AP does not locally configure the country code, in this case, the fat AP configures the CN to the local; and finally, performing wireless communication according to the working parameters corresponding to the CN and the IP address acquired from the DHCP response message to provide wireless service.
Assuming that the fat AP is locally configured with the country code of australia, that is, the AU, the fat AP determines that the local country code (AU) is not consistent with the acquired country Code (CN), updates the AU to the CN, and then performs wireless communication according to the working parameter corresponding to the CN and the IP address acquired from the DHCP response message to provide wireless service.
According to the technical scheme, no matter which country the fat AP uses, the corresponding country code is obtained by the fat AP from the DHCP server side, and relevant automatic configuration is carried out according to whether the country code exists locally or not, so that the fat AP is ensured to normally provide wireless service. The wireless service providing mode does not need manual configuration or change of the country code of the fat AP, thereby greatly saving human resources and improving user experience.
Based on the same inventive concept, the present application further provides a wireless service providing apparatus, a schematic structural diagram of which is shown in fig. 2, the apparatus is applied to a fat AP, and specifically includes:
a sending module 21, configured to send a DHCP request message to a DHCP server in the network where the fat AP is located;
a receiving module 22, configured to receive a DHCP response message sent by the DHCP server;
the configuration module 23 is configured to obtain a country code from the DHCP response message, and configure the country code locally when no country code exists locally;
and the communication module 24 is configured to perform wireless communication according to the working parameter corresponding to the country code and the IP address acquired from the DHCP response message, so as to provide a wireless service.
Preferably, the configuration module 23 is specifically configured to:
and acquiring a country code from an option field appointed in the DHCP response message.
Preferably, the option field is an option43 field, an option82 field, or an option184 field.
Preferably, the module 23 is configured to:
after acquiring the country code from the DHCP response message, judging whether the local country code is consistent with the acquired country code when the local country code exists;
and if so, performing wireless communication according to the working parameters corresponding to the local country code and the IP address acquired from the DHCP response message to provide wireless service.
And if not, updating the local country code into the acquired country code, and performing wireless communication according to the working parameters corresponding to the acquired country code and the IP address acquired from the DHCP response message to provide wireless service.
According to the technical scheme, no matter which country the fat AP uses, the corresponding country code is obtained by the fat AP from the DHCP server side, and relevant automatic configuration operation is carried out according to whether the country code exists locally or not, so that the fat AP is ensured to normally provide wireless service. The wireless service providing mode does not need manual configuration or change of the country code of the fat AP, thereby greatly saving human resources and improving user experience.
An electronic device is further provided in the embodiments of the present application, as shown in fig. 3, including a processor 31 and a machine-readable storage medium 32, where the machine-readable storage medium 32 stores machine-executable instructions that can be executed by the processor 31, and the processor 31 is caused by the machine-executable instructions to: the steps of any of the above wireless service providing methods are implemented.
The machine-readable storage medium may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program realizes the steps of any one of the above wireless service providing methods when executed by a processor.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A wireless service providing method applied to a fat Access Point (AP), the method comprising:
sending a DHCP request message to a Dynamic Host Configuration Protocol (DHCP) server in a network where the fat AP is located;
receiving a DHCP response message sent by the DHCP server;
acquiring a country code from the DHCP response message, and configuring the country code to the local when the local does not have the country code;
performing wireless communication according to the working parameters corresponding to the country code and the IP address acquired from the DHCP response message to provide wireless service;
after acquiring the country code from the DHCP response message, the method further includes:
when the country code exists locally, judging whether the local country code is consistent with the acquired country code;
if so, performing wireless communication according to the working parameters corresponding to the local country code and the IP address acquired from the DHCP response message to provide wireless service;
and if not, updating the local country code into the acquired country code, and performing wireless communication according to the working parameters corresponding to the acquired country code and the IP address acquired from the DHCP response message to provide wireless service.
2. The method according to claim 1, wherein obtaining a country code from the DHCP response message specifically includes:
and acquiring a country code from an option field appointed in the DHCP response message.
3. The method of claim 2, wherein the option field is an option43 field, an option82 field, or an option184 field.
4. A wireless service providing apparatus applied to a fat access point AP, the apparatus comprising:
a sending module, configured to send a DHCP request message to a DHCP server in a network where the fat AP is located;
the receiving module is used for receiving a DHCP response message sent by the DHCP server;
the configuration module is used for acquiring a country code from the DHCP response message and configuring the country code to the local when the local does not have the country code;
the communication module is used for carrying out wireless communication according to the working parameters corresponding to the country code and the IP address acquired from the DHCP response message so as to provide wireless service;
the configuration module is further configured to:
after the country code is acquired from the DHCP response message, judging whether the local country code is consistent with the acquired country code when the local country code exists;
if so, performing wireless communication according to the working parameters corresponding to the local country code and the IP address acquired from the DHCP response message to provide wireless service;
and if not, updating the local country code into the acquired country code, and performing wireless communication according to the working parameters corresponding to the acquired country code and the IP address acquired from the DHCP response message to provide wireless service.
5. The apparatus of claim 4, wherein the configuration module is specifically configured to:
and acquiring a country code from an option field appointed in the DHCP response message.
6. The apparatus of claim 5, wherein the option field is an option43 field, an option82 field, or an option184 field.
7. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
CN202010329019.6A 2020-04-23 2020-04-23 Wireless service providing method, device, electronic equipment and storage medium Active CN111698340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010329019.6A CN111698340B (en) 2020-04-23 2020-04-23 Wireless service providing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010329019.6A CN111698340B (en) 2020-04-23 2020-04-23 Wireless service providing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111698340A CN111698340A (en) 2020-09-22
CN111698340B true CN111698340B (en) 2023-04-07

Family

ID=72476623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010329019.6A Active CN111698340B (en) 2020-04-23 2020-04-23 Wireless service providing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111698340B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897724A (en) * 2016-05-05 2016-08-24 张胜利 Method for wireless terminal networking based on fat APs and method for wandering among fat APs

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3886484B2 (en) * 2003-10-27 2007-02-28 Necビューテクノロジー株式会社 Terminal device, network setting method, network system, and program
CN102143141B (en) * 2010-01-29 2013-11-27 国基电子(上海)有限公司 Cable modem and method for automatically obtaining country code
CN104349511B (en) * 2013-08-01 2018-02-13 中国电信股份有限公司 The distribution method and device of AP addresses in wlan network
CN106211202A (en) * 2015-04-30 2016-12-07 中兴通讯股份有限公司 Wi-Fi configuration method based on hotspot and device
CN106304019B (en) * 2015-06-04 2020-01-21 中国移动通信集团公司 Mobile terminal capability updating method and device and mobile terminal
CN106686545B (en) * 2016-12-07 2019-04-26 Oppo广东移动通信有限公司 A kind of application method and device of Wireless Fidelity national code

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897724A (en) * 2016-05-05 2016-08-24 张胜利 Method for wireless terminal networking based on fat APs and method for wandering among fat APs

Also Published As

Publication number Publication date
CN111698340A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
AU2021277736B2 (en) Pdu type setting method, ue policy setting method, and related entity
US11363105B2 (en) Determining a target service based on a service discovery request
US11206537B2 (en) Session activation method, apparatus, and system
US20200252856A1 (en) Policy update method and apparatus
AU2017404864B2 (en) Network slice management method, unit and system
EP3664372A1 (en) Network management method and related device
US11503496B2 (en) Data processing method and apparatus
US11146660B2 (en) Information packet download method for preventing high concurrency, electronic device and storage medium
CN113366815B (en) Network resource request method, device, electronic equipment and storage medium
CN109600760B (en) Network management method, equipment and system
CN110650029B (en) Configuration method and device
EP3709738A1 (en) Bandwidth part (bwp) processing method and device
CN111683161A (en) Access method, device, electronic equipment and storage medium
CN111698340B (en) Wireless service providing method, device, electronic equipment and storage medium
JP2019008645A (en) SERVER DEVICE, METHOD FOR ALLOWING SERVER DEVICE TO COMMUNICATE WITH IoT DEVICE, COMPUTER PROGRAM, COMMUNICATION SYSTEM AND IoT DEVICE
EP3713306A1 (en) Information transmission method, network device, and terminal device
CN110278558B (en) Message interaction method and WLAN system
CN109639698B (en) Data processing method and server
CN109347994B (en) Internet protocol IP address obtaining method and device, storage medium and electronic equipment
CN108702663B (en) Method for managing network resources and wireless communication equipment
CN114980273A (en) Wireless network configuration method and device, readable storage medium and terminal equipment
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN113473414B (en) Method and device for acquiring vehicle and everything communication strategy
CN105491622B (en) The methods, devices and systems of wireless network parameter configuration
CN112866434B (en) Information configuration method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant