CN107534585A - Communication means and terminal - Google Patents

Communication means and terminal Download PDF

Info

Publication number
CN107534585A
CN107534585A CN201680024794.2A CN201680024794A CN107534585A CN 107534585 A CN107534585 A CN 107534585A CN 201680024794 A CN201680024794 A CN 201680024794A CN 107534585 A CN107534585 A CN 107534585A
Authority
CN
China
Prior art keywords
gateway
address
terminal
mac address
outer net
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.)
Granted
Application number
CN201680024794.2A
Other languages
Chinese (zh)
Other versions
CN107534585B (en
Inventor
丁吉
卢军鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107534585A publication Critical patent/CN107534585A/en
Application granted granted Critical
Publication of CN107534585B publication Critical patent/CN107534585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of communication means and terminal, including:Terminal in LAN determines the IP address of the gateway of LAN;Terminal determines MAC Address corresponding to IP address, wherein, IP address corresponds to multiple MAC Address, and multiple MAC Address correspond with multiple gateways;Terminal is determined to connect the intended gateway of outer net from multiple gateways;Terminal passes through intended gateway and outbound communication.Consumer's Experience can be improved.

Description

Communication means and terminal Technical field
The present invention relates to the communication means and terminal in the communications field more particularly to the communications field.
Background technique
With the development of communication technology and network broadband it is universal, in the more home area in room or the biggish Administrative Area of area, the wireless router that two or more can be used carries out networking, to guarantee that wireless network signal covers all places.And gateway (GW, Gateway) is generally integrated in wireless router in the prior art.For example, Fig. 1 is shown by the schematic diagram of two wireless router networkings.Wherein the gateway built in the first wireless router is connect with outer net, and the second wireless router is connect by cable with the first wireless router.Terminal can access to LAN by the wireless network signal of the first wireless router or the second wireless router.If address network protocol (IP, Internet Protocol) of the default gateway of multiple routers in local area network is identical, the gateway of multiple identical IP address will be present in the local area network, and really be able to the only one of which gateway of networking.For example, in the network shown in fig. 1, the gateway only built in the first wireless router can network, there is no use for the gateway of the second wireless router.
Under normal conditions, terminal is after the IP address for obtaining gateway, address resolution protocol (ARP is carried out firstly the need of to the IP address, Address Resolution Protocol) parsing, to obtain the corresponding media intervention control address (MAC, Media Access Control) of gateway.And data are sent to gateway according to the MAC Address that parsing obtains.In normal network, an IP address has unique MAC Address to be corresponding to it.And in above-mentioned networking, there is a case where IP address corresponds to multiple MAC Address, then the data of terminal are possible to that the gateway of mistake can be sent to.So user can have found that the terminal in local area network will appear the phenomenon that can sometimes surfing the Internet, sometimes cannot get online, user experience is influenced.
Summary of the invention
The embodiment of the invention provides a kind of communication means and terminals, to improve user experience.
In a first aspect, providing a kind of communication means, comprising: the terminal in local area network determines the network protocol IP address of the intended gateway of the local area network;The terminal determines that MAC address, the MAC Address include multiple MAC Address according to the IP address;The terminal is from described more It is determined to realize the target device of the network interconnection in the corresponding multiple equipment of a MAC Address;The target device is determined as the intended gateway by the terminal.
Terminal is after the corresponding MAC Address of IP address for determining intended gateway, and the MAC Address is when including multiple MAC Address, it is determined to realize the target device of network interconnection from the corresponding multiple equipment of multiple MAC Address, and the target device is determined as intended gateway, to which terminal is not necessarily to user setting, intended gateway can be automatically determined, user experience is improved.
In one possible implementation, the terminal determines the corresponding MAC Address of the IP address, comprising: the terminal sends Address Resolution Protocol ARP request packet to each equipment of the local area network, and the ARP request packet includes the IP address;The terminal receives replying message for each equipment, the MAC Address for replying message the equipment including the correspondence IP address.
In one possible implementation, the communication means further include: the terminal binds the MAC Address Static ARP of the IP address and the intended gateway.
In one possible implementation, the multiple gateway is located in multiple routers.
In one possible implementation, the terminal is determined to the intended gateway of connection outer net from the multiple gateway, it include: that the terminal binds the MAC Address of the first gateway in the IP address and the multiple gateway, wherein, first gateway is any gateway in the multiple gateway;The terminal determines whether being capable of the first gateway connection outer net;When that can connect the outer net by first gateway, first gateway is determined as the intended gateway by the terminal.
Second aspect, provides a kind of terminal, and the terminal includes the module for executing the communication means of first aspect.Based on the same inventive concept, the principle solved the problems, such as due to the terminal is corresponding with the scheme in the design of the method for first aspect, and the implementation of the terminal may refer to the implementation of method, and overlaps will not be repeated.
The third aspect, provides a kind of terminal, and the terminal includes memory, processor.The memory is for storing program, and the processor is for executing program.When described program is performed, the processor is used to execute the communication means of first aspect.Based on the same inventive concept, the principle solved the problems, such as due to the terminal is corresponding with the scheme in the design of the method for first aspect, and the implementation of the terminal may refer to the implementation of method, and overlaps will not be repeated.
Fourth aspect, provide a kind of System on Chip/SoC, including input interface, output interface, at least one processor, memory, the input interface, output interface, the processor and memory are directly connected by bus, the processor is used to execute the code in the memory, when the code is performed, the processor realizes the communication means in first aspect.Based on the same inventive concept, since this is The principle that system chip solves the problems, such as is corresponding with the scheme in the design of the method for first aspect, therefore the implementation of the System on Chip/SoC may refer to the implementation of method, and overlaps will not be repeated.
5th aspect provides a kind of computer-readable medium, and the computer-readable medium storage is used for the program code that terminal executes, and said program code is used to execute the instruction of the communication means of first aspect, and overlaps will not be repeated.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, attached drawing needed in the embodiment of the present invention will be briefly described below, apparently, drawings described below is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the networking schematic diagram of the communication means of the embodiment of the present invention.
Fig. 2 is a kind of schematic diagram of terminal of the embodiment of the present invention.
Fig. 3 is the schematic diagram of another terminal of the embodiment of the present invention.
Fig. 4 is the schematic diagram of the System on Chip/SoC of the embodiment of the present invention.
Specific embodiment
To describe the technical solutions in the embodiments of the present invention more clearly, attached drawing needed in the embodiment of the present invention will be briefly described below, apparently, drawings described below is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts, it is also possible to obtain other drawings based on these drawings.
It should be understood that, the technical solution of the embodiment of the present invention can be applied to various communication systems, such as: global system for mobile telecommunications (Global System of Mobile communication, referred to as " GSM ") system, CDMA (Code Division Multiple Access, referred to as " CDMA ") system, wideband code division multiple access (Wideband Code Division Multiple Access, referred to as " WCDMA ") system, General Packet Radio Service (General Packet Radio Service, referred to as " GPRS "), long term evolution (Long Te Rm Evolution, referred to as " LTE ") system, LTE frequency division duplex (Frequency Division Duplex, referred to as " FDD ") system, LTE time division duplex (Time Division Duplex, referred to as " TDD "), Universal Mobile Communication System (Universal Mobile Telecommunication System, referred to as " UMTS ") or global interconnection inserting of microwave (Worldwide Interoperability for Microwave Access, referred to as " WiMAX ") communication system etc..
It should be understood that in embodiments of the present invention, terminal can be referred to as user equipment (User Equipment, referred to as " UE "), mobile station (Mobile Station, referred to as " MS "), mobile terminal (Mobile Terminal), computer, microcomputer etc..The terminal can be through wireless access network (Radio Access Network, referred to as " RAN ") it is communicated with one or more core nets, such as, terminal can be mobile phone (or being " honeycomb " phone), computer with mobile terminal etc., such as, terminal can also be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they exchange voice and/or data with wireless access network.The present invention does not limit this, such as terminal further includes having the terminal of the access in radio of multiple-bearer feature.
It should be understood that the local area network in the embodiment of the present invention can be cable LAN, it is also possible to WLAN.Alternatively, the local area network in the embodiment of the present invention can be set up jointly by cable network and wireless network.
As described above, in the biggish home area of certain areas or Administrative Area, multiple routers can be used and carry out networking, to guarantee that network signal covers whole region.Since usually gateway being integrated in the router in the prior art.So a router in multiple router can be connect by built-in gateway with outer net.And other routers are the function of having used routing, actually there is no use for built-in gateway therein.And under normal conditions, especially when router comes from same brand, the IP address of the default gateway of multiple router settings is usually identical, which usually can be the IP address of router, for example, manufacturer usually sets 192.168.0.1 for the IP address of the default gateway of router.So, may have the gateway of multiple identical IP address when there is multiple router networkings in local area network, in the network, and really be able to online gateway only one, terminal in network is possible to that the gateway of mistake can be connected to according to IP address, so as to cause cannot normally surf the Internet.
Such as, in the networking schematic diagram of Fig. 1, the gateway built in the first wireless router in Fig. 1 passes through wide area network (WAN, Wide Area Network) interface is connected to outer net, and local area network (the LAN of the first wireless router, Local Area Network) interface is connected with the LAN interface of the second wireless router by cable, the first wireless router and the second wireless router common networking, but the gateway only built in the first wireless router connects outer net.If user needs to send gateway from terminal for data, it is parsed firstly the need of the IP to gateway, to obtain the media intervention control (MAC of gateway, Media Access Control) address, secondary IP address obtains the process of MAC Address, i.e. address resolution protocol (ARP, Address Resolution Protocol) parses.If the IP of the first wireless router and the default gateway of the second wireless router setting is identical, to then occur a case where IP address corresponds to two MAC Address under the network, when ARP is resolved to the MAC Address of the gateway of the first wireless router, if the first wireless router receives the data of user's transmission, the net of the first wireless router can be passed through Connection connects outer net, if the second wireless router receives the data of user's transmission, data are transferred to the first wireless router by the second wireless router, and then connect outer net by the gateway of the first wireless router;When ARP is resolved to the MAC Address of the gateway of the second wireless router, if the second wireless router receives the data of user's transmission, second wireless router is attempted to connect outer net by the gateway of itself, without data are transferred to the first wireless router, but since the gateway of the second wireless router does not connect outer net, connection outer net failure.The probability that user data has 50% is sent to the place of mistake, cannot get online to have 50% probability.Moreover, the router of the networking in local area network is more, the probability that user data sends mistake is bigger, to affect user experience.
Such as, in the networking schematic diagram of Fig. 1, the first wireless router and the second wireless router belong to the same local area network, the IP address of the gateway of multiple routers in the same local area network it is identical (such as, 192.168.0.1), but the MAC Address of the corresponding gateway of each router is different;Assuming that the MAC Address of the gateway GW1 of the first wireless router is mac1;The MAC Address of the GW2 of second wireless router is mac2;When terminal connects any one router (what terminal may connect is the first wireless router, it is also possible to connect the second wireless router), terminal can all get the IP address (for example, 192.168.0.1) of the local area network;At this time when terminal data needs to be dealt into gateway, the IP address (for example, 192.168.0.1) of gateway can be parsed to obtain MAC Address by ARP first.After router in local area network receives ARP request, respectively to the terminal replies message for issuing ARP request packet, the MAC Address of itself is carried in this is replied message;Entrained MAC Address in the message that terminal selection receives at first, and outer net is connected by the corresponding gateway of the MAC Address.As shown in Figure 1, the first wireless router and the corresponding MAC Address of the second wireless router are respectively mac1 and mac2.If ARP parses to have obtained mac1, if that the first wireless router is connected to outer net, terminal can surf the Internet;If the second wireless router is connected to outer net, terminal cannot just surf the Internet.It is exactly that can surf the Internet in the networking schematic diagram of Fig. 1.Equally, if ARP parses to have obtained mac2, if that the first wireless router is connected to outer net, terminal cannot just surf the Internet, if the second wireless router is connected to outer net, user can surf the Internet.
In view of being limited by professional knowledge and ability for user, most of user can only accomplish to plug cable and modify router rs name and operation that password these letters are answered, cannot grasp to some advanced settings.So where may not finding the problem in time when encountering conditions described above and performing corresponding processing.The embodiment of the present invention proposes a kind of communication means as a result, and this method can be executed by terminal.The main thought of this method is, after terminal passes through router access to LAN, in the IP address for getting gateway, if the IP address corresponds to the MAC Address of multiple gateways, active probe can connect outer The gateway of net, and be determined to connect the intended gateway of outer net from multiple gateways, it is communicated by the intended gateway with outer net, by automatically determining intended gateway, eliminates the operation of user, improve user experience.
The communication means 100 of the embodiment of the present invention is described below, this method 100 can be executed by terminal, and as described below, this method 100 includes:
110, terminal determines the IP address of the gateway of accessed local area network;
It should be noted that above-mentioned terminal can be the terminal for accessing the local area network.The terminal can access the local area network by wireless router, can also pass through the access in radio local area network.Terminal determines the IP address of the gateway, can be and determines the IP address by the default setting pre-set, can also obtain the IP address by other means, this is not limited by the present invention.For example, terminal can obtain the IP address of gateway by dynamic host configuration protocol (DHCP, Dynamic Host Configuration Protocol) from router, alternatively, terminal can also pass through the IP address for being manually entered the gateway of user.
120, the terminal determines the corresponding MAC Address of the IP address, wherein the IP address corresponds to multiple MAC Address, multiple gateways one-to-one correspondence of the multiple MAC Address and the local area network;
Optionally, terminal determines the corresponding MAC Address of IP address, can be each equipment of the terminal into local area network and sends ARP request packet, in other words, terminal will be on the All hosts on the ARP request packet broadcast to local network.Each equipment in local area network determines whether the IP address in the ARP request packet matches with the IP address of the machine after receiving ARP request packet.If it does not match, not responding.If it does, then being carried and the matched MAC Address of the IP address in this is replied message to the terminal replies message for issuing ARP request packet.Terminal receives after this replies message, and can determine the MAC Address with the matched gateway of the IP address.
Optionally, above-mentioned multiple gateways can be located in multiple routers.Above-mentioned multiple routers may be wireless router.
130, the terminal is determined to the intended gateway of connection outer net from the multiple gateway;
Optionally, the outer net can be other networks in addition to the local area network.For example, the outer net can be internet, alternatively, the outer net is also possible to other local area networks.
Optionally, terminal is determined to the specific method of the intended gateway of connection outer net from multiple gateways, terminal be can be after the MAC Address for determining the corresponding multiple gateways of the IP address, the IP address is successively bound with the MAC Address of multiple gateways, and after the MAC Address of each binding gateway, whether terminal test can connect outer net by the gateway of binding, if it is possible to connect outer net, then eventually The gateway is determined as intended gateway by end, and the MAC Address of the IP address and the intended gateway can be carried out Static ARP binding.If outer net cannot be connected, terminal again binds the MAC Address of IP address and next gateway, until determining intended gateway or until testing all gateways.
Optionally, whether terminal test can connect outer net by the gateway of binding, can be whether terminal test can connect internet by the gateway of binding.It can test whether to can connect the well-known websites such as Baidu, Google (Google).
140, the terminal passes through the intended gateway and the outbound communication.
In embodiments of the present invention, terminal is after determining the corresponding multiple MAC Address of IP address of gateway of accessed local area network, the target device of connection outer net is determined to from the corresponding multiple equipment of multiple MAC Address, and the target device is determined as intended gateway, to which terminal is not necessarily to user setting, intended gateway can be automatically determined, user experience is improved.
The process of the specific embodiment of the communication means of the embodiment of the present invention is hereinafter described.As described below, it is assumed that terminal is located in the local area network by multiple wireless router networkings, which includes:
(1) terminal is by either router access to LAN, and obtains the IP address of the gateway of the local area network;
(2) terminal carries out ARP detection (for example, it may be broadcast arp detection packet) according to the IP address;
(3) if terminal receives the MAC Address of multiple response ARP detection packets, illustrate to have in local area network that multiple gateways are corresponding with the IP address, can name multiple gateway for GW1, GW2 ... respectively
(4) MAC Address of IP address and GW1 are carried out Static ARP binding by terminal, and access outer net (for example, access well-known website such as Baidu or Google), it is determined whether can connect outer net by GW1;
(5) if GW1 can connect outer net, GW1 is determined as intended gateway, process terminates;If GW1 can not connect outer net, continue next step;
(6) MAC Address of IP address and next gateway is carried out Static ARP binding by terminal, and determines whether to be able to access that outer net, until determination can access the intended gateway of outer net;Or all gateways are tested, if all gateways all be cannot get online, any gateway is not bound, terminates process.
Optionally, after terminal determines intended gateway, outer net preferentially can be connected by determining intended gateway.If terminal determines when causing intended gateway to change due to networking mode variation or other reasons When can not connect outer net by fixed intended gateway, terminal can re-execute the steps 120 and step 130, and to redefine the MAC Address of intended gateway, and then the intended gateway by redefining connects outer net.
In embodiments of the present invention, in the case where the IP address of gateway corresponds to the MAC Address of multiple gateways, terminal guarantees that user can normally connect outer net in the case where multiple gateway, improves user experience by detecting and binding the intended gateway that can connect outer net automatically.
The communication means of the embodiment of the present invention is described in detail above in association with Fig. 1, below in conjunction with the terminal of Fig. 2 the present invention is described in detail embodiment.
Fig. 2 is the schematic diagram of the terminal of the embodiment of the present invention.It should be understood that the terminal 200 of Fig. 2 is able to carry out each step of the communication means hereinbefore executed by terminal, in order to avoid repeating, and will not be described here in detail.Terminal 200 includes:
Memory 210, for storing program;
Processor 220, for executing the program stored in the memory 310, when described program is performed, the IP address of the gateway for the local area network that the processor 320 is used to determine that the terminal is accessed;Determine the corresponding MAC Address of the IP address, wherein the IP address corresponds to multiple MAC Address, multiple gateways one-to-one correspondence of the multiple MAC Address and the local area network;The intended gateway of connection outer net is determined to from the multiple gateway;It controls the terminal and passes through the intended gateway and the outbound communication.Based on the same inventive concept, the principle solved the problems, such as due to the terminal is similar to the communication means in embodiment of the present invention method, and the implementation of the terminal may refer to the implementation of method, and overlaps will not be repeated.
In embodiments of the present invention, terminal is after the corresponding MAC Address of IP address for determining intended gateway, and the MAC Address is when including multiple MAC Address, it is determined to realize the target device of network interconnection from the corresponding multiple equipment of multiple MAC Address, and the target device is determined as intended gateway, to which terminal is not necessarily to user setting, intended gateway can be automatically determined, user experience is improved.
Fig. 3 is the schematic diagram of the terminal of the embodiment of the present invention.Each module in terminal in Fig. 3 can be the component part of the processor in Fig. 2.It should be understood that the terminal 300 of Fig. 3 is able to carry out each step of the communication means hereinbefore executed by terminal, in order to avoid repeating, and will not be described here in detail.Terminal 300 includes:
First determining module 310, the IP address of the gateway for determining local area network that the terminal is accessed;
Second determining module 320, for determining the corresponding MAC Address of the IP address, wherein the IP address corresponds to multiple MAC Address, multiple nets of the multiple MAC Address and the local area network It closes and corresponds;
Third determining module 330, for being determined to the intended gateway of connection outer net from the multiple gateway;
Communication module 340 passes through the intended gateway and the outbound communication for controlling the terminal.
Based on the same inventive concept, the principle solved the problems, such as due to the terminal is similar to the communication means in embodiment of the present invention method, and the implementation of the terminal may refer to the implementation of method, and overlaps will not be repeated.
In embodiments of the present invention, terminal is after the corresponding MAC Address of IP address for determining intended gateway, and the MAC Address is when including multiple MAC Address, it is determined to realize the target device of network interconnection from the corresponding multiple equipment of multiple MAC Address, and the target device is determined as intended gateway, to which terminal is not necessarily to user setting, intended gateway can be automatically determined, user experience is improved.
Fig. 4 is the schematic diagram of the System on Chip/SoC of the embodiment of the present invention.The System on Chip/SoC 400 of Fig. 4 includes input interface 410, output interface 420, at least one processor 430, memory 440, it is connected between the input interface 410, output interface 420, the processor 430 and memory 440 by bus, the processor 430 is used to execute the code in the memory 440, and when the code is performed, the processor 430 realizes the communication means hereinbefore executed by terminal.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
It should be understood that in embodiments of the present invention, " B corresponding with A " indicates that B is associated with A, B can be determined according to A.It is also to be understood that determining that B is not meant to determine B only according to A according to A, B can also be determined according to A and/or other information.
Those of ordinary skill in the art may be aware that, unit and algorithm steps described in conjunction with the examples disclosed in the embodiments of the present disclosure, it can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the interchangeability of hardware and software, each exemplary composition and step are generally described according to function in the above description.These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Professional technician can use different methods to achieve the described function each specific application, but such implementation should not be considered as beyond the scope of the present invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, system, the specific work process of device and unit of foregoing description can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods may be implemented in other ways.Such as, the apparatus embodiments described above are merely exemplary, such as, the division of the unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, be also possible to electricity, the connection of mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member for this, and component shown as a unit may or may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can select some or all of unit therein according to the actual needs to realize the purpose of the embodiment of the present invention.
In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, it is also possible to each unit and physically exists alone, is also possible to two or more units and is integrated in one unit.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, can store in a non-volatile computer read/write memory medium.Based on this understanding, technical solution of the present invention substantially the part that contributes to existing technology in other words, or all or part of the technical solution can be embodied in the form of software products, the computer software product is stored in a non-volatile memory medium, it uses including some instructions so that a computer equipment (can be personal computer, server or the network equipment etc.) execute all or part of the steps of each embodiment this method of the present invention.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), the various media that can store program code such as magnetic or disk.
Technical characteristic and description in the above a certain embodiment, in order to keep application documents succinctly clear, it is possible to understand that be suitable for other embodiments, no longer repeated one by one in other embodiments.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, and anyone skilled in the art in the technical scope disclosed by the present invention, can think easily To various equivalent modifications or substitutions, these modifications or substitutions be should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (16)

  1. A kind of communication means characterized by comprising
    Terminal determines the IP address of the gateway of accessed local area network;
    The terminal determines the corresponding MAC Address of the IP address, wherein the IP address corresponds to multiple MAC Address, and the multiple MAC Address and multiple gateways correspond;
    The terminal is determined to the intended gateway of connection outer net from the multiple gateway;
    The terminal passes through the intended gateway and the outbound communication.
  2. Communication means as described in claim 1, which is characterized in that the terminal determines the corresponding MAC Address of the IP address, comprising:
    The terminal sends Address Resolution Protocol ARP request packet to each equipment of the local area network, and the ARP request packet includes the IP address;
    The terminal receives replying message for each equipment, the MAC Address for replying message the equipment including the correspondence IP address.
  3. Communication means as claimed in claim 1 or 2, which is characterized in that the communication means further include:
    The terminal binds the MAC Address Static ARP of the IP address and the intended gateway.
  4. Method according to any one of claims 1 to 3, which is characterized in that the terminal is determined to the intended gateway of connection outer net from the multiple gateway, comprising:
    The terminal binds the MAC Address of the first gateway in the IP address and the multiple gateway, wherein first gateway is any gateway in the multiple gateway;
    The terminal determines whether that the outer net can be connected by first gateway;
    When that can connect the outer net by first gateway, first gateway is determined as the intended gateway by the terminal.
  5. A kind of terminal characterized by comprising
    First determining module, the IP address of the gateway for determining local area network that the terminal is accessed;
    Second determining module, for determining the corresponding MAC Address of the IP address, wherein the IP address corresponds to multiple MAC Address, multiple gateways one-to-one correspondence of the multiple MAC Address and the local area network;
    Third determining module, for being determined to the intended gateway of connection outer net from the multiple gateway;
    Communication module passes through the intended gateway and the outbound communication for controlling the terminal.
  6. Terminal as claimed in claim 5, which is characterized in that second determining module is specifically used In: each equipment of Xiang Suoshu local area network sends Address Resolution Protocol ARP request packet, and the ARP request packet includes the IP address;Receive replying message for each equipment, the MAC Address for replying message the equipment including the correspondence IP address.
  7. Such as terminal described in claim 5 or 6, which is characterized in that the terminal further include:
    Binding module, for binding the MAC Address Static ARP of the IP address and the intended gateway.
  8. Terminal as described in any one of claim 5 to 7, it is characterized in that, the third determining module is specifically used for: the MAC Address of the first gateway in the IP address and the multiple gateway is bound, wherein first gateway is any gateway in the multiple gateway;Determine whether that the outer net can be connected by first gateway;When the outer net can be connected by first gateway, first gateway is determined as the intended gateway.
  9. A kind of terminal characterized by comprising
    Memory, the memory is for storing program;
    Processor, the processor is for executing program.When described program is performed, the processor is used to determine the network protocol IP address of the gateway of the local area network;Determine the corresponding MAC Address of the IP address, wherein the IP address corresponds to multiple MAC Address, and the multiple MAC Address and multiple gateways correspond;The intended gateway of connection outer net is determined to from the multiple gateway;Pass through the intended gateway and the outbound communication.
  10. Terminal as claimed in claim 9, which is characterized in that the processor is specifically used for sending Address Resolution Protocol ARP request packet to each equipment of the local area network, and the ARP request packet includes the IP address;Receive replying message for each equipment, the MAC Address for replying message the equipment including the correspondence IP address.
  11. Terminal as described in claim 8 or 10, which is characterized in that the processor is specifically used for binding the MAC Address Static ARP of the IP address and the intended gateway.
  12. Terminal as described in any one of claim 8 to 11, which is characterized in that the processor is specifically used for binding the MAC Address of the first gateway in the IP address and the multiple gateway, wherein first gateway is any gateway in the multiple gateway;Determine whether that the outer net can be connected by first gateway;When that can connect the outer net by first gateway, first gateway is determined as the intended gateway by the terminal.
  13. A kind of storage medium, which is characterized in that for the method that controlling terminal executes insertion code, the described method comprises the following steps:
    The terminal in local area network determines the network protocol IP address of the gateway of the local area network;
    The terminal determines the corresponding MAC Address of the IP address, wherein the IP address corresponds to multiple MAC Address, and the multiple MAC Address and multiple gateways correspond;
    The terminal is determined to the intended gateway of connection outer net from the multiple gateway;
    The terminal passes through the intended gateway and the outbound communication.
  14. Storage medium as claimed in claim 13, which is characterized in that the terminal determines the corresponding MAC Address of the IP address, comprising:
    The terminal sends Address Resolution Protocol ARP request packet to each equipment of the local area network, and the ARP request packet includes the IP address;
    The terminal receives replying message for each equipment, the MAC Address for replying message the equipment including the correspondence IP address.
  15. Storage medium according to claim 13 or 14, which is characterized in that the communication means further include:
    The terminal binds the MAC Address Static ARP of the IP address and the intended gateway.
  16. Storage medium as described in any one of claim 13 to 15, which is characterized in that the terminal is determined to the intended gateway of connection outer net from the multiple gateway, comprising:
    The terminal binds the MAC Address of the first gateway in the IP address and the multiple gateway, wherein first gateway is any gateway in the multiple gateway;
    The terminal determines whether that the outer net can be connected by first gateway;
    When that can connect the outer net by first gateway, first gateway is determined as the intended gateway by the terminal.
