CN116723589A - Networking method, networking device, networking equipment and storage medium - Google Patents

Networking method, networking device, networking equipment and storage medium Download PDF

Info

Publication number
CN116723589A
CN116723589A CN202310876777.3A CN202310876777A CN116723589A CN 116723589 A CN116723589 A CN 116723589A CN 202310876777 A CN202310876777 A CN 202310876777A CN 116723589 A CN116723589 A CN 116723589A
Authority
CN
China
Prior art keywords
prefix
ipv6
wireless signal
networking
subnet
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.)
Pending
Application number
CN202310876777.3A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu 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 China Mobile Communications Group Co Ltd, China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310876777.3A priority Critical patent/CN116723589A/en
Publication of CN116723589A publication Critical patent/CN116723589A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names
    • H04L2101/35Types of network names containing special prefixes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of network communication, in particular to a networking method, a device, equipment and a storage medium, when a wide area network interface of network routing equipment to be networked does not receive IPv6 information, wireless signals are searched through the wide area network interface, target wireless signals are selected from the wireless signals according to at least one of the signal intensity of each wireless signal, the prefix subnet length corresponding to IPv6 prefix response of each wireless signal and an access level, so that the network routing equipment to be networked and the upper routing equipment to be networked according to the target wireless signals are controlled, the technical problem that terminal equipment in the prior art can not acquire IPv6 addresses is avoided, and the popularization rate of the IPv6 network is improved.

Description

