CN111372241B - Communication network access method and device - Google Patents

Communication network access method and device Download PDF

Info

Publication number
CN111372241B
CN111372241B CN201811593732.0A CN201811593732A CN111372241B CN 111372241 B CN111372241 B CN 111372241B CN 201811593732 A CN201811593732 A CN 201811593732A CN 111372241 B CN111372241 B CN 111372241B
Authority
CN
China
Prior art keywords
code set
access network
target
state
switch
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
CN201811593732.0A
Other languages
Chinese (zh)
Other versions
CN111372241A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201811593732.0A priority Critical patent/CN111372241B/en
Publication of CN111372241A publication Critical patent/CN111372241A/en
Application granted granted Critical
Publication of CN111372241B publication Critical patent/CN111372241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides an access method and a device of a communication network, which relate to the technical field of communication, wherein the method is applied to a user terminal, and comprises the following steps: receiving a first broadcast message sent by target access network equipment, wherein the first broadcast message carries a competitive code set and a non-competitive code set; determining an extended competitive code set according to a competitive code set, a non-competitive code set and a pre-stored extension algorithm, wherein the extended competitive code set consists of a competitive code set and a special competitive code set; selecting a first target random access code from the special competition code set, and sending an access request message to target access network equipment, wherein the access request message carries the first target random access code; and if the access response message sent by the target access network equipment is received within the first preset time, accessing the communication network through the target access network equipment. The invention can improve the safety of the special communication network.

Description