CN201680024794.2A 2016-03-29 2016-03-29 Communication method and terminal Active CN107534585B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/077633 WO2017166038A1 (en) 2016-03-29 2016-03-29 Communication method and terminal

Publications (2)

Publication Number Publication Date
CN107534585A true CN107534585A (en) 2018-01-02
CN107534585B CN107534585B (en) 2020-04-21

Family

ID=59963280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680024794.2A Active CN107534585B (en) 2016-03-29 2016-03-29 Communication method and terminal

Country Status (2)

Country Link
CN (1) CN107534585B (en)
WO (1) WO2017166038A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268383A (en) * 2021-12-21 2022-04-01 瑞德电子(信丰)有限公司 Wireless data transceiver module and test method thereof
CN114598571A (en) * 2020-12-07 2022-06-07 上汽通用汽车有限公司 Vehicle-mounted multi-gateway IP routing method and system based on application and vehicle

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113625589B (en) * 2021-09-15 2023-12-12 云茂互联智能科技(厦门)有限公司 Equipment control method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1754374A (en) * 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
CN1961542A (en) * 2004-06-30 2007-05-09 松下电器产业株式会社 Communication device, communication setting method, communication setting program, and recording medium for recording the communication setting program
CN102694771A (en) * 2011-03-22 2012-09-26 上海艾泰科技有限公司 A method for binding IP-MAC to gateway DHCP server side and gateway DHCP server side
WO2015063505A1 (en) * 2013-11-01 2015-05-07 Shared Band Limited Bonding router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1754374A (en) * 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
CN1961542A (en) * 2004-06-30 2007-05-09 松下电器产业株式会社 Communication device, communication setting method, communication setting program, and recording medium for recording the communication setting program
CN102694771A (en) * 2011-03-22 2012-09-26 上海艾泰科技有限公司 A method for binding IP-MAC to gateway DHCP server side and gateway DHCP server side
WO2015063505A1 (en) * 2013-11-01 2015-05-07 Shared Band Limited Bonding router

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598571A (en) * 2020-12-07 2022-06-07 上汽通用汽车有限公司 Vehicle-mounted multi-gateway IP routing method and system based on application and vehicle
CN114268383A (en) * 2021-12-21 2022-04-01 瑞德电子(信丰)有限公司 Wireless data transceiver module and test method thereof
CN114268383B (en) * 2021-12-21 2023-12-22 瑞德电子(信丰)有限公司 Wireless data transceiver module and testing method thereof