Networking method, networking device, networking equipment and storage medium
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a networking method, apparatus, device, and storage medium.
Background
Wireless lans can be divided into two categories, a first category being fixed infrastructure and a second category being non-fixed infrastructure, wireless lans for non-fixed infrastructure devices also referred to as ad hoc networks, for example: in this scenario, since the device wiring is limited by the environment, when there are multiple routers connected in series at the same time, even if both the router and the terminal device support IPv6 functions, in the default case, both the home gateway and the router are in a routing mode, and there is an ad hoc network that implements iterative allocation based on the DHCPv6 PD prefix, which often causes that the terminal device cannot acquire an IPv6 address or an IPv6 prefix.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a networking method, a networking device, networking equipment and a networking storage medium, and aims to solve the technical problem that terminal equipment in an ad hoc network in the prior art cannot acquire an IPv6 address.
In order to achieve the above object, the present invention provides a networking method, which includes the following steps:
searching wireless signals of the superior routing equipment according to the wide area network interface when the wide area network interface of the network routing equipment to be assembled does not receive the IPv6 information sent by the superior routing equipment, so as to obtain at least one wireless signal;
acquiring the signal intensity of each wireless signal, and the prefix subnet length and the access level of the corresponding IPv6 prefix response of each wireless signal;
selecting a target wireless signal from the wireless signals according to at least one of the signal strength, the prefix subnet length and the access level;
and controlling the network routing equipment to be networked and the superior routing equipment to be networked according to the target wireless signal.
Optionally, the selecting a target wireless signal from the wireless signals according to at least one of the signal strength, the prefix subnet length and the access stratum includes:
Sequencing the wireless signals according to the signal intensity;
determining to-be-selected wireless signals with IPv6 prefixes in the wireless signals;
and selecting a target wireless signal from the wireless signals to be selected according to the sorting result, wherein the target wireless signal is the wireless signal to be selected with the IPv6 prefix and the maximum signal strength.
Optionally, after selecting the target wireless signal from the wireless signals to be selected according to the sorting result, the method further includes:
when a plurality of wireless signals with the same signal strength exist, determining a target wireless signal according to at least one of the prefix subnet length and the access level of each wireless signal to be selected.
Optionally, the determining the target wireless signal according to at least one of the prefix subnet length and the access level of each wireless signal to be selected includes:
comparing the prefix subnet lengths of the wireless signals to be selected;
and when the prefix subnetworks of the wireless signals to be selected are different in length, determining a target wireless signal from the wireless signals to be selected according to the comparison result, wherein the target wireless signals are the wireless signals to be selected with the same signal strength and the shortest prefix subnetwork length.
Optionally, when the wide area network interface of the network routing device to be assembled does not receive the IPv6 information, searching the wireless signal of the upper level routing device according to the wide area network interface, and before obtaining at least one wireless signal, further includes:
Sending an IPv6 prefix request to an upper-level routing device, and receiving a prefix response message fed back by the upper-level routing device based on the prefix request;
performing prefix subnet splitting on the IPv6 prefix in the prefix response message to obtain a plurality of IPv6 prefix subnets;
and generating an IPv6 prefix subnet pool according to the plurality of IPv6 prefix subnets, selecting a target IPv6 prefix subnet from the IPv6 prefix subnet pool when receiving a networking request of the lower-level routing equipment, and feeding back the target IPv6 prefix subnet to the lower-level routing equipment.
Optionally, the generating an IPv6 prefix subnet pool according to the plurality of IPv6 prefix subnets includes:
dividing the IPv6 prefix subnets into interconnection addresses and IPv6 idle prefix subnets according to a preset interconnection rule;
acquiring the prefix subnet length of each IPv6 idle prefix subnet;
and constructing an IPv6 prefix subnet pool according to the prefix subnet length and the IPv6 idle prefix subnet.
In addition, in order to achieve the above object, the present invention also proposes a networking device, including:
the searching module is used for searching the wireless signals of the upper-level routing equipment according to the wide area network interface when the wide area network interface of the network routing equipment to be assembled does not receive the IPv6 information, so as to obtain at least one wireless signal;
The acquisition module is used for acquiring the signal intensity of each wireless signal and the prefix subnet length and the access level of the corresponding IPv6 prefix response of each wireless signal;
the selecting module is used for selecting a target wireless signal from the wireless signals according to at least one of the signal intensity, the prefix subnet length and the access level;
and the networking module is used for controlling the network routing equipment to be networked and the superior routing equipment to be networked according to the target wireless signal.
In addition, in order to achieve the above object, the present invention also proposes a networking device, including: a memory, a processor, and a networking program stored on the memory and executable on the processor, the networking program configured to implement the steps of the networking method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a networking program which, when executed by a processor, implements the steps of the networking method as described above.
When the wide area network interface of the network routing equipment to be assembled does not receive IPv6 information, the wide area network interface searches at least one wireless signal sent by the superior routing equipment, and obtains the signal intensity of each wireless signal and the prefix subnet length and the access level of each wireless signal corresponding to the IPv6 prefix response, and selects a target wireless signal from each wireless signal according to at least one of the signal intensity, the prefix subnet length and the access level, so as to realize the control of the network routing equipment to be assembled and the superior routing equipment to be assembled according to the target wireless signal, thereby realizing the rapid communication of an IPv6 network, and obtaining the IPv6 networking effect with the best network quality by screening the connectable wireless signals according to the signal intensity of each wireless signal and the prefix subnet length and the access level of each wireless signal corresponding to the IPv6 prefix, thereby avoiding the technical problem that terminal equipment in the prior art ad hoc network cannot obtain the IPv6 address, and improving the quality of network communication.
Drawings
FIG. 1 is a schematic diagram of a networking device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the networking method of the present invention;
FIG. 3 is a schematic diagram of a home ad hoc network architecture according to an embodiment of the networking method of the present invention;
FIG. 4 is a flow chart of a second embodiment of the networking method of the present invention;
FIG. 5 is a flowchart of a third embodiment of a networking method according to the present invention;
FIG. 6 is a timing diagram of an ad hoc network according to an embodiment of the present invention;
fig. 7 is a tree network topology diagram of a home network routing device according to an embodiment of the networking method of the present invention;
fig. 8 is a block diagram of a first embodiment of a networking device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a networking device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the networking device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of the networking device and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a networking program may be included in the memory 1005 as one type of storage medium.
In the networking device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the networking device of the present invention may be disposed in the networking device, where the networking device invokes a networking program stored in the memory 1005 through the processor 1001, and executes the networking method provided by the embodiment of the present invention.
An embodiment of the present invention provides a networking method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the networking method of the present invention.
In this embodiment, the networking method includes the following steps:
step S10: and searching the wireless signal of the upper-level routing equipment according to the wide area network interface when the wide area network interface of the network routing equipment to be assembled does not receive the IPv6 information sent by the upper-level routing equipment, so as to obtain at least one wireless signal.
It should be noted that, the execution body of the method of this embodiment may be a device having functions of network communication, route forwarding, and data forwarding, for example: the router, the home gateway, or the like may be other devices with the same or similar functions, and in this embodiment and the following embodiments, the device to be networked is described by taking the routing device as an example.
It should be noted that, in the conventional technology, the routing device is a default routing mode in the ad hoc network, and the router in the default mode does not have the function of a local built-in DHCPv6PD server, so that the terminal device connected with the routing device cannot obtain the IPv6 address.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a home ad hoc network in this embodiment, in a default mode, a router only has a function that a wide area network interface can obtain an IPv6 address, and even if the router device sends an allocation request of an IPv6 address prefix to a gateway, the gateway device does not have a prefix pool, and therefore cannot realize the function of allocating the IPv6 address prefix, so that a terminal connected to the router device cannot obtain the IPv6 address, and therefore cannot use the IPv6 function for networking.
In addition, DHCPv6 (Dynamic Host Configuration Protocol for IPv 6) is a protocol for dynamically allocating an IP address in an IPv6 network, DHCPv6 is an IPv6 version of a DHCP protocol in an IPv4 network, and a network administrator can automatically allocate an IP address, a DNS server, a default gateway, and other network configuration information to an IPv6 device through DHCPv6, so that a network management process is simplified.
The DHCPv6-PD (Prefix Delegation, prefix/delegate/proxy/delegate) prefix delegation mechanism is an extension of DHCPv6, the basic protocol being defined in RFC3633. Through a prefix delegation mechanism, a downstream prefix request client side puts forward a prefix allocation application to an upstream prefix delegation server, the prefix delegation server can allocate a proper prefix address to the prefix request client side, the downstream client side further and automatically subdivides the obtained prefix (generally less than 64 bits) into subnet network segments with the length of 64 bits of prefix, the subdivided address prefix is transmitted to a user link directly connected with a host through a Routing Announcement (RA), the address automatic configuration of the host is realized, and the attention is paid to transmitting network configuration parameters such as the address and the like from the server side to the IPv6 client side.
For convenience of explanation, the router is taken as an example of the network routing device to be assembled in the present embodiment and the following embodiments, and the gateway is taken as an example of the upper level routing device.
It should be understood that, due to the specificity of network routing, when the WAN port is detected to be activated and a legal IPv6 prefix can be obtained through a wired medium between the WAN interface of the to-be-assembled network routing device and the lan interface of the upper-level routing device, the wired medium is preferentially used to obtain the IPv6 prefix; if the wide area network interface of the to-be-networking routing equipment cannot acquire legal IPv6 prefix through the wired medium, the step of searching the wireless signal of the upper routing equipment according to the wide area network interface can be executed, so that the hybrid networking of wireless communication and wired communication is realized, and the networking efficiency is improved.
In a specific implementation, in order to enable the wide area network interface of the router device to realize the scanning function of the wireless signal, in this embodiment, the network routing device to be assembled needs to be modified to have a function of a "dynamic switching PD" server, where the "dynamic switching PD" server is different from a traditional DHCPv6PD server, and is a PD server, but the traditional DHCPv6PD server is manually configured, and an IPv6 prefix pool of the "dynamic switching PD" server is automatically generated by a system program without manual configuration intervention, and can be considered as a new extension function based on RFC-3633.
In a specific implementation, the searching for the wireless signal of the superior routing device may be scanning for the signal strength of a wireless service set identifier (Service Set Identifier, SSID) surrounding the network routing device to be assembled.
Step S20: and acquiring the signal strength of each wireless signal, and the prefix subnet length and the access level of the corresponding IPv6 prefix response of each wireless signal.
It will be appreciated that signal strength wireless signal strength refers to the strength of a wireless signal received by a device by a network to be assembled during wireless communication, typically represented by a signal strength indicator (Signal Strength Indicator, SSI) or a received signal strength indicator (Received Signal Strength Indicator, RSSI). The units of wireless signal strength may be decibel milliwatts (dBm) or a percentage; the prefix subnet length may be replaced by "accommodate 64-bit prefix number" in this embodiment, if the number of prefix numbers that can accommodate 64-bit prefix numbers is greater, meaning that the prefix subnet length is longer; the access level refers to the location of the wireless signal in the ad hoc network, generally, the closer to the broadband remote access server (Broadband Remote Access Server, BRAS), the higher the access level, and in this embodiment, the larger the prefix address, the higher the access level, because the prefix address is allocated according to the maximum priority allocation principle in this embodiment.
Step S30: and selecting a target wireless signal from the wireless signals according to at least one of the signal strength, the prefix subnet length and the access level.
In a specific implementation, since there may be multiple routing devices in the ad hoc network, as in the home ad hoc network described in fig. 3, the routing devices include a home gateway device, a home router, and a terminal with a routing function, and when the to-be-networked device needs to be connected to the ad hoc network, there may be multiple scanned wireless signals, but some routing devices cannot acquire an IPv6 address, which results in that the to-be-networked device connected to the routing device cannot acquire an IPv6 address, which affects the user experience.
In a specific implementation, an optimal target wireless signal can be selected from the scanned wireless signals according to at least one of signal strength, prefix subnet length and access level, so that network fluctuation is reduced, and user experience is experienced.
Step S40: and controlling the network routing equipment to be networked and the superior routing equipment to be networked according to the target wireless signal.
In a specific implementation, after determining the target wireless signal, the wireless signal broadcasted outwards by the upper-level routing device can control the wide area network interface of the network routing device to be assembled to be connected with the local area network interface of the upper-level routing device corresponding to the target wireless signal through a wired medium or a wireless signal, so that the network routing device to be assembled also has the functions of route forwarding, network data transmission, ipv6 address providing and the like.
According to the embodiment, the wide area network interface of the equipment to be networked and the local area network interface of the upper level routing equipment are connected through a wired medium, but when information related to an IPv6 function is not received, at least one wireless signal sent by the upper level routing equipment is searched through the wide area network interface, the signal intensity of each wireless signal and the prefix subnet length and the access level of the prefix response of each wireless signal corresponding to the IPv6 are obtained, a target wireless signal is selected from each wireless signal according to at least one of the signal intensity, the prefix subnet length and the access level, so that the equipment to be networked and the upper level routing equipment are controlled to be networked according to the target wireless signal, the IPv6 network is quickly connected, the connectable wireless signals are screened through the signal intensity of each wireless signal corresponding to the IPv6 prefix, the IPv6 networking effect with optimal network quality is obtained, the technical problem that terminal equipment in the prior art cannot obtain the IPv6 address in the self-organizing network is solved, and the communication quality of the network is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a second embodiment of a networking method according to the present invention.
Based on the first embodiment, in this embodiment, the step S30 includes:
step S301: and sequencing the wireless signals according to the signal strength.
It should be noted that, the process of sorting the wireless signals according to the signal strength may be to sort the wireless signals according to the order of the signal strengths of the wireless signals, and preferentially perform the IPv6 prefix acquisition and judgment on the wireless signals with stronger signals scanned by the network routing device to be grouped.
Step S302: and determining the wireless signals to be selected with IPv6 prefix in each wireless signal.
It can be understood that, because the lan port of the upper routing device may implement a function of route forwarding, in order to avoid invalid signal connection, in this embodiment, it may be determined that a to-be-selected wireless signal with an IPv6 prefix exists in each wireless signal, so that the to-be-selected wireless signal is screened according to signal strength, to obtain a networking wireless signal that meets a requirement of a to-be-networking network routing device.
In a specific implementation, the embodiment may also preferably select a router (LAN port) with strong ssid signal strength and capable of acquiring an IPv6 prefix to access, but the ssid signal strength is strong, but the ssid signal is abandoned if the IPv6 prefix cannot be acquired, and then select the ssid signal with the next strongest signal to connect, and detect whether the IPv6 prefix can be acquired, until the IPv6 prefix can be acquired, and use the presently connected ssid signal as a target wireless signal, and connect to a local area network port corresponding to the target wireless signal.
Step S303: and selecting a target wireless signal from the wireless signals to be selected according to the sorting result, wherein the target wireless signal is the wireless signal to be selected with the IPv6 prefix and the maximum signal strength.
It can be understood that, since the device generally divides into different gear positions according to the signal strength when scanning the wireless signals, in the process of comparing and sorting the signal strengths, wireless signals with the same signal strength may appear, if the wireless signals with the same signal strength are connected, IPv6 prefixes may be obtained, and at this time, the target wireless signal to be connected to the device to be networked may be determined through at least one of the prefix subnet length and the access level of the wireless signals.
Further, after selecting the target wireless signal from the wireless signals to be selected according to the sorting result, the method further includes:
when a plurality of wireless signals with the same signal strength exist, determining a target wireless signal according to at least one of the prefix subnet length and the access level of each wireless signal to be selected.
It should be noted that, in order to provide a better network communication effect, and enable the network routing device to be assembled to carry more networking terminal devices, the embodiment may determine the target wireless signal preferentially according to the length of the prefix subnet under the condition that the signal strength is the same.
Further, the determining the target wireless signal according to at least one of the prefix subnet length and the access level of each wireless signal to be selected includes:
comparing the prefix subnet lengths of the wireless signals to be selected;
and when the prefix subnetworks of the wireless signals to be selected are different in length, determining a target wireless signal from the wireless signals to be selected according to the comparison result, wherein the target wireless signals are the wireless signals to be selected with the same signal strength and the shortest prefix subnetwork length.
In a specific implementation, if a plurality of wifi signals with the same signal intensity exist in the periphery and prefix subnets containing 64-bit prefix entries are different in length, a wide area network interface of a network to be grouped is preferentially selected to be accessed to a local area network interface of an upper-level routing device by the wifi signal corresponding to the prefix subnet containing more 64-bit prefix entries, because the prefix agent contains more 64-bit prefix entries, the router containing more downstream tandem routers can bear more networking users.
Further, the networking method further comprises:
and when the prefix subnetworks of the wireless signals to be selected are the same in length, determining a target wireless signal from the wireless signals to be selected according to the access level, wherein the target wireless signal is the wireless signal to be selected with the same signal strength, the same prefix subnetwork length and the highest access level.
In a specific implementation, if a plurality of wifi signals with the same signal intensity exist in the periphery and the prefix subnetwork length of the prefix subnetwork containing the number of the 64-bit prefix entries is the same, the network to be assembled is preferentially selected by the wide area network interface of the device to access the wifi signal with higher access level, namely, the closer the distance from the tree root in the tree network structure is, if the prefix agent splits the address, the largest 64-bit prefix is selected to be taken out for the interconnection address, and then the prefix subnetwork with the large prefix address represents higher access level.
In addition, since the wireless signal is not provided with security measures such as password verification and the like, namely the security problem is not considered, the wireless signal can be mainly used for emergency rescue or hot spot coverage scenes, and the ensured personnel can rob through the IPv6 network by wifi.
For example: the network routing device to be grouped receives three IPv6 prefixes with the same prefix from different routers or gateway devices: 2409:8020:1000:100c:/63, 2409:8020:1000:1008:/63, and 2409:8020:1000:1000:/63, then the prefix subnetwork 2409:8020:1000:100 c:/63 with a large prefix address IP is selected at this time to represent a higher access level, and this arrangement can enable the ad hoc network to avoid looping without manual configuration.
According to the embodiment, the optimal target wireless signal is selected from the wireless signals according to at least one of the signal strength, the prefix subnet length and the access level of the scanned wireless signals, so that the IPv6 network communication connection between the equipment to be networked and the upper-level routing equipment is realized, and the popularization rate of the IPv6 network is improved.
Referring to fig. 5, fig. 5 is a schematic flow chart of a third embodiment of a networking method according to the present invention.
Based on the above second embodiment, a third embodiment of the networking method of the present invention is provided, and in this embodiment, before the step S10, the method further includes:
step S01: and sending an IPv6 prefix request to the upper-level routing equipment, and receiving a prefix response message fed back by the upper-level routing equipment based on the prefix request.
It should be noted that, the upper-level routing device may be a delegated server, a broadband remote access server, a gateway device, or a router according to the network routing device to be assembled, which is not limited in this embodiment.
Referring to fig. 6, fig. 6 is a timing diagram of networking in a home ad hoc network, so that when a device to be networked requests access, an IPv6 prefix or an IPv6 address is allocated to the device to be networked, and in this embodiment, an IPv6 prefix subnet pool is constructed in a storage space of an already-assembled routing device in the ad hoc network, so as to facilitate allocation of the IPv6 prefix or the IPv6 address.
Step S02: and splitting the IPv6 prefix in the prefix response message into a plurality of IPv6 prefix subnets.
It should be noted that splitting the IPv6 prefix field in the prefix response message refers to splitting according to the number of prefix bits, for example: referring to fig. 7, fig. 7 is a tree network topology diagram of a home network routing device, in the network topology, the length of an IPv6 prefix in a prefix response packet received by a primary router is 2409:8020:1000:1000:60, where for the prefix, the following prefix subnet splitting may be performed: (1) 1/60 subnetwork: 2409:8020:1000:1000:60; (2) 2/61 subnets: 2409:8020:1000:1000:61 and 2409:8020:1000:1008:61; (3) 4/62 subnetworks: 2409:8020:1000:1000:62:2409:8020:1000:1004:62:2409:8020:1000:1008:62 and 2409:8020:1000:100 c:62:1/62; (4) 8/63 subnetworks: 2409:8020:1000:1000:63, 2409:8020:1000:1002:63. (5) 16/64 subnets: 2409:8020:1000:1000:64-2409:8020:1000:100 f:64.
Step S03: and generating an IPv6 prefix subnet pool according to the plurality of IPv6 prefix subnets, selecting a target IPv6 prefix subnet from the IPv6 prefix subnet pool when receiving a networking request of the lower-level routing equipment, and feeding back the target IPv6 prefix subnet to the lower-level routing equipment.
In a specific implementation, the home gateway device sends an IPv6 prefix request, and according to a prefix response message returned by the upstream proxy server, automatically splits an idle IPv6 prefix which is not allocated to the home gateway device side into prefix subnets with different lengths, and when splitting, can keep the prefix subnets containing more 64-bit prefix entries as much as possible, and generate an IPv6 prefix pool in the built-in DHCPv6 dynamic conversion PD server.
After the IPv6 prefix pool is generated, if the prefix request of the DHCPv6 sent by the router of a certain port at the local area network side is responded by using the IPv6 prefix pool in the 'dynamic conversion PD' server, the prefix sub-network containing more 64-bit prefix entries is preferentially distributed outwards, so that the local area network side of the downstream home router can obtain the IPv6 prefix, and more routers or terminals can be conveniently carried.
Further, when generating the IPv6 prefix subnet pool, since the home gateway device may need to directly provide the IPv6 address service for other terminal devices, it may occupy an IPv6 address or an IPv6 prefix, and in order to improve the network utilization, the generating the IPv6 prefix subnet pool according to the multiple IPv6 prefix subnets includes:
Dividing the IPv6 prefix subnets into interconnection addresses and IPv6 idle prefix subnets according to a preset interconnection rule;
acquiring the prefix subnet length of each IPv6 idle prefix subnet;
and constructing an IPv6 prefix subnet pool according to the prefix subnet length and the IPv6 idle prefix subnet.
It should be noted that, the home gateway device may also need to provide an IPv6 network service for the terminal device, and in this embodiment, a prefix is reserved in the divided 64-bit prefix, and is used as an interconnection address of the home gateway device, where the interconnection address is represented by a 128-bit binary number in the IPv6 protocol, and is typically represented in hexadecimal number separated by a colon, and is used as a unique address for identifying and locating a computer or other network device in the internet.
Since the IPv6 prefix is 64 bits, in order to obtain the interconnection address (i.e., IPv6 address) of the home gateway device can be obtained in two ways: 1. stateless address auto-configuration (Stateless Address Autoconfiguration, SLAAC) stateless auto-allocation: at this time, m=0, the terminal host initiates a router request, the gateway allocates a 64-bit prefix to the terminal host through a Router Advertisement (RA) message, and the terminal host generates the post 64 bits according to the EUI64 algorithm and the like to synthesize a 128-bit IPv6 address; 2. DHCPv6 stateful automatic allocation: at this time, m=1, the end host initiates a non-temporary address authentication request to the proxy server, and the proxy server directly allocates 128-bit IPv6 address to the end host.
However, unlike the end hosts, the router or the home gateway device is not only required to apply an IPv6 address for the wide area network interface side to use, but also required to apply a prefix for the end hosts on the local area network interface side through an IPv6 address prefix request allocated to the prefix request router by default.
In this embodiment, the selection of the interconnection address may be selecting a minimum 64-bit prefix or a maximum 64-bit prefix, which is not particularly limited in this embodiment, and when different 64-bit prefixes are selected as the interconnection addresses, there is a difference between the access levels of the prefix addresses in the tree network tray, for example: when the maximum 64-bit prefix is used as the interconnection address (namely 2409:8020:1000:100f:/64) is used for the interconnection address), the plurality of IPv6 idle prefix subnets are respectively 1/61 subnets: 2409:8020:1000:1000:61, 1/62 subnetworks: 2409:8020:1000:1008:62, 1/63 subnetworks: 2409:8020:1000:100c::63/1/64 subnetworks: 2409:8020:1000:100e:/64.
In a specific implementation, in order to enable the routing device requesting networking to carry more routers or terminal devices, the embodiment may assign an IPv6 prefix to the routing device requesting networking according to the priority of the prefix subnet length.
The priority of the four IPv6 idle prefix subnets is 2409:8020:1000:1000:61 (8 64-bit prefix entries can be accommodated); priority 2: 2409:8020:1000:1008::62 (which can hold 4 64-bit prefix entries); priority 3: 2409:8020:1000:100c:63 (which can hold 2 64-bit prefix entries); priority 4: 2409:8020:1000:100e::64 (which can accommodate 1 64-bit prefix entry), wherein the prioritization is according to a rule that the shorter the length of the prefix subnet, the higher the priority, or is determined by the number of 64-bit prefix entries that can be accommodated, which is not particularly limited by the present embodiment.
In a specific implementation, when the home gateway receives a prefix request of DHCPv6 sent by a home router of a certain port on the LAN side, an IPv6 prefix pool is used to respond, and a prefix subnet containing more 64-bit prefix entries is preferentially allocated to the outside, so that the LAN side of a lower-level home router can obtain an IPv6 prefix, for example: if the LAN port receives the IA_PD request sent by the first router of the lower level, the highest priority 2409:8020:1000:1000:61 (which can hold 8 64-bit prefix entries) can be firstly allocated, so that the downstream router can further split the prefix; if the LAN port receives the prefix request sent by the second router at the lower level, the prefix with the highest priority is occupied, and then the 2 nd priority 2409:8020:1000:1008::62 (4 64-bit prefix entries can be accommodated) can be allocated; if the IA_PD request sent by the third router is received, the 3 rd priority 2409:8020:1000:100c:63 (which can hold 2 64-bit prefix entries) is allocated until there is no free IPv6 prefix.
If the wireless router receives the prefix request of the lower-level invalid router, the idle IPv6 prefix can be allocated according to the above process, which is not described in detail in this embodiment.
In a specific implementation, the number of routing devices requesting networking is large, so that the IPv6 prefix subnet pool is divided, and a prefix request can be sent to the upper-level routing device again to obtain more idle IPv6 prefix subnet prefixes.
Further, the subordinate router may include a prefix in the prefix request, as a hint to the delegated router, indicating that the requesting router wishes to be able to use the prefix, and when the requesting router identifies the delegated router, the requesting router uses the response message to populate the prefix request with the prefix. The lower level router may include one or more prefix options in the response message, and the upper level router returns the prefix and other information about the prefix request to the requesting router in the prefix options in the feedback message.
According to the embodiment, the IPv6 prefix subnet pool is constructed through the right lifting, so that when a next router requests to access the network, prefix subnets with the larger number of 64-bit prefix entries can be allocated, and the popularization rate of IPv6 is improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a networking program, and the networking program realizes the steps of the networking method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
Referring to fig. 8, fig. 8 is a block diagram illustrating a first embodiment of a networking device according to the present invention.
As shown in fig. 8, the networking device provided by the embodiment of the present invention includes:
and the searching module 10 is configured to search, when the wide area network interface of the to-be-grouped network routing device does not receive the IPv6 information, for a wireless signal of the upper level routing device according to the wide area network interface, so as to obtain at least one wireless signal.
The acquiring module 20 is configured to acquire a signal strength of each wireless signal and a prefix subnet length and an access level of an IPv6 prefix response corresponding to each wireless signal.
A selecting module 30, configured to select a target wireless signal from the wireless signals according to at least one of the signal strength, the prefix subnet length, and the access stratum.
And the networking module 40 is configured to control the to-be-networked routing device and the local routing system to perform networking according to the target wireless signal.
In an embodiment, the selecting module 30 is further configured to sort the wireless signals according to the signal strength; determining to-be-selected wireless signals with IPv6 prefixes in the wireless signals; and selecting a target wireless signal from the wireless signals to be selected according to the sorting result, wherein the target wireless signal is the wireless signal to be selected with the IPv6 prefix and the maximum signal strength.
In an embodiment, the selecting module 30 is further configured to determine, when there are a plurality of wireless signals to be selected with the same signal strength, a target wireless signal according to at least one of a prefix subnet length and an access level of each wireless signal to be selected.
In an embodiment, the selecting module 30 is further configured to compare prefix subnet lengths of the wireless signals to be selected; and when the prefix subnetworks of the wireless signals to be selected are different in length, determining a target wireless signal from the wireless signals to be selected according to the comparison result, wherein the target wireless signals are the wireless signals to be selected with the same signal strength and the shortest prefix subnetwork length.
In an embodiment, the selecting module 30 is further configured to determine, when the prefix subnet lengths of the wireless signals to be selected are the same, a target wireless signal from the wireless signals to be selected according to the access level, where the target wireless signal is a wireless signal to be selected with the same signal strength, the same prefix subnet length, and the highest access level.
In an embodiment, the search module 10 is further configured to send an IPv6 prefix request to an upper-level routing device, and receive a prefix response packet fed back by the upper-level routing device based on the prefix request; performing prefix subnet splitting on the IPv6 prefix in the prefix response message to obtain a plurality of IPv6 prefix subnets; and generating an IPv6 prefix subnet pool according to the plurality of IPv6 prefix subnets, selecting a target IPv6 prefix subnet from the IPv6 prefix subnet pool when receiving a networking request of the lower-level routing equipment, and feeding back the target IPv6 prefix subnet to the lower-level routing equipment.
In an embodiment, the search module 10 is further configured to divide the multiple IPv6 prefix subnets into an interconnection address and multiple IPv6 idle prefix subnets according to a preset interconnection rule; acquiring the prefix subnet length of each IPv6 idle prefix subnet; and constructing an IPv6 prefix subnet pool according to the prefix subnet length and the IPv6 idle prefix subnet.
According to the embodiment, the wide area network interface of the equipment to be networked and the local area network interface of the upper level routing equipment are connected through a wired medium, but when information related to an IPv6 function is not received, at least one wireless signal sent by the upper level routing equipment is searched through the wide area network interface, the signal intensity of each wireless signal and the prefix subnet length and the access level of the prefix response of each wireless signal corresponding to the IPv6 are obtained, a target wireless signal is selected from each wireless signal according to at least one of the signal intensity, the prefix subnet length and the access level, so that the equipment to be networked and the upper level routing equipment are controlled to be networked according to the target wireless signal, the IPv6 network is quickly connected, the connectable wireless signals are screened through the signal intensity of each wireless signal corresponding to the IPv6 prefix, the IPv6 networking effect with optimal network quality is obtained, the technical problem that terminal equipment in the prior art cannot obtain the IPv6 address in the self-organizing network is solved, and the communication quality of the network is improved.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the application as desired, and the application is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present application, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the networking method provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A networking method, characterized in that the networking method comprises:
when the wide area network interface of the network routing equipment to be assembled does not receive the IPv6 information, searching the wireless signal of the upper-level routing equipment according to the wide area network interface to obtain at least one wireless signal;
acquiring the signal intensity of each wireless signal, and the prefix subnet length and the access level of the corresponding IPv6 prefix response of each wireless signal;
selecting a target wireless signal from the wireless signals according to at least one of the signal strength, the prefix subnet length and the access level;
and controlling the network routing equipment to be networked and the superior routing equipment to be networked according to the target wireless signal.
2. The networking method of claim 1, wherein said selecting a target wireless signal from among wireless signals based on at least one of said signal strength, said prefix subnet length, and said access stratum comprises:
Sequencing the wireless signals according to the signal intensity;
determining to-be-selected wireless signals with IPv6 prefixes in the wireless signals;
and selecting a target wireless signal from the wireless signals to be selected according to the sorting result, wherein the target wireless signal is the wireless signal to be selected with the IPv6 prefix and the maximum signal strength.
3. The networking method of claim 2, wherein after selecting the target wireless signal from the candidate wireless signals according to the ranking result, further comprises:
when a plurality of wireless signals with the same signal strength exist, determining a target wireless signal according to at least one of the prefix subnet length and the access level of each wireless signal to be selected.
4. The networking method of claim 3, wherein said determining the target wireless signal based on at least one of a prefix subnet length and an access level of each of the candidate wireless signals comprises:
comparing the prefix subnet lengths of the wireless signals to be selected;
and when the prefix subnetworks of the wireless signals to be selected are different in length, determining a target wireless signal from the wireless signals to be selected according to the comparison result, wherein the target wireless signals are the wireless signals to be selected with the same signal strength and the shortest prefix subnetwork length.
5. The networking method of claim 4, wherein the networking method further comprises:
and when the prefix subnetworks of the wireless signals to be selected are the same in length, determining a target wireless signal from the wireless signals to be selected according to the access level, wherein the target wireless signal is the wireless signal to be selected with the same signal strength, the same prefix subnetwork length and the highest access level.
6. The networking method according to any one of claims 1-5, wherein when the wide area network interface of the to-be-networking routing device does not receive IPv6 information, searching for a wireless signal of an upper level routing device according to the wide area network interface, and before obtaining at least one wireless signal, further comprising:
sending an IPv6 prefix request to an upper-level routing device, and receiving a prefix response message fed back by the upper-level routing device based on the prefix request;
performing prefix subnet splitting on the IPv6 prefix in the prefix response message to obtain a plurality of IPv6 prefix subnets;
and generating an IPv6 prefix subnet pool according to the plurality of IPv6 prefix subnets, selecting a target IPv6 prefix subnet from the IPv6 prefix subnet pool when receiving a networking request of the lower-level routing equipment, and feeding back the target IPv6 prefix subnet to the lower-level routing equipment.
7. The networking method of claim 6, wherein the generating the pool of IPv6 prefix subnets from the plurality of IPv6 prefix subnets comprises:
dividing the IPv6 prefix subnets into interconnection addresses and IPv6 idle prefix subnets according to a preset interconnection rule;
acquiring the prefix subnet length of each IPv6 idle prefix subnet;
and constructing an IPv6 prefix subnet pool according to the prefix subnet length and the IPv6 idle prefix subnet.
8. A networking device, characterized in that the networking device comprises:
the searching module is used for searching the wireless signals of the upper-level routing equipment according to the wide area network interface when the wide area network interface of the network routing equipment to be assembled does not receive the IPv6 information, so as to obtain at least one wireless signal;
the acquisition module is used for acquiring the signal intensity of each wireless signal and the prefix subnet length and the access level of the corresponding IPv6 prefix response of each wireless signal;
the selecting module is used for selecting a target wireless signal from the wireless signals according to at least one of the signal intensity, the prefix subnet length and the access level;
and the networking module is used for controlling the network routing equipment to be networked and the superior routing equipment to be networked according to the target wireless signal.
9. A networking device, characterized in that the networking device comprises: a memory, a processor, and a networking program stored on the memory and executable on the processor, the networking program configured to implement the networking method of any one of claims 1 to 7.
10. A storage medium having stored thereon a networking program which, when executed by a processor, implements the networking method of any of claims 1 to 7.
CN202310876777.3A 2023-07-17 2023-07-17 Networking method, networking device, networking equipment and storage medium Pending CN116723589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310876777.3A CN116723589A (en) 2023-07-17 2023-07-17 Networking method, networking device, networking equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310876777.3A CN116723589A (en) 2023-07-17 2023-07-17 Networking method, networking device, networking equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116723589A true CN116723589A (en) 2023-09-08

