CN112788160B - Switching method and switching device of address information - Google Patents

Switching method and switching device of address information Download PDF

Info

Publication number
CN112788160B
CN112788160B CN202011626845.3A CN202011626845A CN112788160B CN 112788160 B CN112788160 B CN 112788160B CN 202011626845 A CN202011626845 A CN 202011626845A CN 112788160 B CN112788160 B CN 112788160B
Authority
CN
China
Prior art keywords
address information
data frame
source address
mac address
destination
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
CN202011626845.3A
Other languages
Chinese (zh)
Other versions
CN112788160A (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202011626845.3A priority Critical patent/CN112788160B/en
Publication of CN112788160A publication Critical patent/CN112788160A/en
Application granted granted Critical
Publication of CN112788160B publication Critical patent/CN112788160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2557Translation policies or rules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The application is applicable to the technical field of wireless networks, and provides an address information switching method and a switching device, wherein the method comprises the following steps: acquiring target source address information and first source address information corresponding to a plurality of wireless modules in terminal equipment; receiving uplink data frames sent by the terminal equipment through a plurality of wireless modules; modifying the uplink source address information in each uplink data frame into the target source address information to obtain a first data frame; the first data frame is for transmission to a destination device. According to the method and the device, after the uplink data frames sent by the terminal equipment are received, the uplink source address information of each uplink data frame is modified in a unified mode, and the first data frames with the same target source address information are obtained. Because each first data frame has the same target source address information, the first data frames are data frames sent by the same wireless module in the view angle of the target equipment, and the problem of IP address conflict is further avoided.

Description

Switching method and switching device of address information
Technical Field
The present application belongs to the technical field of wireless networks, and in particular, to a method, a device, an access point device, and a computer-readable storage medium for switching address information.
Background
A Wireless Local Area Network (WLAN) is a data transmission system, which uses Radio Frequency (RF) technology to replace a wireless network formed by twisted pair copper wires.
Wi-Fi (Wireless-Fidelity), among others, is a technology that allows electronic devices to connect to Wireless local area networks, typically using 2.4G or 5G radio frequency bands. Due to the different advantages and disadvantages of 2.4G or 5G, the dual WIFI technology is developed. The double-WiFi network acceleration technology utilizes a single device to be accessed to simultaneously connect two WiFi signals, and the two WiFi signals independently receive and transmit data, so that the network speed is greatly improved.
However, two wireless modules supporting the "dual WIFI technology" in the device to be accessed need to use different MAC addresses (physical addresses) and IP addresses (internet protocol addresses). If two radios use the same IP address, an IP address conflict may arise. Most software programs in the terminal equipment often do not support sharing of multiple IP addresses, so that the terminal equipment cannot apply the double-WIFI technology.
Disclosure of Invention
In view of this, embodiments of the present application provide an address information switching method, a switching apparatus, an access point device, and a computer-readable storage medium, which can solve the technical problem that a plurality of software programs in a terminal device often do not support multiple IP addresses to be shared, so that the access point device cannot apply a "dual WIFI technology".
A first aspect of an embodiment of the present application provides a method for switching address information, where the method includes:
acquiring target source address information and first source address information corresponding to a plurality of wireless modules in terminal equipment;
receiving uplink data frames sent by the terminal equipment through a plurality of wireless modules;
modifying the uplink source address information in each uplink data frame into the target source address information to obtain a first data frame; the first data frame is for transmission to a destination device.
A second aspect of the embodiments of the present application provides a switching apparatus for address information, the switching apparatus including:
an acquisition unit, configured to acquire target source address information and first source address information corresponding to each of a plurality of wireless modules in a terminal device;
a receiving unit, configured to receive an uplink data frame sent by the terminal device through the plurality of wireless modules;
a modification unit, configured to modify uplink source address information in each uplink data frame into the target source address information, so as to obtain a first data frame; the first data frame is for transmission to a destination device.
A third aspect of embodiments of the present application provides an access point device, including a radio frequency module, a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the method according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: according to the method and the device, after the uplink data frames sent by the terminal equipment are received, the uplink source address information of each uplink data frame is modified in a unified mode, and the first data frames with the same target source address information are obtained. Because each first data frame has the same target source address information, the first data frames are data frames sent by the same wireless module in the view angle of the target equipment, and the problem of IP address conflict is further avoided. Therefore, data communication can be carried out no matter whether each wireless module adopts the same IP address or not, so that the terminal equipment can apply the double-WIFI technology.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating address information of a conventional wireless module provided in the present application;
fig. 2 is a schematic diagram illustrating address information of a conventional wireless module provided in the present application;
fig. 3 is a schematic diagram of a wireless network system provided by the present application;
FIG. 4 shows a schematic flow diagram of three-terminal interaction provided by the present application;
fig. 5 is a schematic flow chart of a method for switching address information provided by the present application;
fig. 6 shows a specific schematic flowchart of step 501 in a method for switching address information provided in the present application;
fig. 7 shows a specific schematic flowchart of step 503 in a method for switching address information provided in the present application;
fig. 8 is a schematic flow chart of another address information switching method provided in the present application;
fig. 9 shows a specific schematic flowchart of step 802 in a method for switching address information provided in the present application;
fig. 10 is a schematic diagram illustrating an address information switching apparatus provided in the present application;
fig. 11 is a schematic diagram of an access point device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In a conventional wireless network technology, a 2.4G or 5G frequency band is often used as a radio frequency band for wireless communication. While 2.4G or 5G have different advantages: the frequency of the 5G frequency band is higher, the attenuation is larger when the frequency band propagates in the air or an obstacle, and the coverage distance is generally smaller than that of the 2.4G frequency band. The 2.4G frequency band has a narrow bandwidth, and the wireless environment is crowded and has large interference.
In order to take different advantages of 2.4G or 5G radio frequency bands into consideration, the double WIFI technology is developed. In the 'double-WIFI technology', the access point equipment simultaneously sends out signals of a 2.4G frequency band and a 5G frequency band so as to form two access point networks. The terminal equipment is respectively connected with the two access point networks through the two wireless modules, so that a double-WIFI function is realized. The wireless module in the terminal device needs to adopt different source IP addresses (source IP addresses) and different MAC addresses (physical addresses, also called hardware addresses), so that the dual WIFI function can be realized. However, most software programs in the terminal device often do not support multiple IP addresses to be shared, so that the terminal device cannot apply the "dual WIFI technology". To better explain the above technical problem, please refer to fig. 1, in which fig. 1 shows a schematic diagram of address information of a conventional wireless module provided in the present application. As shown in fig. 1, a conventional wireless module performs wireless communication using different source IP addresses and different MAC addresses, which includes the following steps: the terminal device 11 is connected to the access point device 12 and the access point device 13 through two wireless modules, respectively. The source IP address of the first radio module is: 192.168.1.20, the source MAC address is: 00-01-6C-06-A6-29, the source IP address of the second radio module is: 192.168.1.10, the source MAC address is: 00-01-6C-06-A6-26. After the access point device 12 and the access point device 13 receive the two data frames sent by the terminal device 11 through the addresses, the two data frames are forwarded to the gateway 14, and the gateway 14 forwards the two data frames to the ethernet 15.
If the wireless terminal cannot adopt multiple IP addresses, IP address collision is likely to occur, and wireless communication cannot be performed. Referring to fig. 2, fig. 2 is a schematic diagram illustrating address information of a conventional wireless module provided in the present application. As shown in fig. 2, if the conventional wireless module uses the same source IP address and different MAC addresses for wireless communication, IP address collision is easily caused, which is specifically as follows: the terminal device 11 is connected to the access point device 12 and the access point device 13 through two wireless modules, respectively. The source IP address of the first radio module is: 192.168.1.10, the source MAC address is: 00-01-6C-06-A6-29. The source IP address of the second radio module is: 192.168.1.10, the source MAC address is: 00-01-6C-06-A6-26. After the access point device 12 and the access point device 13 receive the two data frames sent by the terminal device 11 through the addresses, the two data frames are forwarded to the gateway 14. Gateway 14 detects that the two data frames have different source MAC addresses but the source IP is the same, creating a collision and no data communication is possible.
Therefore, most terminal devices cannot apply the dual WIFI technology for the above reasons.
In view of the above, embodiments of the present application provide a method, a device, an access point device, and a computer-readable storage medium for switching address information, which may solve the above technical problems.
First, the present application provides a wireless network system including a terminal device, a first access point device, and a second access point device.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a wireless network system provided in the present application. As shown in fig. 3, the wireless network system includes a terminal device 11, a first access point device 12, a second access point device 13, a gateway 14, and an ethernet 15. The number of the terminal devices 11, the number of the wireless modules in the terminal devices 11, the number of the access point devices, and the number of the access point networks formed by the access point devices may be more, which is not limited herein.
It should be emphasized that the number, location, address information and connection relationship of the devices in fig. 1, 2 and 3 are only exemplary and not limiting. Here, the terminal device 11 may connect only two access point networks corresponding to the first access point device 12 or the second access point device 13.
The terminal device 11 is configured to connect the first access point device 12 and the second access point device 13 through the first wireless module and the second wireless module. And transmits the data frame, the destination source address information, and the first source address information corresponding to each of the plurality of wireless modules in the terminal device 11 to the first access point device 12 and the second access point device 13 through the first wireless module and the second wireless module. Among them, the terminal device 11 includes a plurality of wireless modules for realizing wireless communication. The wireless module can be physical hardware (for example, a wireless network card) or virtual software (multiple virtual terminal devices are virtualized through software). In order to better explain the technical solution of the present application, the present application explains the technical solution of the present application by taking the terminal device 11 as an example that includes a first wireless module and a second wireless module. It is understood that the number of wireless modules in the terminal device 11 may be more, and is not limited herein.
The first access point device 12 is adapted to implement the steps of the method according to any of claims 1 to 7.
The second access point device 13 is adapted to implement the steps of the method according to any of claims 1 to 7.
In order to better explain the technical solution of the present application, after the present application integrally explains the process of three-terminal interaction (a terminal device, an access point device set, and a gateway form the three terminals), the present application further explains the execution steps of the access point device in detail. Referring to fig. 4, fig. 4 shows a schematic flow chart of three-terminal interaction provided by the present application.
As shown in fig. 4, the three-end interaction flow includes two stages: an uplink phase and a downlink phase.
(1) An uplink stage: the terminal device 11 transmits the target source address information and the first source address information to the first access point device 12 and the second access point device 13 through the two wireless modules, respectively. The first access point device 12 and the second access point device 13 receive the target source address information and the first source address information sent by the terminal device 11. The terminal device 11 sends uplink data frames to the first access point device 12 and the second access point device 13 through the two wireless modules, respectively. After receiving the uplink data frame, the first access point device 12 and the second access point device 13 modify the uplink source address information of the uplink data frame into the target source address information, respectively, obtain two first data frames with the same address information, and send the first data frames to the gateway 14, thereby completing the data communication in the uplink phase.
(2) A downlink stage: the gateway 14 transmits the downlink data frames to the first access point device 12 and the second access point device 13, respectively. After receiving the downlink data frame, the first access point device 12 and the second access point device 13 modify the destination address information in the downlink data frame into the first source address information (different wireless modules correspond to different first source address information), obtain the second data frame, and send the second data frame to the wireless module corresponding to the first source address information, thereby completing the data communication in the downlink stage.
Therefore, the method unifies different source address information in the uplink stage, and distributes the same destination address information in the downlink stage, so that the technical problem of IP address conflict is solved.
In the above general explanation, the embodiment takes the hardware environment shown in fig. 3 as an example, and details the execution flow of the access point device. Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a method for switching address information provided by the present application. The handover method is executed by an access point device (access point device 12 or access point device 13), and as shown in fig. 5, the handover method may include the following steps:
step 501, obtaining target source address information and first source address information corresponding to each of a plurality of wireless modules in a terminal device.
The source address information in this embodiment includes, but is not limited to, a combination of one or more kinds of address information, such as a source MAC address and source IP address information.
The destination address information includes, but is not limited to, second source address information of the terminal device, preset third source address information, or random source address information.
If the target address information is preset third source address information, the prestored third source address information and first source address information corresponding to each of the plurality of wireless modules in the terminal device are directly extracted from a storage module of the access point device.
If the target address information is random source address information, acquiring an unused source address information set, and randomly selecting one source address information from the source address information set as the target address information. And acquires the first source address information corresponding to each of the plurality of wireless modules in the terminal device 11 or a local storage module.
If the target address information is the second source address information of the terminal equipment, executing the following steps:
as an alternative embodiment of the present application, step 501 includes steps 5011 to 5012 as follows. Referring to fig. 6, fig. 6 shows a specific schematic flowchart of step 501 in a method for switching address information provided by the present application.
Step 5011, receiving a request frame sent by the terminal device; the request frame is used for accessing a wireless network.
Step 5012, extracting the target source address information and the first source address information corresponding to each of the plurality of radio modules in the terminal device from the request frame.
When the terminal device 11 accesses the access point device, the access point device needs to interact with the terminal device 11 through the management frame, so that the terminal device 11 accesses the access point device. Therefore, in the present application, the target source address information and the first source address information are transmitted through the request frame sent by the terminal device 11 in the interactive process (a traditional access process is adopted, and no additional process step needs to be added), and the specific process is as follows:
the access point device transmits a Beacon frame (Beacon frame). After receiving the Beacon frame, the terminal device 11 transmits a Probe Request frame (Probe Request frame) to the access point device. After receiving the Probe Request frame, the access point device transmits a Probe Response frame (Probe Response frame) to the terminal device 11. After receiving the Probe Response frame, the terminal device 11 performs identity authentication with the access point device. After the identity authentication is passed, the terminal apparatus 11 transmits an Association Request frame (Association Request frame) to the access point apparatus. After receiving the Association Request frame, the ap device sends an Association Response frame (Association Response frame) to the ue 11 to complete an access procedure.
As can be seen from the above process, the Request frame sent by the terminal device 11 to the access point device includes a Probe Request frame, an Association Request frame, and the like. The access point device may extract the target source address information and the first source address information in the request frame.
Preferably, there may be a case that authentication fails or the like in the access procedure. If the authentication fails, the access point device cannot obtain the Association Request frame, and thus cannot obtain the target source address information and the first source address information. Regardless of whether the authentication is successful or failed, the ap device may obtain the Probe Request frame in the scanning stage, so that the Probe Request frame may be preferentially selected as the Request frame for transmitting the destination source address information and the first source address information, so as to prevent the destination source address information and the first source address information from being unavailable.
Step 502, receiving an uplink data frame sent by the terminal device through the plurality of wireless modules.
In order to better explain the technical solution of the present application, the present application explains the technical solution of the present embodiment by taking the terminal device 11 as an example including a first wireless module and a second wireless module.
The terminal device 11 sends an uplink data frame to the access point device through the first wireless module and the second wireless module. The source address information corresponding to each uplink data frame may be completely different, partially different, or completely the same. The access point device uplinks the data frame and performs step 503.
Step 503, modifying the uplink source address information in each uplink data frame into the target source address information to obtain a first data frame; the first data frame is for transmission to a destination device.
In order to avoid the IP address collision, the access point device uniformly modifies the uplink source address information in each uplink data frame into the target source address information to obtain the first data frame.
The target source address information is partially or completely different from the plurality of first source address information, and when the target source address information is completely different from the plurality of first source address information, the corresponding embodiment is as follows:
as an optional embodiment of the present application, when the first source address information is MAC address information (that is, the first source address information of the first wireless module is first MAC address information, the first source address information of the second wireless module is second MAC address information, and the destination source address information is destination MAC address information), step 503 executes the step: modifying the first MAC address information or the second MAC address information in each uplink data frame into the target MAC address information; and the IP address in each uplink data frame is the same.
Exemplarily, as shown in fig. 3, the first MAC address information of the uplink data frame sent by the first radio module is: 00-01-6C-06-A6-29, and the second MAC address information of the uplink data frame sent by the second wireless module is: 00-01-6C-06-A6-26. The source IP addresses of the two uplink data frames are both: 192.168.1.10. the destination MAC address information is: 00-01-6C-06-A6-30. After the first access point device 12 receives the uplink data frame, the first MAC address information (00-01-6C-06-A6-29) in the uplink data frame is modified to: 00-01-6C-06-A6-30, and obtaining first data. After the second access point device 13 receives the uplink data frame, the second MAC address information (00-01-6C-06-A6-26) in the uplink data frame is modified to: 00-01-6C-06-A6-30, and obtaining a first data frame.
After obtaining the first data frame, the first ap device 12 and the second ap device 13 respectively send the first data frame to the target terminal (i.e. the gateway 14), and at this time, from the perspective of the gateway 14, the first data frame may be regarded as a data frame (MAC address information is completely the same) sent by the same wireless module or device, so that the problem of IP address collision is solved.
The target source address information is partially or completely different from the plurality of first source address information, and when the target source address information is partially the same as the plurality of first source address information, the corresponding embodiment is as follows:
as an alternative embodiment of the present application, when the first MAC address information is the same as the target MAC address information, step 503 includes the following steps 5031 to 5032. Referring to fig. 7, fig. 7 is a specific schematic flowchart illustrating step 503 in a method for switching address information according to the present application.
Step 5031, using the first MAC address information in the first uplink data frame sent by the first wireless module as the target MAC address information.
Since the first MAC address information is the same as the target MAC address information, the first MAC address information is directly used as the target MAC address information without modifying the first MAC address information, that is, the conventional wireless communication process is performed.
Step 5032, modifying the second MAC address information in the second uplink data frame sent by the second wireless module into the target MAC address information.
Since the second MAC address information is different from the target MAC address information, the second MAC address information needs to be modified to the target MAC address information so that the MAC address information to the first data frame is the same. Thereby realizing normal wireless communication.
It is understood that, when the second MAC address information is the same as the destination MAC address information and the first MAC address information is different from the destination MAC address information, the performing step can be obtained by analogy with step 5031 and step 5032, and details are not described herein.
It can be understood that, when the first source address information is the MAC address information and the number of the first source address information is greater than two, the execution steps can be obtained by analogy with step 5031 and step 5032, and details are not repeated here.
As an optional embodiment of the present application, when the source address information is MAC address information and a source IP address, the source IP address in the uplink data frame may be different. The implementation process is as follows:
illustratively, the first MAC address information and the first IP address of the uplink data frame sent by the first radio module are: 00-01-6C-06-A6-29, 192.168.1.11. The second MAC address information and the second P address of the uplink data frame sent by the second wireless module are: 00-01-6C-06-A6-29, 192.168.1.12. After the first access point device 12 receives the uplink data frame, the first MAC address information (00-01-6C-06-A6-29, 192.168.1.11) in the uplink data frame is modified to 00-01-6C-06-A6-30, 192.168.1.10, so as to obtain a first data frame. After the second access point device 13 receives the uplink data frame, the fifth source IP address (00-01-6C-06-A6-29, 192.168.1.12) in the uplink data frame is modified to 00-01-6C-06-A6-30, 192.168.1.10, so as to obtain the first data frame.
It is understood that, when the first source address information is other types of address information, the execution flow of step 503 is the same as that in the above-mentioned alternative embodiment, and is not described herein again. A person skilled in the art may obtain the execution steps corresponding to other types of address information by analogy with the execution steps of any one of the above alternative embodiments.
In this embodiment, after receiving an uplink data frame sent by a terminal device, the uplink source address information of each uplink data frame is modified uniformly, so as to obtain a first data frame with the same target source address information. Because each first data frame has the same target source address information, the first data frames are data frames sent by the same wireless module in the view angle of the target equipment, and the problem of IP address conflict is further avoided. Therefore, data communication can be carried out no matter whether each wireless module adopts the same IP address or not, so that the terminal equipment can apply the double-WIFI technology.
Optionally, on the basis of the embodiment shown in fig. 5, after step 501, the following step is further included, please refer to fig. 8, and fig. 8 shows a schematic flowchart of another address information switching method provided in this application.
Step 501, obtaining target source address information and first source address information corresponding to each of a plurality of wireless modules in a terminal device.
Step 801, receiving a downlink data frame sent by the destination device.
Step 802, using the first source address information as destination address information of the downlink data frame to obtain a second data frame; the second data frame is for transmission to the wireless module.
In order to better explain the technical solution of the present application, the present application explains the technical solution of the present embodiment by taking the terminal device 11 as an example including a first wireless module and a second wireless module.
After receiving the downlink data frame from the destination device (i.e., the gateway 14), the access point device needs to perform split transmission on the downlink data frame (i.e., transmit the downlink data frame to the first wireless module or the second wireless module). The first wireless module or the second wireless module have different address information, so that the access point device needs to use the first source address information as the destination address information of the downlink data frame.
As an optional embodiment of the present application, when the first source address information is MAC address information (that is, the first source address information of the first wireless module is first MAC address information, the first source address information of the second wireless module is second MAC address information, and the destination address information is destination MAC address information), step 802 executes the step: and using the first MAC address information or the second MAC address information as the destination MAC address information of the downlink data frame to obtain a second data frame.
Illustratively, as shown in fig. 3, the gateway 14 sends the same downlink data frame to the first access point device 12 and the second access point device 13, where the destination IP address of the downlink data frame is: 192.168.1.10, the destination physical address is: 00-01-6C-06-A6-30. After receiving the downlink data frame, the first access point device 12 obtains a second data frame by using the first MAC address information (00-01-6C-06-A6-29) as destination MAC address information of the downlink data frame, and sends the second data frame to the first wireless module. After receiving the downlink data frame, the second access point device 13 obtains a second data frame by using the second MAC address information (00-01-6C-06-A6-26) as destination MAC address information of the downlink data frame, and sends the second data frame to the second wireless module. The source IP addresses of the first wireless module and the second wireless module are both: 192.168.1.10 (same as the destination IP address of the downstream data frame), so the destination IP address of the downstream data frame does not need to be modified.
When the first wireless module and the second wireless module are both connected to the same access point device, the access point device needs to select a target wireless module from the plurality of wireless modules to transmit the first data frame. This implementation provides several options as follows:
mode (1): and selecting the wireless module corresponding to the maximum signal intensity as a target wireless module according to the signal intensity of the access point network connected with each wireless module.
Mode (2): and selecting the wireless module corresponding to the minimum delay as a target wireless module according to the delay of the access point network connected with each wireless module.
Mode (3): one wireless module is randomly selected from the plurality of wireless modules as a target wireless module.
Mode (4): as an alternative embodiment of the present application, step 802 includes steps 8021 to 8023 as follows. Referring to fig. 9, fig. 9 is a specific schematic flowchart illustrating step 802 in a method for switching address information according to the present application.
Step 8021, obtain a first transmission rate of the first wireless module and a second transmission rate of the second wireless module.
Step 8022, if the first transmission rate is greater than the second transmission rate, using the first MAC address information as destination MAC address information of the downlink data frame to obtain a third data frame; the third data frame is for transmission to a first wireless module.
Step 8023, if the first transmission rate is not greater than the second transmission rate, using the second MAC address information as destination MAC address information of the downlink data frame to obtain a fourth data frame; the fourth data frame is for transmission to a second radio module.
As an alternative embodiment of the present application, when the first wireless module and the second wireless module are connected to different access point devices, the gateway 14 is required to select a target wireless module, and the selection manner can be similar to the manner (1) to the manner (4). And after the target wireless module is selected, transmitting the downlink data frame to the access point equipment connected with the target wireless module. And the access point equipment modifies the destination address information of the downlink data frame according to the address information of the target wireless module to obtain a second data frame, and transmits the second data frame to the target wireless module.
As an optional embodiment of the present application, when the first MAC address information is the same as the destination MAC address information, the first access point device 12 directly sends the downlink data frame to the first wireless module. The second access point device 13 obtains a second data frame by using the second MAC address information as destination MAC address information of the downlink data frame, and sends the second data frame to the second wireless module.
It can be understood that, when the second MAC address information is the same as the destination MAC address information and the first MAC address information is different from the destination MAC address information, the steps performed can be similar to the above steps, and are not described herein again.
As an optional embodiment of the present application, when the first source address information is MAC address information and a source IP address, the following procedure is executed:
illustratively, the gateway 14 sends the same downlink data frame to the first access point device 12 and the second access point device 13, where the destination IP address of the downlink data frame is: 192.168.1.10, the destination physical address is: 00-01-6C-06-A6-30. After receiving the downlink data frame, the first access point device 12 obtains a second data frame by using the first MAC address information (00-01-6C-06-A6-29) and the fourth source IP address (192.168.1.11) as destination address information of the downlink data frame, and sends the second data frame to the first wireless module. After receiving the downlink data frame, the second access point device 13 obtains a second data frame by using the second MAC address information (00-01-6C-06-A6-26) and the fifth source IP address (192.168.1.12) as destination address information of the downlink data frame, and sends the second data frame to the second wireless module.
It is understood that, when the source address information is other types of address information, the execution flow of step 802 is the same as the two alternative embodiments described above, and is not described herein again. A person skilled in the art may obtain the execution steps corresponding to other types of address information by analogy with the execution steps of any one of the above alternative embodiments.
Step 502, receiving an uplink data frame sent by the terminal device through the plurality of wireless modules.
Step 503, modifying the uplink source address information in each uplink data frame into the target source address information to obtain a first data frame; the first data frame is for transmission to a destination device.
In this embodiment, after receiving a downlink data frame sent by a target terminal, first source address information corresponding to different wireless modules is used as destination address information of the downlink data frame to obtain a second data frame, so that the second data frame is transmitted to the wireless module corresponding to the first source address information, so that the different wireless modules perform data communication, and a "dual WIFI technology" is implemented.
Referring to fig. 10, the present application provides an address information switching apparatus 10, which is a first access point device, please refer to fig. 10, fig. 10 shows a schematic diagram of an address information switching apparatus provided in the present application, and the address information switching apparatus shown in fig. 10 includes:
an obtaining unit 101, configured to obtain target source address information and first source address information corresponding to each of a plurality of wireless modules in a terminal device;
a receiving unit 102, configured to receive an uplink data frame sent by the terminal device through a plurality of the wireless modules;
a modifying unit 103, configured to modify uplink source address information in each uplink data frame into the target source address information, so as to obtain a first data frame; the first data frame is for transmission to a destination device.
According to the address information switching device, after the uplink data frames sent by the terminal equipment are received, the uplink source address information of each uplink data frame is modified in a unified mode, and the first data frames with the same target source address information are obtained. Because each first data frame has the same target source address information, the first data frames are data frames sent by the same wireless module in the view angle of the target equipment, and the problem of IP address conflict is further avoided. Therefore, data communication can be carried out no matter whether each wireless module adopts the same IP address or not, so that the terminal equipment can apply the double-WIFI technology.
Fig. 11 is a schematic diagram of an access point device according to an embodiment of the present invention. As shown in fig. 11, an access point device 11 of this embodiment includes: a radio frequency module 111, a processor 112, a memory 113 and a computer program 114, such as a handover program for address information, stored in the memory 113 and executable on the processor 112. The processor 112, when executing the computer program 114, implements the steps in each of the above embodiments of the address information switching method, such as the steps 501 to 503 shown in fig. 5. Alternatively, the processor 112, when executing the computer program 114, implements the functions of the units in the above-described device embodiments, for example, the functions of the units 101 to 103 shown in fig. 10.
Illustratively, the computer program 114 may be divided into one or more units, which are stored in the memory 113 and executed by the processor 112 to carry out the invention. The one or more elements may be a series of computer program instruction segments for describing the execution of the computer program 114 in the one type of access point device 11 that are capable of performing certain functions. For example, the computer program 114 may be divided into an acquisition unit and a calculation unit, each unit having the following specific functions:
the terminal equipment comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring target source address information and first source address information corresponding to a plurality of wireless modules in the terminal equipment;
a receiving unit, configured to receive an uplink data frame sent by the terminal device through the plurality of wireless modules;
a modification unit, configured to modify uplink source address information in each uplink data frame into the target source address information, so as to obtain a first data frame; the first data frame is for transmission to a destination device.
The access point device may be a router or other device with access functionality. The access point device includes, but is not limited to, a radio frequency module 111, a processor 112, and a memory 113. Those skilled in the art will appreciate that fig. 11 is merely an example of one type of access point device 11 and is not intended to limit one type of access point device 11 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the one type of end device may also include input-output devices, network access devices, buses, etc.
The radio frequency module 121 is configured to emit electromagnetic waves, and form an access point network through the electromagnetic waves.
The Processor 112 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 113 may be an internal storage unit of the access point device 11, such as a hard disk or a memory of the access point device 11. The memory 113 may also be an external storage device of the access point device 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the access point device 11. Further, the memory 113 may also include both an internal storage unit and an external storage device of the access point device 11. The memory 113 is used for storing the computer program and other programs and data required by the kind of terminal equipment. The memory 113 may also be used to temporarily store data that has been output or is to be output.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In some jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and proprietary practices.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to monitoring ". Similarly, the phrase "if it is determined" or "if [ a described condition or event ] is monitored" may be interpreted depending on the context to mean "upon determining" or "in response to determining" or "upon monitoring [ a described condition or event ]" or "in response to monitoring [ a described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing a relative importance or importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for switching address information, the method comprising:
acquiring target source address information and first source address information corresponding to a plurality of wireless modules in terminal equipment; the target source address information and the first source address information both comprise MAC address information, and the MAC address refers to a hardware address; the IP addresses of a plurality of wireless modules are the same;
receiving uplink data frames sent by the terminal equipment through a plurality of wireless modules;
modifying the first source address information in each uplink data frame into the target source address information to obtain a first data frame; the first data frame is for transmission to a destination device.
2. The handover method according to claim 1, wherein after the obtaining of the destination source address information and the first source address information corresponding to each of the plurality of radio modules in the terminal device, the method further comprises:
receiving a downlink data frame sent by the destination device;
using the first source address information as destination address information of the downlink data frame to obtain a second data frame; the second data frame is for transmission to the wireless module.
3. The handover method of claim 1, wherein the terminal device comprises a first radio module and a second radio module; the first source address information of the first wireless module is first MAC address information, and the first source address information of the second wireless module is second MAC address information; the target source address information is target MAC address information;
the modifying the first source address information in each uplink data frame into the target source address information to obtain a first data frame includes:
modifying the first MAC address information or the second MAC address information in each uplink data frame into the target MAC address information; wherein, the source IP address in each uplink data frame is the same; where the IP address refers to an internet protocol address.
4. The handover method according to claim 2, wherein the terminal device includes a first radio module and a second radio module; the first source address information of the first wireless module is first MAC address information, and the first source address information of the second wireless module is second MAC address information; the destination address information is destination MAC address information;
the obtaining a second data frame by using the first source address information as the destination address information of the downlink data frame includes:
and taking the first MAC address information or the second MAC address information as the destination MAC address information of the downlink data frame to obtain a second data frame.
5. The switching method according to claim 4, wherein the obtaining the second data frame by using the first MAC address information or the second MAC address information as the destination MAC address information of the downlink data frame includes:
acquiring a first transmission rate of a first wireless module and a second transmission rate of a second wireless module;
if the first transmission rate is greater than the second transmission rate, the first MAC address information is used as the destination MAC address information of the downlink data frame to obtain a third data frame; the third data frame is for transmission to a first wireless module;
if the first transmission rate is not greater than the second transmission rate, the second MAC address information is used as the destination MAC address information of the downlink data frame to obtain a fourth data frame; the fourth data frame is for transmission to a second radio module.
6. The handover method according to claim 1, wherein the obtaining of the destination source address information and the first source address information corresponding to each of the plurality of radio modules in the terminal device comprises:
receiving a request frame sent by the terminal equipment;
and extracting the target source address information and the first source address information corresponding to each of the plurality of wireless modules in the terminal equipment from the request frame.
7. The handover method of claim 1, wherein the destination source address information is partially the same as or entirely different from the plurality of first source address information.
8. A switching apparatus of address information, the switching apparatus comprising:
an acquisition unit, configured to acquire target source address information and first source address information corresponding to each of a plurality of wireless modules in a terminal device; the target source address information and the first source address information both comprise MAC address information, and the MAC address refers to a hardware address; the IP addresses of a plurality of wireless modules are the same;
a receiving unit, configured to receive an uplink data frame sent by the terminal device through the plurality of wireless modules;
a modification unit, configured to modify the first source address information in each uplink data frame into the target source address information, so as to obtain a first data frame; the first data frame is for transmission to a destination device.
9. An access point device comprising a radio frequency module, a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011626845.3A 2020-12-30 2020-12-30 Switching method and switching device of address information Active CN112788160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011626845.3A CN112788160B (en) 2020-12-30 2020-12-30 Switching method and switching device of address information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011626845.3A CN112788160B (en) 2020-12-30 2020-12-30 Switching method and switching device of address information

Publications (2)

Publication Number Publication Date
CN112788160A CN112788160A (en) 2021-05-11
CN112788160B true CN112788160B (en) 2022-12-09

Family

ID=75754540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011626845.3A Active CN112788160B (en) 2020-12-30 2020-12-30 Switching method and switching device of address information

Country Status (1)

Country Link
CN (1) CN112788160B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866370B (en) * 2022-03-22 2024-04-16 深圳市立创电子商务有限公司 Communication method, device, equipment and medium based on asymmetric binary tree link
CN115914251A (en) * 2022-09-29 2023-04-04 歌尔科技有限公司 Data frame transmission method and device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108886685A (en) * 2016-12-31 2018-11-23 华为技术有限公司 A kind of Terminal-Matching, device
CN110278586A (en) * 2018-03-14 2019-09-24 华为技术有限公司 Frame response method and relevant apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1883186B9 (en) * 2006-07-26 2014-05-14 Lg Electronics Inc. Using multiple internet protocol addresses for WIFI handover
JPWO2008099446A1 (en) * 2007-02-06 2010-05-27 三菱電機株式会社 Communication system, communication apparatus, radio base station, and radio terminal station
KR20130117265A (en) * 2012-04-18 2013-10-25 주식회사 씨에스 Apparatus and method for performing a handover in a radio communication system supporting multi radio access technology
WO2016204574A1 (en) * 2015-06-17 2016-12-22 주식회사 윌러스표준기술연구소 Wireless communication method and wireless communication terminal for receiving data from plurality of wireless communication terminals
CN108966302B (en) * 2017-05-18 2020-09-08 华为技术有限公司 Method, equipment and system for realizing switching among APs
CN108234353B (en) * 2017-12-29 2022-05-24 京信网络系统股份有限公司 Wireless forwarding method, main access point and forwarding access point
CN111083246A (en) * 2019-11-29 2020-04-28 广东电力通信科技有限公司 Data transmission processing method, Ethernet switch and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108886685A (en) * 2016-12-31 2018-11-23 华为技术有限公司 A kind of Terminal-Matching, device
CN110278586A (en) * 2018-03-14 2019-09-24 华为技术有限公司 Frame response method and relevant apparatus

Also Published As

Publication number Publication date
CN112788160A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US9769721B2 (en) Channel switching method, apparatus, and device
CN112788160B (en) Switching method and switching device of address information
CN111586797B (en) Communication method and access network equipment
US20230140323A1 (en) Inter-cell beam management for 5g systems
US11871460B2 (en) Domain name system (DNS)-based discovery of regulatory requirements for non-3GPP inter-working function (N3IWF) selection
KR101159434B1 (en) Network allocation
EP4057730A1 (en) Data processing system, method, and apparatus, device, and readable storage medium
CN111200798A (en) V2X message transmission method, device and system
US20160036705A1 (en) Method and device for configuring link in wireless lan system
US11310794B2 (en) Data transmission method in internet of vehicles and terminal
CA3194231A1 (en) Method and apparatus for link operation of multi-link device
CN110324901B (en) Communication method of cascaded APs, wireless access point and storage medium
CN114885039B (en) Data transmission method, device and storage medium
US20220417843A1 (en) Data communication system to serve a user equipment (ue) over a third generation partnership project (3gpp) network core
US11265730B2 (en) Data processing method adapted to access network architecture, access network architecture system and storage medium
CN115426139A (en) Access control method based on SIM card information and communication device
CN111565438B (en) Communication method and access network equipment
CN111565436B (en) Communication method and access network equipment
CN113542343A (en) Apparatus and method for G3-PLC bootstrapping in hybrid networks
CN112788710B (en) Access method and access device of terminal equipment
US11882538B1 (en) Wireless user equipment (UE) registration with networking data responsive to external control
CN117377125A (en) Data transmission method, device, equipment and storage medium
CN110139377A (en) Processing method and processing device, storage medium and the electronic device of information
CN115988617A (en) Timed awakening period replacing method, device, equipment and storage medium
CN116981029A (en) Signal transmission method, system, device, wireless access equipment and electronic equipment

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