Also Published As

Publication number Publication date
WO2017166038A1 (en) 2017-10-05
CN107534585B (en) 2020-04-21

Similar Documents

Publication Publication Date Title
EP3905628B1 (en) Message sending method and related device
JP5348094B2 (en) Support device and computer program
US20210211965A1 (en) Data Transmission Method, Electronic Device, and Computer Readable Storage Medium
US9712489B2 (en) Client device address assignment following authentication
US8238315B2 (en) Rapid local address assignment for wireless communication networks
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
CN103957593A (en) Wireless network accessing method, device and system
CN104969515A (en) Methods and gateways for processing DNS request
CN106507414B (en) Message forwarding method and device
CN107534585A (en) Communication means and terminal
KR102310027B1 (en) Determination method and corresponding terminal, computer program product and storage medium
JP5914750B2 (en) Method for accessing packet switched network, WLAN access system, and user equipment
US11683275B2 (en) Device and method for interconnecting two subnetworks
EP3267656B1 (en) Methods and apparatuses for message processing during pppoe authentication
US10003572B2 (en) Information processing apparatus and recording medium
US7873037B2 (en) Information processing device, information processing system, information processing method, and program
TW201611549A (en) Network device and method for routing
CN103516820A (en) Port forwarding method and apparatus based on MAC address
CN105429880A (en) Network equipment and method for performing router forwarding by network equipment
US10873561B2 (en) Method and apparatus for allocating IP parameter
US11758372B2 (en) Charging policy obtaining method and apparatus
US10404652B2 (en) Communication device, communication method, and program
CN107959939B (en) Method and device for identifying connectivity of wireless Access Point (AP)
CN115941547A (en) Method, device and system for processing ping message
JP6398634B2 (en) Communication device, communication system, determination method and program in communication device

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