Family

ID=87875260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310876777.3A Pending CN116723589A (en) 2023-07-17 2023-07-17 Networking method, networking device, networking equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116723589A (en)

Similar Documents

Publication Publication Date Title
US8339991B2 (en) Node self-configuration and operation in a wireless network
US9756052B2 (en) Method and apparatus for dual stack access
RU2366100C2 (en) System and method to use ip-address as wireless module identifier
US8108496B2 (en) Method and apparatus for selecting forwarding modes
US8812723B2 (en) Assignment of network addresses
US7567805B2 (en) Method and system for dynamic assignment of wireless LAN access point identity
CN101534329B (en) IP address assignment method and system
KR100657316B1 (en) A fast handover method in DHCPv4, handover apparatus thereof and recording medium thereof
US7990936B2 (en) Method and apparatus for acquiring IP address in DHCP environment
US10218671B2 (en) Dynamic media access control address allocation and leasing for wireless network
US20050122946A1 (en) DHCP pool sharing mechanism in mobile environment
CN111432044B (en) Multi-link equipment MAC address management method and device and multi-link equipment
JP2005130512A (en) Method and system for supporting mobility of mobile terminal
KR20140085428A (en) Virtual access point using single service set identifiers
CN100486198C (en) Method to search access controller in wireless LAN and proxy server
EP3255866B1 (en) Internet protocol address allocation method and router
KR100864158B1 (en) Address generation/allocation method based on wireless broadband access network, mobile resource configuration method using its
WO2007052913A1 (en) Method of generating and managing connection identifiers for supporting multicast for each group in ipv6-based wireless network and network interface using the method
CN111224854B (en) Working mode selection method, client front-end equipment and storage medium
CN113473569B (en) Discovery method of application server and related device
JP4114939B2 (en) Node connection method, network identifier assignment method, computer-readable medium, and network system
CN111669309B (en) VxLAN establishing method, wireless controller and switch
CN108989173B (en) Message transmission method and device
CN116723589A (en) Networking method, networking device, networking equipment and storage medium
JP2001308909A (en) Method for assigning logical network address and terminal

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