Communication network access method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an access method and an access device for a communication network.
Background
Cellular communication is a communication method that uses cellular wireless networking, and divides a service area of a user terminal into a plurality of regular hexagonal cells to form a structure similar to a "cell". Target access network equipment is erected in each cell to provide communication service for a plurality of user terminals in the cell. In each cell, Physical Random Access Channel (PRACH) resources are divided according to three dimensions of time, frequency, and code, and for the same PRACH resource, the cell usually adopts a code division manner to distinguish different user terminals. The code division method is a user terminal distinguishing method for distinguishing different user terminals by using a random access code, wherein the random access code (also called preamble code) includes a contention code and a non-contention code, the non-contention code is a random access code pre-allocated to the user terminal by a target access network device, and the contention code is a random access code used when the user terminal accesses a communication network in a contention mode.
In the prior art, in order to reduce the conflict caused by the fact that a plurality of user terminals access a communication network simultaneously under the same time-frequency PRACH resource, the user terminals may access the communication network in a contention manner. That is, the access network device may send the broadcast message to each user equipment under the time-frequency PRACH resource through the broadcast message. The broadcast message carries a contention code set and a non-contention code set. Subsequently, when a certain user terminal needs to access the communication network, the user terminal may randomly select a contention code from the contention code set, and send an access request message to the access network device. Wherein, the access request message carries the contention code randomly selected by the user terminal. After receiving the access request message sent by the user terminal, the access network device may query whether a contention code randomly selected by the user terminal exists in the contention code set. If the contention code randomly selected by the user terminal exists in the contention code set, the access network device may send an access response message to the user terminal. And the user terminal can access the communication network after receiving the access response message sent by the access network equipment.
However, based on the prior art, in the private communication network, since the access network device sends the broadcast message carrying the contention code set to each user terminal in the private communication network in a broadcast manner. Therefore, a user terminal not belonging to the private communication network (hereinafter, referred to as a normal user terminal) may also receive the broadcast message, acquire a contention code set of the private communication network, and select a random access code from the contention code set to access the private communication network, thereby resulting in lower security of the private communication network.
Disclosure of Invention
The embodiment of the invention provides an access method and device of a communication network, which can improve the safety of a special communication network. The technical scheme is as follows:
in a first aspect, an access method of a communication network is provided, where the method is applied to a user terminal, and the method includes:
receiving a first broadcast message sent by target access network equipment, wherein the first broadcast message carries a competitive code set and a non-competitive code set;
determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
selecting a first target random access code from the special competition code set, and sending an access request message to the target access network equipment, wherein the access request message carries the first target random access code;
and if the access response message sent by the target access network equipment is received within the first preset time length, accessing the communication network through the target access network equipment.
In a possible implementation manner, before determining an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm, the method further includes:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the user terminal determines an extended competitive code set;
and if the switch state of the local first function switch is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In a possible implementation manner, if the switch state of the local first function switch is an on state, the step of determining an extended contention code set according to the contention code set, the non-contention code set, and a pre-stored extension algorithm is executed, and includes:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
and if the switch state of the first function switch of the target access network equipment is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In a possible implementation manner, the obtaining the switch state of the first function switch of the target access network device includes:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
In a possible implementation manner, the obtaining the switch state of the first function switch of the target access network device includes:
and receiving a second broadcast message sent by the target access network equipment, wherein the second broadcast message carries the switch state of the first function switch of the target access network equipment.
In one possible implementation, the method further includes:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the user terminal selects a target random access code from a special competition code set;
if the switch state of the local second function switch is in a closed state and after an access request message is sent to the target access network equipment, if an access response message sent by the target access network equipment is not received within the first preset time length, a second target random access code is selected from the special contention code set again, and the access request message is sent to the target access network equipment, wherein the access request message carries the second target random access code;
and if the access request message is sent for a first preset number of times continuously and the access response message sent by the target access network equipment is not received within the first preset time length, selecting a third target random access code from the competition code set and sending an access request message to the target access network equipment, wherein the access request message carries the third target random access code.
In one possible implementation, the method further includes:
and if the access request message is continuously sent for a first preset number of times and the access response message sent by the target access network equipment is not received in the first preset time, setting the switch state of the first function switch of the target access network equipment to be a closed state.
In a possible implementation manner, the second broadcast message further carries a switch state of a second function switch of the target access network device, where the second function switch is used to indicate whether the access network device queries the target random access code from a dedicated contention code set, and the method further includes:
if the switch state of the local second function switch is in a closed state, the switch state of the second function switch of the target access network device is in a closed state, and after an access request message is sent to the target access network device, if an access response message sent by the target access network device is not received within the first preset time period, a fourth target random access code is selected from the special contention code set again, and the access request message is sent to the target access network device, wherein the access request message carries the fourth target random access code;
and if the access request message is sent for a second preset number of times continuously and the access response message sent by the target access network equipment is not received in the first preset time length, selecting a fifth target random access code from the competition code set and sending an access request message to the target access network equipment, wherein the access request message carries the fifth target random access code.
In a second aspect, an access method of a communication network is provided, where the method is applied to an access network device, and the method includes:
determining an extended competitive code set according to a pre-stored competitive code set, a non-competitive code set and an extended algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
sending a first broadcast message to a user terminal, wherein the first broadcast message carries the competition code set and the non-competition code set;
receiving an access request message sent by the user terminal, wherein the access request message carries a target random access code selected by the user terminal;
and if the target random access code exists in the special competition code set, sending an access response message to the user terminal.
In a possible implementation manner, before determining the extended contention code set according to a pre-stored contention code set, a pre-stored non-contention code set, and an extension algorithm, the method further includes:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the access network equipment determines an extended contention code set;
and if the switch state of the local first function switch is the on state, executing the step of determining the extended competitive code set according to the prestored competitive code set, the prestored non-competitive code set and the extended algorithm.
In one possible implementation, the method further includes:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the access network equipment inquires the target random access code from a special competition code set;
if the switch state of the local second function switch is the on state, inquiring whether the target random access code exists in a special competition code set contained in the expanded competition code set;
and if the switch state of the local second function switch is the closing state, inquiring whether the target random access code exists in the extended competition code set.
In one possible implementation, the method further includes:
and sending a second broadcast message to the user terminal, wherein the second broadcast message carries the on-off state of the first function switch and/or the on-off state of the second function switch.
In a third aspect, an access apparatus of a communication network is provided, the apparatus being applied to a user terminal, and the apparatus including:
a receiving module, configured to receive a first broadcast message sent by a target access network device, where the first broadcast message carries a contention code set and a non-contention code set;
a first determining module, configured to determine an extended contention code set according to the contention code set, the non-contention code set, and a pre-stored extension algorithm, where the extended contention code set is composed of the contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from the non-contention code set;
a first sending module, configured to select a first target random access code from the dedicated contention code set, and send an access request message to the target access network device, where the access request message carries the first target random access code;
and the access module is used for accessing the communication network through the target access network equipment if receiving the access response message sent by the target access network equipment within a first preset time length.
In one possible implementation, the apparatus further includes:
the first judging module is used for judging whether the switch state of a local first function switch is an on state or not, and the first function switch is used for indicating whether the user terminal determines an extended contention code set or not;
and the second determining module is used for triggering the first determining module to execute the step of determining the extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm if the switch state of the local first function switch is the on state.
In a possible implementation manner, the second determining module is specifically configured to:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
and if the switch state of the first function switch of the target access network equipment is the on state, triggering the first determining module to execute the step of determining the extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In a possible implementation manner, the second determining module is specifically configured to:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
In a possible implementation manner, the second determining module is specifically configured to:
and receiving a second broadcast message sent by the target access network equipment, wherein the second broadcast message carries the switch state of the first function switch of the target access network equipment.
In one possible implementation, the apparatus further includes:
the second judging module is used for judging whether the switch state of a local second function switch is an on state or not, and the second function switch is used for indicating whether the user terminal selects a target random access code from a special competition code set or not;
a second sending module, configured to, if the switch state of the local second function switch is an off state and after sending an access request message to the target access network device, if an access response message sent by the target access network device is not received within the first preset time duration, reselect a second target random access code from the dedicated contention code set and send the access request message to the target access network device, where the access request message carries the second target random access code;
a third sending module, configured to select a third target random access code from the contention code set and send an access request message to the target access network device if the access request message is sent for a first preset number of times and an access response message sent by the target access network device is not received within the first preset duration, where the access request message carries the third target random access code.
In one possible implementation, the apparatus further includes:
and the setting module is used for setting the switching state of the first function switch of the target access network equipment to be a closing state if the access request message is sent for a first preset number of times continuously and the access response message sent by the target access network equipment is not received in the first preset time length.
In a possible implementation manner, the second broadcast message further carries a switch state of a second function switch of the target access network device, where the second function switch is configured to indicate whether the access network device queries the target random access code from a dedicated contention code set, and the apparatus further includes:
a fourth sending module, configured to, if the switch state of the local second function switch is an off state, the switch state of the second function switch of the target access network device is an off state, and after sending an access request message to the target access network device, if an access response message sent by the target access network device is not received within the first preset time period, reselect a fourth target random access code from the dedicated contention code set, and send the access request message to the target access network device, where the access request message carries the fourth target random access code;
a fifth sending module, configured to select a fifth target random access code from the contention code set and send an access request message to the target access network device if the access request message is sent for a second preset number of times and an access response message sent by the target access network device is not received within the first preset duration, where the access request message carries the fifth target random access code.
In a fourth aspect, an access apparatus of a communication network is provided, where the apparatus is applied to an access network device, and the apparatus includes:
a first determining module, configured to determine an extended contention code set according to a pre-stored contention code set, a non-contention code set and an extension algorithm, where the extended contention code set is composed of the contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from the non-contention code set;
a first sending module, configured to send a first broadcast message to a user terminal, where the first broadcast message carries the contention code set and the non-contention code set;
a receiving module, configured to receive an access request message sent by the user terminal, where the access request message carries a target random access code selected by the user terminal;
a second sending module, configured to send an access response message to the ue if the target random access code exists in the dedicated contention code set.
In one possible implementation, the apparatus further includes:
the first judging module is used for judging whether the switch state of a local first function switch is an on state, and the first function switch is used for indicating whether the access network equipment determines an extended contention code set;
and the second determining module is used for triggering the first determining module to execute the step of determining the extended competitive code set according to the prestored competitive code set, the prestored non-competitive code set and the extended algorithm if the switch state of the local first function switch is the on state.
In one possible implementation, the apparatus further includes:
a second judging module, configured to judge whether a switch state of a local second function switch is an on state, where the second function switch is used to indicate whether the access network device queries the target random access code from a dedicated contention code set;
a first query module, configured to query whether the target random access code exists in a dedicated contention code set included in the extended contention code set if the switch state of the local second function switch is an on state;
and the second query module is used for querying whether the target random access code exists in the extended contention code set if the switch state of the local second function switch is the off state.
In one possible implementation, the apparatus further includes:
and a third sending module, configured to send a second broadcast message to the user terminal, where the second broadcast message carries an on/off state of the first function switch and/or an on/off state of the second function switch.
In a fifth aspect, a user terminal is provided, which comprises a memory, a processor and a communication interface, wherein:
the memory to store program instructions;
the processor is configured to perform the following operations according to program instructions stored in the memory:
receiving a first broadcast message sent by target access network equipment through the communication interface, wherein the first broadcast message carries a competitive code set and a non-competitive code set;
determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
selecting a first target random access code from the special competition code set, and sending an access request message to the target access network equipment through the communication interface, wherein the access request message carries the first target random access code;
and if the access response message sent by the target access network equipment is received through the communication interface within the first preset time length, accessing the communication network through the target access network equipment.
In a possible implementation manner, before the processor performs the operation of determining an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm, the processor further performs the following operations according to program instructions stored in the memory:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the user terminal determines an extended competitive code set;
and if the switch state of the local first function switch is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In a possible implementation manner, the processor executes the operation of determining the set of spreading codes according to the set of contention codes, the set of non-contention codes, and a pre-stored spreading algorithm if the switch state of the local first function switch is the on state, where the operation includes:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
and if the switch state of the first function switch of the target access network equipment is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In one possible implementation manner, the processor performs the operation of obtaining the switch state of the first function switch of the target access network device, and includes:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
In one possible implementation manner, the processor performs the operation of obtaining the switch state of the first function switch of the target access network device, and includes:
and receiving a second broadcast message sent by the target access network equipment through the communication interface, wherein the second broadcast message carries the on-off state of the first function switch of the target access network equipment.
In one possible implementation, the processor further performs the following operations according to program instructions stored in the memory:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the user terminal selects a target random access code from a special competition code set;
if the switch state of the local second function switch is in a closed state and after an access request message is sent to the target access network equipment through the communication interface, if an access response message sent by the target access network equipment is not received through the communication interface within the first preset time, a second target random access code is selected from the special contention code set again, and the access request message is sent to the target access network equipment through the communication interface, wherein the access request message carries the second target random access code;
and if the access request message is sent through the communication interface for a first preset number of times and the access response message sent by the target access network equipment is not received through the communication interface within the first preset time, selecting a third target random access code from the competition code set, and sending the access request message to the target access network equipment through the communication interface, wherein the access request message carries the third target random access code.
In one possible implementation, the processor further performs the following operations according to program instructions stored in the memory:
and if the access request message is continuously sent through the communication interface for a first preset number of times and the access response message sent by the target access network equipment is not received through the communication interface within the first preset time, setting the switch state of the first function switch of the target access network equipment to be a closed state.
In a possible implementation manner, the second broadcast message further carries a switch state of a second function switch of the target access network device, where the second function switch is used to indicate whether the access network device queries the target random access code from a dedicated contention code set, and the processor further executes the following operations according to a program instruction stored in the memory:
if the switch state of the local second function switch is in a closed state, the switch state of the second function switch of the target access network device is in a closed state, and after an access request message is sent to the target access network device through the communication interface, if an access response message sent by the target access network device is not received through the communication interface within the first preset time period, a fourth target random access code is selected from the special contention code set again, and the access request message is sent to the target access network device through the communication interface, wherein the access request message carries the fourth target random access code;
and if the access request message is sent through the communication interface for a second preset number of times and the access response message sent by the target access network equipment is not received through the communication interface within the first preset time, selecting a fifth target random access code from the competition code set, and sending the access request message to the target access network equipment through the communication interface, wherein the access request message carries the fifth target random access code.
In a sixth aspect, there is provided a computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of the first aspect.
In a seventh aspect, an access network device is provided, the access network device comprising a memory, a processor, and a communication interface, wherein:
the memory to store program instructions;
the processor is configured to perform the following operations according to program instructions stored in the memory:
determining an extended competitive code set according to a pre-stored competitive code set, a non-competitive code set and an extended algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
sending a first broadcast message to a user terminal through the communication interface, wherein the first broadcast message carries the competition code set and the non-competition code set;
receiving an access request message sent by the user terminal through the communication interface, wherein the access request message carries a target random access code selected by the user terminal;
and if the target random access code exists in the special competition code set, sending an access response message to the user terminal through the communication interface.
In a possible implementation manner, before the processor executes the operation of determining the extended contention code set according to the pre-stored contention code set, the non-contention code set and the extension algorithm, the processor further executes the following operations according to program instructions stored in the memory:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the access network equipment determines an extended contention code set;
and if the switch state of the local first function switch is the on state, executing the step of determining the extended competitive code set according to the prestored competitive code set, the prestored non-competitive code set and the extended algorithm.
In one possible implementation, the processor further performs the following operations according to program instructions stored in the memory:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the access network equipment inquires the target random access code from a special competition code set;
if the switch state of the local second function switch is the on state, inquiring whether the target random access code exists in a special competition code set contained in the expanded competition code set;
and if the switch state of the local second function switch is the closing state, inquiring whether the target random access code exists in the extended competition code set.
In one possible implementation, the processor further performs the following operations according to program instructions stored in the memory:
and sending a second broadcast message to the user terminal through the communication interface, wherein the second broadcast message carries the on-off state of the first function switch and/or the on-off state of the second function switch.
In an eighth aspect, there is provided a computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of the second aspect.
The embodiment of the invention provides an access method and an access device of a communication network. The first broadcast message carries a contention code set and a non-contention code set. And then, the user terminal determines an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm. The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set. And then, the user terminal selects a first target random access code from the special competition code set and sends an access request message to the target access network equipment. The access request message carries a first target random access code. Subsequently, if the user terminal receives the access response message sent by the target access network equipment within the first preset time, the user terminal accesses the communication network through the target access network equipment. In this way, the access network device detects the first target random access code selected by the user terminal in the dedicated competition code set, thereby ensuring that the user terminal can only access the communication network through the dedicated competition code, and further improving the security of the dedicated communication network.
Drawings
Fig. 1 is an architecture diagram of a communication network provided by an embodiment of the present invention;
fig. 2 is a flowchart of an access method of a communication network according to an embodiment of the present invention;
fig. 3 is a flowchart of an access method of a communication network according to an embodiment of the present invention;
fig. 4 is a flowchart of an example of an access method of a communication network according to an embodiment of the present invention;
fig. 5 is a flowchart of an example of an access method of a communication network according to an embodiment of the present invention;
fig. 6 is a flowchart of an example of an access method of a communication network according to an embodiment of the present invention;
fig. 7 is a flowchart of an example of an access method of a communication network according to an embodiment of the present invention;
fig. 8 is a flowchart of an example of an access method of a communication network according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of an access device of a communication network according to an embodiment of the present invention;
fig. 18 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
fig. 19 is a schematic structural diagram of an access network device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an access method of a communication network, which can be applied to a cellular communication network. In particular, the method may be applied to a user terminal and an access network device in a cellular communication network. Fig. 1 is a block diagram of a communication network according to an embodiment of the present invention. As shown in fig. 1, the communication network includes a plurality of cells, each of which has access network equipment installed therein to provide communication services for user terminals located in the cell. In each cell, PRACH resources are divided according to three dimensions, time, frequency, and code, and for the same time-frequency PRACH resource, the cell usually adopts a code division manner to distinguish different user terminals. The code division mode is to use random access codes to distinguish different user terminals, wherein the random access codes (also called preamble codes, usually, each cell includes 64 random access codes) include competition codes and non-competition codes, the non-competition codes refer to random access codes pre-allocated to the user terminals by the target access network equipment, and the user terminals usually access the communication network by using the non-competition codes when the normal cell is switched or the access network equipment has data to send to the user terminals but the user terminals are out of step; the contention code is a random access code used when the ue accesses the communication network in a contention mode, and is generally used when the ue initially accesses the network, reestablishes Radio Resource Control (RRC) connection, needs to access the network when there is data to be transmitted but the ue is out of synchronization, and the access network device does not allocate a non-contention code during normal cell handover. Meanwhile, the contention codes may be further divided into a first type (also referred to as Group a) contention code and a second type (also referred to as Group B) contention code. When the user terminal accesses the communication network in a competition mode, the user terminal selects the first type competition code or the second type competition code according to the size and the signal quality of a message sent subsequently. For example, if the size of the message sent by the ue is large and the signal quality is good, the ue may select the second type of contention code to access the communication network; otherwise, the user terminal may select the first type of contention code to access the communication network.
The access network device broadcasts a random access code to the user terminal through a system information block type2 (SIB 2) message. Wherein, the access network equipment uses numberOfRA-Preambles to represent the number of the competitive codes and uses sizeOfRA-preamblesGroupA to represent the number of the first type of competitive codes in the PRACH field of the SIB2 message. The user terminal can determine the number of the second type competition codes through the number OfRA-Preambles-sizeOfRA-preamblesGroupA. The access network device may carry the non-contention code through a Downlink Control Information (DCI) or an RRC reconfiguration message. It should be noted that, in the embodiment of the present application, the access network device broadcasts the random access code to the user terminal through a system information block type1 (SIB 1) message. The embodiment of the present application is described by taking an example that an access network device broadcasts a random access code to a user equipment through an SIB2 message, and other requests are similar to the above.
However, based on the prior art, in the private communication network, since the access network device sends the broadcast message carrying the contention code set to each user terminal in the private communication network in a broadcast manner. Therefore, a user terminal not belonging to the private communication network (hereinafter, referred to as a normal user terminal) may also receive the broadcast message, acquire a contention code set of the private communication network, and select a random access code from the contention code set to access the private communication network, thereby resulting in lower security of the private communication network. Meanwhile, for a public communication network (also called a mobile communication network), if the number of the user terminals in the public communication network is large, due to the limited number of the random access codes in the contention code set, when a plurality of user terminals access the public communication network simultaneously in a contention mode, the number of the random access codes in the contention code set is insufficient, which may result in that the important user terminals cannot access the public communication network for a long time.
The embodiment of the application provides an access method of a communication network, and a user terminal can determine an extended competitive code set according to a pre-stored extension algorithm and a competitive code set and a non-competitive code set which are sent by an access network device through a broadcast message. The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set. Then, the user terminal can select a target random access code from the dedicated contention code set, and send an access request message carrying the target random access code to the access network device. And if the user terminal receives the access response message sent by the access network equipment within the first preset time length, accessing the communication network through the access network equipment. In this way, the access network device detects the first target random access code selected by the user terminal in the dedicated competition code set, thereby ensuring that the user terminal can only access the communication network through the dedicated competition code, and further improving the security of the dedicated communication network. Meanwhile, aiming at the public communication network, when a plurality of user terminals access the public communication network simultaneously in a competition mode and the number of random access codes in a competition code set is insufficient. At this time, the important user terminal can quickly access the public communication network through the dedicated contention code.
It should be noted that the communication network may be a communication network supporting a fourth generation (4G) access technology, for example, a Long Term Evolution (LTE) access technology; alternatively, the communication network may be a communication network supporting a fifth generation (5G) access technology, for example, a New Radio (NR) access technology; in addition, the communication network may also be adapted for future oriented communication technologies. The access network device in fig. 1 may be a device on the access network side for supporting the terminal to access the communication system, and may be, for example, an evolved node b (eNB) in a 4G access technology communication system, a next generation base station (gNB) in a 5G access technology communication system, a Transmission Reception Point (TRP), a relay node (relay node), an Access Point (AP), and so on. A user terminal may be a device that provides voice or data connectivity to a user, and may also be referred to as User Equipment (UE), mobile station (mobile station), subscriber unit (subscriber unit), station (station), Terminal Equipment (TE), etc. But may also be a cellular telephone (cellular phone), Personal Digital Assistant (PDA), wireless modem (modem), handheld device (hand-held), laptop computer (laptop computer), cordless telephone (cordless phone), Wireless Local Loop (WLL) station, tablet (pad), etc. With the development of wireless communication technology, all devices that can access a communication system, can communicate with a network side of the communication system, or communicate with other objects through the communication system may be terminals in the embodiments of the present application, such as terminals and automobiles in intelligent transportation, home devices in smart homes, power meter reading instruments in smart grid, voltage monitoring instruments, environment monitoring instruments, video monitoring instruments in smart security networks, cash registers, and so on.
In addition, the embodiments of the present application may divide the non-contention codes in the non-contention set into a first-type contention code set and a second-type contention code set to obtain a first-type extended contention code set and a second-type extended contention code set. The first type of extended contention code set comprises a first type of contention code set and a first type of dedicated contention code set, and the second type of extended contention code set comprises a second type of contention code set and a second type of dedicated contention code set. In the embodiment of the present application, non-contention codes in a non-contention set are divided into a first-type contention code set (hereinafter referred to as a contention code set) to obtain a first-type extended contention code set (hereinafter referred to as an extended contention code set), where the extended contention code set includes a contention code set and a first-type dedicated contention code set (hereinafter referred to as a dedicated contention code set), and other situations are similar to the above description.
The embodiment of the application provides an access method of a communication network, which is applied to an access network device, as shown in fig. 2, and the specific processing procedures are as follows:
step 201, determining an extended competitive code set according to a pre-stored competitive code set, a pre-stored non-competitive code set and an extended algorithm.
The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set.
In implementation, the access network device may store a contention code set, a non-contention code set, and an extension algorithm in advance. The competitive code set, the non-competitive code set and the expansion algorithm can be set by technicians or can be acquired from a server through a network. The access network device may select at least one non-contention code in a non-contention code set according to a pre-stored spreading algorithm, divide the selected at least one non-contention code into a contention code set to obtain a spreading contention code set, and form a dedicated contention code set from the at least one non-contention code selected from the non-contention code set.
For example, the access network device pre-stores a contention code set of {0, 1, 2, 3, 4} and a non-contention code set of {5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }. The access network device may select the first 5 non-contention codes in the non-contention code set according to a pre-stored spreading algorithm, and divide the selected 5 non-contention codes into the contention code set to obtain a spreading contention code set {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, where the corresponding dedicated contention code set is {5, 6, 7, 8, 9 }.
Optionally, the access network device may determine whether to determine the extended contention code set according to a switch state of the local first function switch. The specific treatment process is as follows:
step one, judging whether the switch state of a local first function switch is an opening state.
The first function switch is used for indicating whether the access network equipment determines the extended contention code set.
In implementation, the access network device may be preset with a first function switch, where the first function switch is used to indicate whether the access network device determines the extended contention code set. Wherein the switching state of the first function switch can be set by a technician. Before determining the extended contention code set, the access network device may first determine whether a switch state of the local first function switch is an on state. And if the switch state of the local first function switch is the opening state, executing the step two.
And step two, determining an extended competitive code set according to a pre-stored competitive code set, a pre-stored non-competitive code set and an extended algorithm.
In implementation, if the switch state of the local first function switch is the on state, the access network device may determine the extended contention code set according to the pre-stored contention code set, the non-contention code set, and the extension algorithm. The process of determining the extended contention code set by the access network device according to the pre-stored contention code set, non-contention code set and extension algorithm is similar to step 201.
It should be noted that, if the switch state of the local first function switch is the off state, the access network device does not need to determine the extended contention code set according to the pre-stored contention code set, non-contention code set and extension algorithm. Correspondingly, because the access network device does not determine to remove the extended contention code set, subsequently, after the access network device receives an access request message carrying a target random access code sent by the user terminal, the access network device only queries whether the target random access code exists in the contention code set, and judges whether to send an access response message to the user terminal according to a query result.
Step 202, a first broadcast message is sent to a user terminal.
The first broadcast message carries a contention code set and a non-contention code set.
In implementation, after determining the extended contention code set, the access network device may send a first broadcast message to a user terminal in a cell to which the access network device belongs. The first broadcast message carries a contention code set and a non-contention code set, and the first broadcast message may be an SIB2 message or other types of messages.
Step 203, receiving an access request message sent by the user terminal.
The access request message carries a target random access code selected by the user terminal.
In implementation, when the user terminal needs to access the communication network, the user terminal may select a target random access code from a contention code set or a dedicated contention code set, and send an access request message to the access network device. Wherein, the access request message carries the target random access code. After receiving the access request message sent by the user terminal, the access network device may parse the access request message to obtain the target random access code carried in the access request message.
Step 204, if the target random access code exists in the special competition code set, an access response message is sent to the user terminal.
In implementation, after the access network device obtains the target random access code, it may query whether the target random access code exists in the determined dedicated contention code set. If the target random access code exists in the special competition code set, the user terminal is judged to be accessible to the communication network, and the access network equipment can send an access response message to the user terminal. If the target random access code does not exist in the special competition code set, the fact that the user terminal cannot access the communication network is judged, and the access network equipment does not send an access response message to the user terminal.
Optionally, the access network device may determine whether to query the target random access code from the dedicated contention code set according to a switch state of the local second function switch. The specific treatment process is as follows:
step one, judging whether the switch state of the local second function switch is an opening state.
The second function switch is used for indicating whether the access network equipment inquires the target random access code from the special competition code set.
In implementation, the access network device may be preset with a second function switch, where the second function switch is used to indicate whether the access network device queries the target random access code from the dedicated contention code set. Wherein the switching state of the second function switch can be set by a technician. After the access network device obtains the target random access code, it may first determine whether the switch state of the local second function switch is an on state. And if the switch state of the local second function switch is the opening state, executing the step two. And if the switch state of the local second function switch is the closing state, executing the third step.
And step two, whether the target random access code exists in a special competition code set contained in the expanded competition code set is inquired.
In implementation, if the switch state of the local second function switch is the on state, the access network device only queries whether the target random access code exists in the dedicated contention code set, that is, the access network device only allows the user terminal to access the communication network through the dedicated contention code set.
And step three, inquiring whether a target random access code exists in the extended competition code set.
In implementation, if the switch state of the local second function switch is the off state, the access network device may query whether the target random access code exists in the extended contention code set, that is, the access network device allows the user terminal to access the communication network through the contention code set and also allows the user terminal to access the communication network through the dedicated contention code set.
Optionally, the access network device may further send the switch state of the local first function switch and the switch state of the second function switch to the user terminal. The specific treatment process comprises the following steps: and the access network equipment sends the second broadcast message to the user terminal. The second broadcast message carries the on-off state of the first function switch and/or the on-off state of the second function switch.
In implementation, when the access network device needs to send the switch state of the local first function switch and the switch state of the second function switch to the user terminal of the cell to which the access network device belongs, the access network device may send the second broadcast message to the user terminal of the cell to which the access network device belongs. The second broadcast message carries a switch state of the first function switch and/or a switch state of the second function switch, and the second broadcast message may be a system information block type1 (SIB) type1 (SIB 1) SIB1 message, or may be another type of message, which is not limited in the embodiment of the present application. In this way, after receiving the second broadcast message sent by the access network device, the user terminal can determine whether to determine the extended contention code set according to the on-off state of the first function switch of the access network device carried in the second broadcast message. Meanwhile, the user terminal can also judge whether to select the target random access code in the special competition code set according to the on-off state of a second function switch of the access network equipment carried in the second broadcast message.
The access network device may add a signature field in the SIB1 message to carry the switch state of the first functional switch and the switch state of the second functional switch. The signature field may be 3 bytes, or may be bytes of other sizes, which is not limited in the embodiment of the present application. The present application takes the example of 3 bytes as the signature field, and the other cases are similar. The first byte of the signature field, which may be referred to as the Most Significant Bit (MSB), is used to store the Cell identification (Cell ID) of the Cell to which the access network device belongs. In order to improve the security, decoupling processing and complementary processing (for example, (Cell Id LSB + offset) mod 256) may be performed on the Cell identifier Least Significant Bit (LSB), where offset is a discrete randomized decoupling algorithm, and a value may be 7; and a second byte for storing the switch state of the first function switch and the switch state of the second function switch. The 4 th bit is used to indicate the on-off state of the first function switch, for example, the 4 th bit is 1 to indicate that the on-off state of the first function switch is an on state, and the 4 th bit is 0 to indicate that the on-off state of the first function switch is an off state; the 5 th bit is used for indicating the switch state of the second function switch, for example, the 5 th bit is 1 to indicate that the switch state of the second function switch is an on state, and the 5 th bit is 0 to indicate that the switch state of the second function switch is an off state; the 6 th to 8 th bits are reserved bits. In this embodiment, other bits in the second byte may also be used to respectively indicate the switch state of the first functional switch and the switch state of the second functional switch, which is not limited in this embodiment. The third byte (which may be referred to as LSB) is a fixed value 10101011 for verification.
It should be noted that, in the embodiment of the present application, the signature field may also be added to the SIB2 message to carry the switch state of the first functional switch and the switch state of the second functional switch.
The embodiment of the present application further provides an access method of a communication network, which is applied to a user terminal, as shown in fig. 3, and the specific processing procedure is as follows:
step 301, receiving a first broadcast message sent by a target access network device.
The first broadcast message carries a contention code set and a non-contention code set.
In implementation, a user terminal receives a first broadcast message sent by a target access network device. The first broadcast message carries a contention code set and a non-contention code set. After receiving a first broadcast message sent by a target access network device, a user terminal may parse the first broadcast message to obtain a contention code set and a non-contention code set carried in the first broadcast message.
Step 302, determining an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm.
The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set.
In an implementation, the user terminal may store the extension algorithm in advance. The extension algorithm may be set by a technician, or may be acquired from a server through a network, and is the same as the extension algorithm stored in the access network device. After obtaining the competitive code set and the non-competitive code set carried in the first broadcast message, the user terminal may select at least one non-competitive code from the non-competitive code set according to a pre-stored spreading algorithm, divide the selected at least one non-competitive code into the competitive code set to obtain a spreading competitive code set, and form a dedicated competitive code set from the at least one non-competitive code selected from the non-competitive code set.
For example, the set of contention codes carried in the first broadcast message is {0, 1, 2, 3, 4}, and the set of non-contention codes is {5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }. The user terminal can select the first 5 non-competitive codes in the non-competitive code set according to a pre-stored expansion algorithm, and divide the selected 5 non-competitive codes into competitive code sets to obtain an expanded competitive code set {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, and correspondingly, the special competitive code set is {5, 6, 7, 8, 9 }.
Optionally, the user terminal may determine whether to determine the extended contention code set according to a switch state of the local first function switch. The specific treatment process is as follows:
step one, judging whether the switch state of a local first function switch is an opening state.
The first function switch is used for indicating whether the user terminal determines the extended contention code set.
In implementation, a first function switch may be preset in the user terminal, and the first function switch is used to indicate whether the user terminal determines to extend the contention code set. Wherein the switching state of the first function switch can be set by a technician. After obtaining the competitive code set and the non-competitive code set carried in the first broadcast message, the user terminal may first determine whether the switch state of the local first function switch is an on state. And if the switch state of the local first function switch is the opening state, executing the step two.
And step two, determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In implementation, if the switch state of the local first function switch is the on state, the user terminal may determine the extended contention code set according to the contention code set, the non-contention code set, and the pre-stored extension algorithm. The process of the user terminal determining the extended contention code set according to the contention code set, the non-contention code set and the pre-stored extension algorithm is similar to step 302.
It should be noted that, if the switch state of the local first function switch is the off state, the user terminal does not need to determine the extended contention code set according to the contention code set, the non-contention code set, and the pre-stored extension algorithm. Correspondingly, because the user terminal does not determine the extended contention code set, subsequently, when the user terminal needs to access the communication network, the user terminal only selects the target random access code from the contention code set and sends an access request message to the target access network device. The access request message carries a target random access code selected by the user terminal from the contention code set.
Optionally, if the switch state of the local first function switch is the on state, the user terminal may further obtain the switch state of the first function switch of the target access network device, and determine whether to determine the extended contention code set according to the switch state of the first function switch of the target access network device. The specific treatment steps are as follows:
step one, if the switch state of the local first function switch is the on state, the switch state of the first function switch of the target access network equipment is obtained.
The first function switch of the target access network device is used for indicating whether the target access network device determines the extended contention code set.
In implementation, if the switch state of the local first function switch of the user terminal is the on state, the user terminal may further obtain the switch state of the first function switch of the target access network device, and determine whether to determine the extended contention code set according to the switch state of the first function switch of the target access network device. The first function switch of the target access network device is used for indicating whether the target access network device determines the extended contention code set. The method for the user terminal to obtain the on-off state of the first function switch of the target access network device may be various, and the embodiment of the present application provides two feasible implementation methods, and the specific processing procedures are as follows:
in the first mode, the user terminal queries the switch state of the first function switch corresponding to the target access network device in the pre-stored corresponding relationship between the switch states of the access network device and the first function switch. And if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the access network equipment and the switching state of the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
In implementation, the user terminal may store a corresponding relationship between the access network device and the switch state of the first function switch in advance. The corresponding relationship may be set by a technician, or may be established and updated by a user terminal.
For example, as shown in table one, the relationship between the access network device and the switch state of the first function switch is shown. The switching states of the first function switches of the access network device 1, the access network device 2 and the access network device 3 are on states, and the switching state of the first function switch of the access network device 4 is off state.
Figure BDA0001920865770000151
The user terminal may query the switch state of the first function switch corresponding to the target access network device in a pre-stored correspondence between the switch states of the access network device and the first function switch. If the on-off state of the first function switch corresponding to the target access network device is not queried, the user terminal may add the target access network device in the corresponding relationship between the access network device and the on-off state of the first function switch, and set the on-off state of the first function switch corresponding to the target access network device to be the on-state.
For example, the target access network device is the access network device 5, and the user terminal does not inquire the switch state of the first function switch corresponding to the access network device 5 in the correspondence between the access network device and the switch state of the first function switch shown in table one. The user terminal may add the access network device 5 in the corresponding relationship between the access network device and the switch state of the first function switch, and set the switch state of the first function switch corresponding to the access network device 5 to the on state. As shown in table two, the relationship between the access network device after the new access network device 5 is added and the switch state of the first function switch is shown.
Serial number Access network device On-off state of first function switch
1 Access network device 1 Open state
2 Access network device 2 Open state
3 Access network device 3 Open state
4 Access network device 4 Closed state
5 Access network device 5 Open state
It should be noted that the user terminal may further store the aging duration in the corresponding relationship between the access network device and the switch state of the first function switch, and when the storage duration of the corresponding relationship between the target access network device and the switch state of the first function switch reaches the aging duration, the user terminal may delete the corresponding relationship between the target access network device and the switch state of the first function switch.
And in the second mode, the user terminal receives a second broadcast message sent by the target access network equipment.
And the second broadcast message carries the switch state of the first function switch of the target access network equipment.
In an implementation, the user terminal may receive a second broadcast message sent by the target access network device. And the second broadcast message carries the switch state of the first function switch of the target access network equipment. After receiving the second broadcast message sent by the target access network device, the user terminal may parse the second broadcast message to obtain the on-off state of the first function switch of the target access network device carried in the second broadcast message.
And step two, if the switch state of the first function switch of the target access network equipment is the on state, executing the step of determining the extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In implementation, after acquiring the on-off state of the first function switch of the target access network device, the user terminal may determine whether the on-off state of the first function switch of the target access network device is an on state. If the switch state of the first function switch of the target access network device is the on state, the target access network device determines the extended contention code set, and the target random access code selected by the user terminal can be inquired in the extended contention code set, so that the user terminal can determine the extended contention code set according to the contention code set, the non-contention code set and the pre-stored extension algorithm. The process of the user terminal determining the extended contention code set according to the contention code set, the non-contention code set and the pre-stored extension algorithm is similar to step 302.
It should be noted that, if the on-off state of the first function switch of the target access network device is the off state, it indicates that the target access network device does not determine the extended contention code set, and the target access network device may only query the target random access code selected by the user terminal in the contention code set, so that the user terminal does not need to determine the extended contention code set according to the contention code set, the non-contention code set, and the pre-stored extension algorithm. Correspondingly, because the user terminal does not determine the extended contention code set, subsequently, when the user terminal needs to access the communication network, the user terminal only selects the target random access code from the contention code set and sends an access request message to the target access network device. The access request message carries a target random access code selected by the user terminal from the contention code set.
Step 303, selecting a first target random access code from the dedicated contention code set, and sending an access request message to the target access network device.
The access request message carries a first target random access code.
In implementation, after the user terminal determines the extended contention code set, the first target random access code may be randomly selected from the dedicated contention code set. The user terminal may then send an access request message to the target access network device. Wherein, the access request message carries a first target random access code.
For example, the dedicated contention code set is {5, 6, 7, 8, 9}, and the user terminal may randomly select a first target random access code (e.g., 6) from the dedicated contention code set. The user terminal may then send an access request message to the target access network device. Wherein, the access request message carries the first target random access code (i.e. 6).
Optionally, the user terminal may determine whether to select the target random access code in the dedicated contention code set according to a switch state of the local second function switch. The specific treatment process is as follows:
step one, judging whether the switch state of the local second function switch is an opening state.
The second function switch is used for indicating whether the user terminal selects the target random access code from the special competition code set.
In an implementation, the user terminal may be preset with a second function switch, where the second function switch is used to indicate whether the user terminal selects the target random access code from the dedicated contention code set. The on-off state of the second function switch can be set when leaving the factory, and can also be upgraded and changed through a network. After determining the extended contention code set, the user terminal may first determine whether the switch state of the local second function switch is an on state. And if the switch state of the local second function switch is the opening state, executing the step two. And if the switch state of the local second function switch is the closing state, executing the third step.
And step two, selecting a first target random access code from the special competition code set, and sending an access request message to the target access network equipment.
The access request message carries a first target random access code.
In an implementation, if the switch state of the local second function switch is the on state, the user terminal may randomly select the first target random access code in the dedicated contention code set. The user terminal may then send an access request message to the target access network device. Wherein, the access request message carries a first target random access code.
It should be noted that, if the user terminal accesses the communication network through the dedicated contention code, the user terminal may reset the storage duration corresponding to the target access network device in the corresponding relationship between the access network device and the switch state of the first function switch.
And step three, after sending the access request message to the target access network equipment, if the access response message sent by the target access network equipment is not received within the first preset time length, selecting a second target random access code in the special competition code set again, and sending the access request message to the target access network equipment.
Wherein, the access request message carries the second target random access code.
In implementation, if the switch state of the local second function switch is the off state, the ue may preferentially randomly select the first target random access code from the dedicated contention code set. The user terminal may then send an access request message to the target access network device. Wherein, the access request message carries a first target random access code. Subsequently, the user terminal may determine whether the access response message sent by the target access network device is received within a first preset time period, and if the user terminal does not receive the access response message sent by the target access network device within the first preset time period, the user terminal may perform the above processing again. That is, the ue may reselect the second target random access code from the dedicated contention code set. The user terminal may then send an access request message to the target access network device. And the access request message carries a second target random access code, and further judges whether an access response message sent by the target access network equipment is received within a first preset time length, and the process is repeated. The second target random access code may be the same as or different from the first target random access code. The embodiments of the present application are not limited.
And step four, if the access request message is sent for a first preset number of times continuously and the access response message sent by the target access network equipment is not received within the first preset time length, selecting a third target random access code from the competition code set and sending the access request message to the target access network equipment, wherein the access request message carries the third target random access code.
In implementation, the user terminal may store a first preset number in advance. The first preset number may be set by a technician empirically. If the number of times of the above-mentioned cyclic execution reaches a first preset number, that is, the user terminal randomly selects a target random access code in the dedicated contention code set for the first preset number of times, and sends an access request message carrying the target random access code to the target access network device, and does not receive an access response message sent by the target access network device within a first preset time after sending the access request message, it indicates that the user terminal cannot access the communication network through the dedicated contention code, and the user terminal may select a third target random access code in the contention code set, and send the access request message to the target access network device. Wherein, the access request message carries a third target random access code.
Optionally, if the access request message is sent for a first preset number of times and the access response message sent by the target access network device is not received within the first preset time length, the switch state of the first function switch of the target access network device is set to the off state.
In implementation, if the user terminal continues for a first preset number of times, a target random access code is randomly selected from the dedicated contention code set, and an access request message carrying the target random access code is sent to the target access network device, and access response messages sent by the target access network device are not received within a first preset time length. It indicates that the target access network device does not determine the spreading contention code, and the user terminal may set the on-off state of the first function switch corresponding to the target access network device to the off state in the corresponding relationship between the access network device and the on-off state of the first function switch.
It should be noted that, if the user terminal accesses the communication network through the dedicated contention code, the user terminal may reset the storage duration corresponding to the target access network device in the corresponding relationship between the access network device and the switch state of the first function switch.
Optionally, the second broadcast message sent by the target access network device also carries a switch state of a second function switch of the target access network device. The second function switch is used for indicating whether the access network equipment inquires the target random access code from the special competition code set. After the user terminal obtains the on-off state of the second function switch of the target access network device, whether the target random access code is selected from the dedicated contention codes or not can be determined according to the on-off state of the second function switch of the target access network device. The specific treatment process is as follows:
step one, if the switch state of the local second function switch is in a closed state, the switch state of the second function switch of the target access network equipment is in a closed state, and after the access request message is sent to the target access network equipment, if the access response message sent by the target access network equipment is not received within a first preset time period, the fourth target random access code is selected from the special contention code set again, and the access request message is sent to the target access network equipment. Wherein, the access request message carries the fourth target random access code.
In implementation, if the switch state of the local second function switch is in the off state, and the switch state of the second function switch of the target access network device is in the off state, the user terminal may preferentially and randomly select the first target random access code from the dedicated contention code set. The user terminal may then send an access request message to the target access network device. Wherein, the access request message carries a first target random access code. Subsequently, if the user terminal does not receive the access response message sent by the target access network device within the first preset time length, the user terminal may reselect the fourth target random access code from the dedicated contention code set at random. The user terminal may then send an access request message to the target access network device. The access request message carries a fourth target random access code, and the fourth target random access code may be the same as or different from the first target random access code. The embodiments of the present application are not limited.
And step two, if the access request message is sent for a second preset number of times continuously and the access response message sent by the target access network equipment is not received within the first preset time length, selecting a fifth target random access code from the competition code set and sending the access request message to the target access network equipment, wherein the access request message carries the fifth target random access code.
In an implementation, the user terminal may store a second preset number in advance. The second preset number may be set when leaving the factory, or may be updated and changed through a network, and may be the same as or different from the first preset number, and the embodiment in the community is not limited. And if the user terminal continues for the second preset number of times, randomly selecting a target random access code from the special competition code set, and sending an access request message carrying the target random access code to the target access network equipment, wherein the access response message sent by the target access network equipment is not received in the first preset time. It means that the user terminal cannot access the communication network through the dedicated contention code, and the user terminal may select the fifth target random access code from the contention code set and send an access request message to the target access network device. And the access request message carries a fifth target random access code.
Step 304, if the access response message sent by the target access network device is received within the first preset time period, accessing the communication network through the target access network device.
In implementation, after the user terminal sends an access request message to the target access network device, if an access response message sent by the target access network device is received within a first preset time period, the user terminal may access the communication network through the target access network device. If the access response message sent by the target access network device is not received within the first preset time length, the user terminal may reselect the second target random access code from the dedicated contention code set. The user terminal may then send an access request message to the target access network device. The access request message carries a second target random access code, and the second target random access code may be the same as or different from the first target random access code. The embodiments of the present application are not limited.
Fig. 4 is an example of an access method of a communication network according to an embodiment of the present application, and as shown in fig. 4, a specific processing procedure is as follows:
step 401, the access network device determines an extended contention code set according to a pre-stored contention code set, a pre-stored non-contention code set and an extended algorithm.
The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set.
Step 402, the access network device sends a first broadcast message to the user terminal.
The first broadcast message carries a contention code set and a non-contention code set.
In step 403, the user terminal receives a first broadcast message sent by the access network device.
The first broadcast message carries a contention code set and a non-contention code set.
In step 404, the user terminal determines an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm.
The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set.
Step 405, the user terminal selects a first target random access code in the dedicated contention code set,
in step 406, the user terminal sends an access request message to the access network device.
The access request message carries a first target random access code.
Step 407, the access network device receives an access request message sent by the user terminal.
The access request message carries a target random access code selected by the user terminal.
In step 408, the access network device queries whether the target random access code exists in the dedicated contention code set.
If the target random access code is present in the set of dedicated contention codes, step 409 is performed.
In step 409, the access network device sends an access response message to the user terminal.
In step 410, the user terminal receives an access response message sent by the access network device.
In step 411, the user terminal accesses the communication network through the access network device.
The specific processing procedure from step 401 to step 411 is similar to that from step 201 to step 204 and from step 301 to step 304, and is not described herein again.
Fig. 5 is an example of an access method of a communication network according to an embodiment of the present application, and as shown in fig. 5, a specific processing procedure is as follows:
step 501, the access network device determines whether the switch state of the local first function switch is an on state.
If the switch state of the first function switch local to the access network device is the on state, step 502 is executed. If the switch state of the first function switch local to the access network device is the off state, the access network device directly performs step 508 after performing step 5031, step 5032 and step 504.
Step 502, the access network device determines an extended contention code set according to a pre-stored contention code set, a pre-stored non-contention code set and an extended algorithm.
The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set.
Step 5031, the access network device sends a first broadcast message to the user terminal.
The first broadcast message carries a contention code set and a non-contention code set.
Step 5032, the access network equipment sends a second broadcast message to the user terminal.
The first broadcast message carries a contention code set and a non-contention code set.
Step 504, the access network device receives an access request message sent by the user terminal.
The access request message carries a target random access code selected by the user terminal.
Step 505, the access network device determines whether the switch state of the local second function switch is an on state.
If the switch state of the second function switch local to the access network device is the on state, step 506 is executed. If the switch status of the second function switch local to the access network device is off, step 507 is executed.
In step 506, the access network device queries whether the target random access code exists in the dedicated contention code set.
If the target random access code is present in the set of dedicated contention codes, step 509 is performed. And if the target random access code does not exist in the special competition code set, ending the process.
Step 507, the access network device inquires whether there is a target random access code in the extended contention code set.
If the target random access code is present in the extended contention code set, step 509 is performed. And if the target random access code does not exist in the extended competition code set, ending the process.
In step 508, the access network device queries whether a target random access code exists in the contention code set.
If the target random access code is present in the set of contention codes, step 509 is performed. And if the target random access code does not exist in the competition code set, ending the process.
In step 509, the access network device sends an access response message to the user equipment.
The specific processing procedures of steps 501 to 509 are similar to those of steps 201 to 204 and steps 301 to 304, and are not repeated here.
Fig. 6 is an example of an access method of a communication network according to an embodiment of the present application, and as shown in fig. 6, a specific processing procedure is as follows:
step 601, the user terminal receives a first broadcast message sent by the access network device.
The first broadcast message carries a contention code set and a non-contention code set.
Step 602, the user terminal determines whether the switch state of the local first function switch is an on state.
If the switch status of the first function switch local to the user terminal is on, step 603 is executed. If the switch status of the first function switch local to the user terminal is in the off state, step 610 is executed.
Step 603, the user terminal determines an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm.
In step 604, the user terminal determines whether the switch state of the local second function switch is an on state.
If the switch status of the second function switch local to the user terminal is on, step 605 is executed. If the switch status of the second function switch local to the user terminal is off, step 607 is executed.
Step 605, the user terminal selects a first target random access code from the dedicated contention code set, and sends an access request message to the access network device.
The access request message carries a first target random access code.
If the user terminal receives the access response message sent by the access network device within the first preset time period, step 606 is executed. And if the user terminal does not receive the access response message sent by the access network equipment within the first preset time length, ending the process.
Step 606, the user terminal accesses the communication network through the access network device.
Step 607, the user terminal selects the second target random access code from the dedicated contention code set, and sends an access request message to the access network device.
Wherein, the access request message carries the second target random access code.
Step 608, after the user terminal sends the access request message to the access network device, if the access response message sent by the access network device is not received within the first preset time period, the user terminal reselects the third target random access code from the dedicated contention code set and sends the access request message to the access network device.
Wherein, the access request message carries a third target random access code.
Step 609, whether the user terminal continuously sends the access request message for the first preset number of times and does not receive the access response message sent by the access network equipment within the first preset duration.
If the user terminal continuously sends the access request message for the first preset number of times and does not receive the access response message sent by the access network device within the first preset duration, step 610 is executed. Otherwise, step 606 is performed.
Step 610, the user terminal selects a fourth target random access code from the contention code set, and sends an access request message to the access network device.
Wherein, the access request message carries the fourth target random access code.
The specific processing procedure from step 601 to step 610 is similar to that from step 201 to step 204 and from step 301 to step 304, and is not described herein again.
Fig. 7 is an example of an access method of a communication network according to an embodiment of the present application, and as shown in fig. 7, a specific processing procedure is as follows:
step 701, a user terminal receives a first broadcast message sent by an access network device.
The first broadcast message carries a contention code set and a non-contention code set.
In step 702, the user terminal determines whether the switch state of the local first function switch is an on state.
If the switch state of the first function switch local to the user terminal is the on state, step 703 is executed. If the switch status of the first function switch local to the user terminal is in the off state, step 713 is executed.
In step 703, the user terminal queries the switch state of the first function switch corresponding to the access network device in the pre-stored correspondence between the switch states of the access network device and the first function switch. If the switch status of the first function switch corresponding to the access network device is not queried, step 704 is performed. If the switching state of the first function switch corresponding to the access network device is the on state, step 705 is executed. If the switch state of the first function switch corresponding to the access network device is the off state, step 713 is executed.
Step 704, the user terminal adds the access network device in the corresponding relationship between the access network device and the switch state of the first function switch, and sets the switch state of the first function switch corresponding to the access network device as the on state.
Step 705, the user terminal determines an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm.
In step 706, the user terminal determines whether the switch state of the local second function switch is an on state.
If the switch status of the second function switch local to the user terminal is on, step 707 is executed. If the switch status of the second function switch local to the user terminal is off, step 709 is executed.
Step 707, the user terminal selects a first target random access code from the dedicated contention code set, and sends an access request message to the access network device.
The access request message carries a first target random access code.
If the user terminal receives the access response message sent by the access network device within the first preset time period, step 708 is executed. And if the user terminal does not receive the access response message sent by the access network equipment within the first preset time length, ending the process.
In step 708, the user terminal accesses the communication network through the access network device.
Step 709, the user terminal selects a second target random access code from the dedicated contention code set, and sends an access request message to the access network device.
Wherein, the access request message carries the second target random access code.
Step 710, after the user terminal sends the access request message to the access network device, if the access response message sent by the access network device is not received within the first preset time period, the user terminal reselects the third target random access code from the dedicated contention code set and sends the access request message to the access network device.
Wherein, the access request message carries a third target random access code.
Step 711, whether the user terminal continuously sends the access request message for the first preset number of times and does not receive the access response message sent by the access network device within the first preset duration.
If the user terminal continuously sends the access request message for the first preset number of times and does not receive the access response message sent by the access network device within the first preset duration, step 712 is executed. Otherwise, step 708 is performed.
Step 712, the switch status of the first function switch of the access network device is set to the off status.
Step 713, the user terminal selects a fourth target random access code from the contention code set, and sends an access request message to the access network device, where the access request message carries the fourth target random access code.
The specific processing procedure of steps 701 to 713 is similar to that of steps 201 to 204 and 301 to 304, and is not described herein again.
Fig. 8 is an example of an access method of a communication network according to an embodiment of the present application, and as shown in fig. 8, a specific processing procedure is as follows:
step 801, a user terminal receives a first broadcast message and a second broadcast message sent by an access network device.
The first broadcast message carries a competition code set and a non-competition code set, and the second broadcast message carries a switch state of a first function switch and a switch state of a second function switch of the access network equipment.
Step 802, the user terminal determines whether the switch state of the local first function switch is an on state.
If the switch state of the first function switch local to the user terminal is the on state, step 803 is executed. If the switch status of the first function switch local to the user terminal is in the off state, step 811 is performed.
Step 803, the user terminal determines whether the switch state of the first function switch of the access network device is an on state.
If the switch status of the first function switch of the access network device is the on status, step 804 is executed. If the switch status of the first function switch of the access network device is off, step 811 is performed.
Step 804, the user terminal determines an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In step 805, the ue determines whether the switch state of the local second function switch is an on state, and determines whether the switch state of the second function switch of the access network device is an on state. If the switch status of the second function switch local to the user terminal is the off status and the switch status of the second function switch of the access network device is the off status, step 808 is executed. Otherwise, step 806 is performed.
Step 806, the user terminal selects the first target random access code from the dedicated contention code set, and sends an access request message to the access network device.
The access request message carries a first target random access code.
If the user terminal receives the access response message sent by the access network device within the first preset time period, step 807 is executed. And if the user terminal does not receive the access response message sent by the access network equipment within the first preset time length, ending the process.
In step 807, the user terminal accesses the communication network through the access network device.
Step 808, the user terminal selects a second target random access code from the dedicated contention code set, and sends an access request message to the access network device.
Wherein, the access request message carries the second target random access code.
Step 809, after the user terminal sends the access request message to the access network device, if the access response message sent by the access network device is not received within the first preset time length, the user terminal selects the third target random access code again from the dedicated contention code set, and sends the access request message to the access network device.
Wherein, the access request message carries a third target random access code.
Step 810, whether the user terminal continuously sends the access request message for the first preset number of times and does not receive the access response message sent by the access network device within the first preset duration.
If the user terminal continuously transmits the access request message for the first preset number of times and does not receive the access response message transmitted by the access network device within the first preset duration, step 811 is performed. Otherwise, step 807 is performed.
Step 811, the user terminal selects the fourth target random access code from the contention code set, and sends an access request message to the access network device, where the access request message carries the fourth target random access code.
The specific processing procedure of steps 801 to 811 is similar to that of steps 201 to 204 and 301 to 304, and is not repeated here.
The embodiment of the invention provides an access method of a communication network, wherein a user terminal receives a first broadcast message sent by target access network equipment. The first broadcast message carries a contention code set and a non-contention code set. And then, the user terminal determines an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm. The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set. And then, the user terminal selects a first target random access code from the special competition code set and sends an access request message to the target access network equipment. The access request message carries a first target random access code. Subsequently, if the user terminal receives the access response message sent by the target access network equipment within the first preset time, the user terminal accesses the communication network through the target access network equipment. In this way, the access network device detects the first target random access code selected by the user terminal in the dedicated competition code set, thereby ensuring that the user terminal can only access the communication network through the dedicated competition code, and further improving the security of the dedicated communication network.
Based on the same technical concept, an embodiment of the present invention further provides an access apparatus for a communication network, where the apparatus is applied to a user terminal, and as shown in fig. 9, the apparatus includes:
a receiving module 910, configured to receive a first broadcast message sent by a target access network device, where the first broadcast message carries a contention code set and a non-contention code set;
a first determining module 920, configured to determine an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm, where the extended contention code set is composed of the contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from the non-contention code set;
a first sending module 930, configured to select a first target random access code from the dedicated contention code set, and send an access request message to the target access network device, where the access request message carries the first target random access code;
an access module 940, configured to access a communication network through the target access network device if an access response message sent by the target access network device is received within a first preset time duration.
In one possible implementation, as shown in fig. 10, the apparatus further includes:
a first determining module 950, configured to determine whether a switch state of a local first function switch is an on state, where the first function switch is used to indicate whether the user terminal determines an extended contention code set;
a second determining module 960, configured to trigger the first determining module 920 to execute the step of determining the set of spreading contention codes according to the set of contention codes, the set of non-contention codes, and a pre-stored spreading algorithm if the switch state of the local first function switch is an on state.
In a possible implementation manner, the second determining module 960 is specifically configured to:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
if the on-off state of the first function switch of the target access network device is the on state, triggering the first determining module 920 to execute the step of determining the extended contention code set according to the contention code set, the non-contention code set and the pre-stored extension algorithm.
In a possible implementation manner, the second determining module 960 is specifically configured to:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
In a possible implementation manner, the second determining module 960 is specifically configured to:
and receiving a second broadcast message sent by the target access network equipment, wherein the second broadcast message carries the switch state of the first function switch of the target access network equipment.
In one possible implementation, as shown in fig. 11, the apparatus further includes:
a second determining module 970, configured to determine whether a switch state of a local second function switch is an on state, where the second function switch is configured to indicate whether the user terminal selects a target random access code from a dedicated contention code set;
a second sending module 980, configured to, if the switch state of the local second function switch is an off state and after sending an access request message to the target access network device, if an access response message sent by the target access network device is not received within the first preset time period, reselect a second target random access code from the dedicated contention code set and send the access request message to the target access network device, where the access request message carries the second target random access code;
a third sending module 990, configured to select a third target random access code from the contention code set and send an access request message to the target access network device if the access request message is sent for the first preset number of times continuously and an access response message sent by the target access network device is not received within the first preset duration, where the access request message carries the third target random access code.
In one possible implementation, as shown in fig. 12, the apparatus further includes:
a setting module 9100, configured to set, if the access request message is sent for a first preset number of times continuously and the access response message sent by the target access network device is not received within the first preset time duration, an on-off state of a first function switch of the target access network device to an off state.
In a possible implementation manner, the second broadcast message further carries a switch state of a second function switch of the target access network device, where the second function switch is configured to indicate whether the access network device queries the target random access code from a dedicated contention code set, as shown in fig. 13, and the apparatus further includes:
a fourth sending module 9110, configured to, if the switch state of the local second function switch is an off state, and the switch state of the second function switch of the target access network device is an off state, and after sending an access request message to the target access network device, if an access response message sent by the target access network device is not received within the first preset time period, reselect a fourth target random access code from the dedicated contention code set, and send the access request message to the target access network device, where the access request message carries the fourth target random access code;
a fifth sending module 9120, configured to, if the access request message is sent for a second preset number of times continuously and the access response message sent by the target access network device is not received within the first preset duration, select a fifth target random access code from the contention code set, and send an access request message to the target access network device, where the access request message carries the fifth target random access code.
Based on the same technical concept, an embodiment of the present invention further provides an access apparatus for a communication network, where the apparatus is applied to an access network device, and as shown in fig. 14, the apparatus includes:
a first determining module 1410, configured to determine an extended contention code set according to a pre-stored contention code set, a non-contention code set and an extension algorithm, where the extended contention code set is composed of the contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from the non-contention code set;
a first sending module 1420, configured to send a first broadcast message to a user equipment, where the first broadcast message carries the contention code set and the non-contention code set;
a receiving module 1430, configured to receive an access request message sent by the user terminal, where the access request message carries a target random access code selected by the user terminal;
a second sending module 1440, configured to send an access response message to the ue if the target random access code exists in the dedicated contention code set.
In one possible implementation, as shown in fig. 15, the apparatus further includes:
a first determining module 1450, configured to determine whether a switch state of a local first function switch is an on state, where the first function switch is used to indicate whether the access network device determines an extended contention code set;
a second determining module 1460, configured to trigger the first determining module 1410 to execute the step of determining the set of spreading contention codes according to the pre-stored contention code set, non-contention code set, and spreading algorithm if the switch state of the local first function switch is the on state.
In one possible implementation, as shown in fig. 16, the apparatus further includes:
a second determining module 1470, configured to determine whether a switch state of a local second function switch is an on state, where the second function switch is configured to instruct the access network device whether to query the target random access code from a dedicated contention code set;
a first query module 1480, configured to query whether the target random access code exists in a dedicated contention code set included in the extended contention code set if the switch state of the local second function switch is an on state;
a second querying module 1490, configured to query whether the target random access code exists in the extended contention code set if the switch status of the local second function switch is an off status.
In one possible implementation, as shown in fig. 17, the apparatus further includes:
a third sending module 14100, configured to send a second broadcast message to the user terminal, where the second broadcast message carries an on-off state of the first function switch and/or an on-off state of the second function switch.
The embodiment of the invention provides an access device of a communication network, wherein a user terminal receives a first broadcast message sent by target access network equipment. The first broadcast message carries a contention code set and a non-contention code set. And then, the user terminal determines an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm. The extended contention code set is composed of a contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from a non-contention code set. And then, the user terminal selects a first target random access code from the special competition code set and sends an access request message to the target access network equipment. The access request message carries a first target random access code. Subsequently, if the user terminal receives the access response message sent by the target access network equipment within the first preset time, the user terminal accesses the communication network through the target access network equipment. In this way, the access network device detects the first target random access code selected by the user terminal in the dedicated competition code set, thereby ensuring that the user terminal can only access the communication network through the dedicated competition code, and further improving the security of the dedicated communication network.
Based on the same technical concept, an embodiment of the present invention further provides a user terminal, which is characterized in that, as shown in fig. 18, the user terminal includes a memory 1810, a processor 1820 and a communication interface 1830, where:
the memory 1810 is used for storing program instructions;
the processor 1820 is configured to perform the following operations according to the program instructions stored in the memory 1810:
receiving a first broadcast message sent by a target access network device through the communication interface 1830, where the first broadcast message carries a contention code set and a non-contention code set;
determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
selecting a first target random access code from the dedicated contention code set, and sending an access request message to the target access network device through the communication interface 1830, where the access request message carries the first target random access code;
if the access response message sent by the target access network device is received through the communication interface 1830 within the first preset time duration, the communication network is accessed through the target access network device.
In one possible implementation, before the processor 1820 performs the operation of determining an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm, the processor 1820 further performs the following operations according to program instructions stored in the memory 1810:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the user terminal determines an extended competitive code set;
and if the switch state of the local first function switch is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In a possible implementation manner, the processor 1820 performs the operation of determining the set of spreading codes according to the set of contention codes, the set of non-contention codes, and a pre-stored spreading algorithm if the switch state of the local first function switch is the on state, including:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
and if the switch state of the first function switch of the target access network equipment is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
In one possible implementation manner, the processor 1820 performs the operation of obtaining the switch state of the first function switch of the target access network device, including:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
In one possible implementation manner, the processor 1820 performs the operation of obtaining the switch state of the first function switch of the target access network device, including:
receiving, through the communication interface 1830, a second broadcast message sent by the target access network device, where the second broadcast message carries a switch state of the first function switch of the target access network device.
In one possible implementation, the processor 1820 further performs the following operations according to program instructions stored in the memory 1810:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the user terminal selects a target random access code from a special competition code set;
if the switch state of the local second function switch is in an off state and after an access request message is sent to the target access network device through the communication interface 1830, if an access response message sent by the target access network device is not received through the communication interface 1830 within the first preset time period, a second target random access code is selected from the dedicated contention code set again and the access request message is sent to the target access network device through the communication interface 1830, where the access request message carries the second target random access code;
if the access request message is continuously sent through the communication interface 1830 for a first preset number of times and the access response message sent by the target access network device is not received through the communication interface 1830 within the first preset duration, selecting a third target random access code in the contention code set, and sending the access request message to the target access network device through the communication interface 1830, where the access request message carries the third target random access code.
In one possible implementation, the processor 1820 further performs the following operations according to program instructions stored in the memory 1810:
if the access request message is continuously sent through the communication interface 1830 for a first preset number of times and the access response message sent by the target access network device is not received through the communication interface 1830 within the first preset duration, setting the switch state of the first function switch of the target access network device to the off state.
In a possible implementation manner, the second broadcast message further carries a switch status of a second function switch of the target access network device, where the second function switch is used to indicate whether the access network device queries the target random access code from a dedicated contention code set, and the processor 1820 further executes the following operations according to program instructions stored in the memory 1810:
if the switch state of the local second function switch is in an off state, the switch state of the second function switch of the target access network device is in an off state, and after an access request message is sent to the target access network device through the communication interface 1830, if an access response message sent by the target access network device is not received through the communication interface 1830 within the first preset time period, a fourth target random access code is selected from the dedicated contention code set again, and the access request message is sent to the target access network device through the communication interface 1830, where the access request message carries the fourth target random access code;
if the access request message is continuously sent through the communication interface 1830 for a second preset number of times and the access response message sent by the target access network device is not received through the communication interface 1830 within the first preset duration, selecting a fifth target random access code from the contention code set, and sending the access request message to the target access network device through the communication interface 1830, where the access request message carries the fifth target random access code.
Based on the same technical concept, embodiments of the present invention also provide a computer-readable storage medium, which includes instructions, and when the instructions are executed on a computer, the instructions cause the computer to execute the above-mentioned access method of a communication network.
Based on the same technical concept, an embodiment of the present invention further provides an access network device, as shown in fig. 19, where the access network device includes a memory 1910, a processor 1920, and a communication interface 1930, where:
the memory 1910 for storing program instructions;
the processor 1920 is configured to perform the following operations in accordance with program instructions stored in the memory 1910:
determining an extended competitive code set according to a pre-stored competitive code set, a non-competitive code set and an extended algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
sending a first broadcast message to a user terminal through the communication interface 1930, where the first broadcast message carries the contention code set and the non-contention code set;
receiving an access request message sent by the user terminal through the communication interface 1930, wherein the access request message carries a target random access code selected by the user terminal;
if the target random access code exists in the dedicated contention code set, an access response message is sent to the user terminal through the communication interface 1930.
In one possible implementation, before the processor 1920 executes the operation of determining the extended contention code set according to the pre-stored contention code set, the non-contention code set and the extension algorithm, the processor 1920 further executes the following operations according to the program instructions stored in the memory 1910:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the access network equipment determines an extended contention code set;
and if the switch state of the local first function switch is the on state, executing the step of determining the extended competitive code set according to the prestored competitive code set, the prestored non-competitive code set and the extended algorithm.
In one possible implementation, the processor 1920 further performs the following operations according to program instructions stored in the memory 1910:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the access network equipment inquires the target random access code from a special competition code set;
if the switch state of the local second function switch is the on state, inquiring whether the target random access code exists in a special competition code set contained in the expanded competition code set;
and if the switch state of the local second function switch is the closing state, inquiring whether the target random access code exists in the extended competition code set.
In one possible implementation, the processor 1920 further performs the following operations according to program instructions stored in the memory 1910:
and sending a second broadcast message to the user terminal through the communication interface 1930, where the second broadcast message carries the on-off state of the first function switch and/or the on-off state of the second function switch.
Based on the same technical concept, embodiments of the present invention also provide a computer-readable storage medium, which includes instructions, and when the instructions are executed on a computer, the instructions cause the computer to execute the above-mentioned access method of a communication network.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (38)

1. An access method of a communication network, wherein the method is applied to a user terminal, and the method comprises:
receiving a first broadcast message sent by target access network equipment, wherein the first broadcast message carries a competitive code set and a non-competitive code set;
determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
selecting a first target random access code from the special competition code set, and sending an access request message to the target access network equipment, wherein the access request message carries the first target random access code;
and if the access response message sent by the target access network equipment is received within the first preset time length, accessing the communication network through the target access network equipment.
2. The method of claim 1, wherein before determining the set of expanded contention codes according to the set of contention codes, the set of non-contention codes and a pre-stored expansion algorithm, the method further comprises:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the user terminal determines an extended competitive code set;
and if the switch state of the local first function switch is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
3. The method according to claim 2, wherein the step of determining the set of spreading codes according to the set of contention codes, the set of non-contention codes and a pre-stored spreading algorithm is executed if the switch status of the local first function switch is on, and includes:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
and if the switch state of the first function switch of the target access network equipment is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
4. The method of claim 3, wherein obtaining the switch state of the first function switch of the target access network device comprises:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
5. The method of claim 3, wherein obtaining the switch state of the first function switch of the target access network device comprises:
and receiving a second broadcast message sent by the target access network equipment, wherein the second broadcast message carries the switch state of the first function switch of the target access network equipment.
6. The method of claim 4, further comprising:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the user terminal selects a target random access code from a special competition code set;
if the switch state of the local second function switch is in a closed state and after an access request message is sent to the target access network equipment, if an access response message sent by the target access network equipment is not received within the first preset time length, a second target random access code is selected from the special contention code set again, and the access request message is sent to the target access network equipment, wherein the access request message carries the second target random access code;
and if the access request message is sent for a first preset number of times continuously and the access response message sent by the target access network equipment is not received within the first preset time length, selecting a third target random access code from the competition code set and sending an access request message to the target access network equipment, wherein the access request message carries the third target random access code.
7. The method of claim 6, further comprising:
and if the access request message is continuously sent for a first preset number of times and the access response message sent by the target access network equipment is not received in the first preset time, setting the switch state of the first function switch of the target access network equipment to be a closed state.
8. The method of claim 5, wherein the second broadcast message further carries a switch status of a second function switch of the target access network device, and the second function switch is configured to indicate whether the access network device queries the target random access code from a dedicated contention code set, and the method further includes:
if the switch state of the local second function switch is in a closed state, the switch state of the second function switch of the target access network device is in a closed state, and after an access request message is sent to the target access network device, if an access response message sent by the target access network device is not received within the first preset time period, a fourth target random access code is selected from the special contention code set again, and the access request message is sent to the target access network device, wherein the access request message carries the fourth target random access code;
and if the access request message is sent for a second preset number of times continuously and the access response message sent by the target access network equipment is not received in the first preset time length, selecting a fifth target random access code from the competition code set and sending an access request message to the target access network equipment, wherein the access request message carries the fifth target random access code.
9. An access method of a communication network, wherein the method is applied to an access network device, and the method comprises:
determining an extended competitive code set according to a pre-stored competitive code set, a non-competitive code set and an extended algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
sending a first broadcast message to a user terminal, wherein the first broadcast message carries the competition code set and the non-competition code set;
receiving an access request message sent by the user terminal, wherein the access request message carries a target random access code selected by the user terminal;
and if the target random access code exists in the special competition code set, sending an access response message to the user terminal.
10. The method of claim 9, wherein before determining the extended contention code set according to the pre-stored contention code set, the non-contention code set and the extension algorithm, the method further comprises:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the access network equipment determines an extended contention code set;
and if the switch state of the local first function switch is the on state, executing the step of determining the extended competitive code set according to the prestored competitive code set, the prestored non-competitive code set and the extended algorithm.
11. The method of claim 9, further comprising:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the access network equipment inquires the target random access code from a special competition code set;
if the switch state of the local second function switch is the on state, inquiring whether the target random access code exists in a special competition code set contained in the expanded competition code set;
and if the switch state of the local second function switch is the closing state, inquiring whether the target random access code exists in the extended competition code set.
12. The method of claim 9, further comprising:
and sending a second broadcast message to the user terminal, wherein the second broadcast message carries the on-off state of the first function switch and/or the on-off state of the second function switch.
13. An access device of a communication network, wherein the device is applied to a user terminal, and the device comprises:
a receiving module, configured to receive a first broadcast message sent by a target access network device, where the first broadcast message carries a contention code set and a non-contention code set;
a first determining module, configured to determine an extended contention code set according to the contention code set, the non-contention code set, and a pre-stored extension algorithm, where the extended contention code set is composed of the contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from the non-contention code set;
a first sending module, configured to select a first target random access code from the dedicated contention code set, and send an access request message to the target access network device, where the access request message carries the first target random access code;
and the access module is used for accessing the communication network through the target access network equipment if receiving the access response message sent by the target access network equipment within a first preset time length.
14. The apparatus of claim 13, further comprising:
the first judging module is used for judging whether the switch state of a local first function switch is an on state or not, and the first function switch is used for indicating whether the user terminal determines an extended contention code set or not;
and the second determining module is used for triggering the first determining module to execute the step of determining the extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm if the switch state of the local first function switch is the on state.
15. The apparatus of claim 14, wherein the second determining module is specifically configured to:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
and if the switch state of the first function switch of the target access network equipment is the on state, triggering the first determining module to execute the step of determining the extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
16. The apparatus of claim 15, wherein the second determining module is specifically configured to:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
17. The apparatus of claim 15, wherein the second determining module is specifically configured to:
and receiving a second broadcast message sent by the target access network equipment, wherein the second broadcast message carries the switch state of the first function switch of the target access network equipment.
18. The apparatus of claim 16, further comprising:
the second judging module is used for judging whether the switch state of a local second function switch is an on state or not, and the second function switch is used for indicating whether the user terminal selects a target random access code from a special competition code set or not;
a second sending module, configured to, if the switch state of the local second function switch is an off state and an access request message is sent to the target access network device, reselect a second target random access code from the dedicated contention code set and send the access request message to the target access network device if an access response message sent by the target access network device is not received within the first preset time duration, where the access request message carries the second target random access code;
a third sending module, configured to select a third target random access code from the contention code set and send an access request message to the target access network device if the access request message is sent for a first preset number of times and an access response message sent by the target access network device is not received within the first preset duration, where the access request message carries the third target random access code.
19. The apparatus of claim 18, further comprising:
and the setting module is used for setting the switching state of the first function switch of the target access network equipment to be a closing state if the access request message is sent for a first preset number of times continuously and the access response message sent by the target access network equipment is not received in the first preset time length.
20. The apparatus of claim 17, wherein the second broadcast message further carries a switch status of a second function switch of the target access network device, and the second function switch is configured to indicate whether the access network device queries the target random access code from a dedicated contention code set, and the apparatus further comprises:
a fourth sending module, configured to, if the switch state of the local second function switch is an off state, the switch state of the second function switch of the target access network device is an off state, and after sending an access request message to the target access network device, if an access response message sent by the target access network device is not received within the first preset time period, reselect a fourth target random access code from the dedicated contention code set, and send the access request message to the target access network device, where the access request message carries the fourth target random access code;
a fifth sending module, configured to select a fifth target random access code from the contention code set and send an access request message to the target access network device if the access request message is sent for a second preset number of times and an access response message sent by the target access network device is not received within the first preset duration, where the access request message carries the fifth target random access code.
21. An access device of a communication network, wherein the device is applied to an access network device, and the device comprises:
a first determining module, configured to determine an extended contention code set according to a pre-stored contention code set, a non-contention code set and an extension algorithm, where the extended contention code set is composed of the contention code set and a dedicated contention code set, and the dedicated contention code set is composed of at least one non-contention code selected from the non-contention code set;
a first sending module, configured to send a first broadcast message to a user terminal, where the first broadcast message carries the contention code set and the non-contention code set;
a receiving module, configured to receive an access request message sent by the user terminal, where the access request message carries a target random access code selected by the user terminal;
a second sending module, configured to send an access response message to the ue if the target random access code exists in the dedicated contention code set.
22. The apparatus of claim 21, further comprising:
the first judging module is used for judging whether the switch state of a local first function switch is an on state, and the first function switch is used for indicating whether the access network equipment determines an extended contention code set;
and the second determining module is used for triggering the first determining module to execute the step of determining the extended competitive code set according to the prestored competitive code set, the prestored non-competitive code set and the extended algorithm if the switch state of the local first function switch is the on state.
23. The apparatus of claim 21, further comprising:
a second judging module, configured to judge whether a switch state of a local second function switch is an on state, where the second function switch is used to indicate whether the access network device queries the target random access code from a dedicated contention code set;
a first query module, configured to query whether the target random access code exists in a dedicated contention code set included in the extended contention code set if the switch state of the local second function switch is an on state;
and the second query module is used for querying whether the target random access code exists in the extended contention code set if the switch state of the local second function switch is the off state.
24. The apparatus of claim 21, further comprising:
and a third sending module, configured to send a second broadcast message to the user terminal, where the second broadcast message carries an on/off state of the first function switch and/or an on/off state of the second function switch.
25. A user terminal, characterized in that the user terminal comprises a memory, a processor and a communication interface, wherein:
the memory to store program instructions;
the processor is configured to perform the following operations according to program instructions stored in the memory:
receiving a first broadcast message sent by target access network equipment through the communication interface, wherein the first broadcast message carries a competitive code set and a non-competitive code set;
determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
selecting a first target random access code from the special competition code set, and sending an access request message to the target access network equipment through the communication interface, wherein the access request message carries the first target random access code;
and if the access response message sent by the target access network equipment is received through the communication interface within the first preset time length, accessing the communication network through the target access network equipment.
26. The ue of claim 25, wherein before the processor performs the operation of determining an extended contention code set according to the contention code set, the non-contention code set and a pre-stored extension algorithm, the processor further performs the following operations according to program instructions stored in the memory:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the user terminal determines an extended competitive code set;
and if the switch state of the local first function switch is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
27. The ue of claim 26, wherein the processor performs the operation of determining the set of spreading codes according to the set of contention codes, the set of non-contention codes and a pre-stored spreading algorithm if the switch status of the local first function switch is on, and comprises:
if the switch state of the local first function switch is an on state, acquiring the switch state of the first function switch of the target access network device, where the first function switch of the target access network device is used to indicate whether the target access network device determines an extended contention code set;
and if the switch state of the first function switch of the target access network equipment is the on state, executing the step of determining an extended competitive code set according to the competitive code set, the non-competitive code set and a pre-stored extension algorithm.
28. The user terminal of claim 27, wherein the processor performs the operation of obtaining the switch state of the first function switch of the target access network device, and comprises:
inquiring the switch state of a first function switch corresponding to the target access network equipment in a pre-stored corresponding relation between the switch states of the access network equipment and the first function switch;
and if the switching state of the first function switch corresponding to the target access network equipment is not inquired, adding the target access network equipment in the corresponding relation of the switching states of the access network equipment and the first function switch, and setting the switching state of the first function switch corresponding to the target access network equipment to be in an opening state.
29. The user terminal of claim 27, wherein the processor performs the operation of obtaining the switch state of the first function switch of the target access network device, and comprises:
and receiving a second broadcast message sent by the target access network equipment through the communication interface, wherein the second broadcast message carries the on-off state of the first function switch of the target access network equipment.
30. The user terminal of claim 28, wherein the processor further performs the following operations according to program instructions stored in the memory:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the user terminal selects a target random access code from a special competition code set;
if the switch state of the local second function switch is in a closed state and after an access request message is sent to the target access network equipment through the communication interface, if an access response message sent by the target access network equipment is not received through the communication interface within the first preset time length, a second target random access code is selected from the special contention code set again, and the access request message is sent to the target access network equipment through the communication interface, wherein the access request message carries the second target random access code;
and if the access request message is sent through the communication interface for a first preset number of times and the access response message sent by the target access network equipment is not received through the communication interface within the first preset time, selecting a third target random access code from the competition code set, and sending the access request message to the target access network equipment through the communication interface, wherein the access request message carries the third target random access code.
31. The user terminal of claim 30, wherein the processor further performs the following operations according to program instructions stored in the memory:
and if the access request message is continuously sent through the communication interface for a first preset number of times and the access response message sent by the target access network equipment is not received through the communication interface within the first preset time, setting the switch state of the first function switch of the target access network equipment to be a closed state.
32. The ue of claim 29, wherein the second broadcast message further carries a switch status of a second function switch of the target access network device, the second function switch is configured to indicate whether the access network device queries the target random access code from a dedicated contention code set, and the processor further executes the following operations according to a program instruction stored in the memory:
if the switch state of the local second function switch is in a closed state, the switch state of the second function switch of the target access network device is in a closed state, and after an access request message is sent to the target access network device through the communication interface, if an access response message sent by the target access network device is not received through the communication interface within the first preset time period, a fourth target random access code is selected from the special contention code set again, and the access request message is sent to the target access network device through the communication interface, wherein the access request message carries the fourth target random access code;
and if the access request message is sent through the communication interface for a second preset number of times and the access response message sent by the target access network equipment is not received through the communication interface within the first preset time, selecting a fifth target random access code from the competition code set, and sending the access request message to the target access network equipment through the communication interface, wherein the access request message carries the fifth target random access code.
33. A computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1 to 8.
34. An access network device, characterized in that the access network device comprises a memory, a processor and a communication interface, wherein:
the memory to store program instructions;
the processor is configured to perform the following operations according to program instructions stored in the memory:
determining an extended competitive code set according to a pre-stored competitive code set, a non-competitive code set and an extended algorithm, wherein the extended competitive code set is composed of the competitive code set and a special competitive code set, and the special competitive code set is composed of at least one non-competitive code selected from the non-competitive code set;
sending a first broadcast message to a user terminal through the communication interface, wherein the first broadcast message carries the competition code set and the non-competition code set;
receiving an access request message sent by the user terminal through the communication interface, wherein the access request message carries a target random access code selected by the user terminal;
and if the target random access code exists in the special competition code set, sending an access response message to the user terminal through the communication interface.
35. The access network device of claim 34, wherein before the processor performs the operation of determining the set of extended contention codes according to the pre-stored set of contention codes, the set of non-contention codes and the extension algorithm, the processor further performs the following operations according to program instructions stored in the memory:
judging whether the switch state of a local first function switch is an on state, wherein the first function switch is used for indicating whether the access network equipment determines an extended contention code set;
and if the switch state of the local first function switch is the on state, executing the step of determining the extended competitive code set according to the prestored competitive code set, the prestored non-competitive code set and the extended algorithm.
36. The access network device of claim 34, wherein the processor further performs the following operations according to program instructions stored in the memory:
judging whether the switch state of a local second function switch is an on state, wherein the second function switch is used for indicating whether the access network equipment inquires the target random access code from a special competition code set;
if the switch state of the local second function switch is the on state, inquiring whether the target random access code exists in a special competition code set contained in the expanded competition code set;
and if the switch state of the local second function switch is the closing state, inquiring whether the target random access code exists in the extended competition code set.
37. The access network device of claim 34, wherein the processor further performs the following operations according to program instructions stored in the memory:
and sending a second broadcast message to the user terminal through the communication interface, wherein the second broadcast message carries the on-off state of the first function switch and/or the on-off state of the second function switch.
38. A computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method of any of claims 9 to 12.
CN201811593732.0A 2018-12-25 2018-12-25 Communication network access method and device Active CN111372241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811593732.0A CN111372241B (en) 2018-12-25 2018-12-25 Communication network access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811593732.0A CN111372241B (en) 2018-12-25 2018-12-25 Communication network access method and device

Publications (2)

Publication Number Publication Date
CN111372241A CN111372241A (en) 2020-07-03
CN111372241B true CN111372241B (en) 2021-08-03

Family

ID=71209795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811593732.0A Active CN111372241B (en) 2018-12-25 2018-12-25 Communication network access method and device

Country Status (1)

Country Link
CN (1) CN111372241B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547517A (en) * 2008-03-25 2009-09-30 中国移动通信集团公司 Control method and device for accessing mobile communication network for users
CN102291845A (en) * 2010-06-21 2011-12-21 中兴通讯股份有限公司 Random access method and system
CN102883459A (en) * 2011-07-12 2013-01-16 华为技术有限公司 Receiving-transmitting method of random access response, user equipment, base station and system
CN105723792A (en) * 2013-11-14 2016-06-29 索尼公司 Communications system, infrastructure equipment, communications devices and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9161322B2 (en) * 2012-01-25 2015-10-13 Ofinno Technologies, Llc Configuring base station and wireless device carrier groups
EP3566502A4 (en) * 2017-02-02 2020-01-01 Samsung Electronics Co., Ltd. Method and apparatus for transmitting and receiving system information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547517A (en) * 2008-03-25 2009-09-30 中国移动通信集团公司 Control method and device for accessing mobile communication network for users
CN102291845A (en) * 2010-06-21 2011-12-21 中兴通讯股份有限公司 Random access method and system
CN102883459A (en) * 2011-07-12 2013-01-16 华为技术有限公司 Receiving-transmitting method of random access response, user equipment, base station and system
CN105723792A (en) * 2013-11-14 2016-06-29 索尼公司 Communications system, infrastructure equipment, communications devices and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Qualcomm Incorporated.Remaining Details of UE Category Type.《3GPP TSG-RAN WG1 #77 R1-141952》.2014, *

Also Published As

Publication number Publication date
CN111372241A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
US11700074B2 (en) Methods and apparatuses for determining cell access during a cell search
RU2752238C1 (en) Method, device and system for repeating cells
US8340705B2 (en) Method of camping on a hybrid cell and checking access priority and device therefor
US10159031B2 (en) Access point, station, and beacon frame sending method and system
US20220132397A1 (en) Method of System Information Transmission and Acquisition
KR20120070689A (en) Random access method for machine type communications and wireless communication apparatus using the method
CN102668643B (en) Idle pulley the line is busy priority
JP2022133437A (en) User equipment and base station participating in system information acquisition procedure
CN111698687A (en) Terminal residing method based on 5G co-construction sharing, network equipment and communication network
US11974327B2 (en) Method and apparatus for signaling multi-USIM UE busy status
KR20110139960A (en) Method and apparatus of convergence terminal for discovering wlan access point
US20230110787A1 (en) Information indication method and apparatus
US20230164802A1 (en) Information sending method and apparatus, and information receiving method and apparatus
CN112020899B (en) Network access method and related equipment
US20220061089A1 (en) Resource allocation method, base station, and terminal
CN112566012B (en) Terminal feature acquisition method and device, server and storage medium
CN114599057B (en) Method, device, apparatus and storage medium for residing in DL BWP
EP3457772A1 (en) Method for updating system information, terminal device, and network-side device
EP3737160B1 (en) Method for acquiring system information, terminal device and network device
CN114938527A (en) System and method for cell selection and reselection
WO2018028311A1 (en) Method for terminal to initially access network and relevant device
CN111372241B (en) Communication network access method and device
WO2014040225A1 (en) Method and device for acquiring neighbour cell information
CN112929978B (en) Preamble transmission method and apparatus, and computer-readable storage medium
EP2525599B1 (en) Method and device for obtaining system information of cell

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