CN105391639B - A kind of intelligent networking gateway method for routing and system - Google Patents

A kind of intelligent networking gateway method for routing and system Download PDF

Info

Publication number
CN105391639B
CN105391639B CN201510668582.5A CN201510668582A CN105391639B CN 105391639 B CN105391639 B CN 105391639B CN 201510668582 A CN201510668582 A CN 201510668582A CN 105391639 B CN105391639 B CN 105391639B
Authority
CN
China
Prior art keywords
ipv6
network
ipv4
intelligent gateway
grouping
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
CN201510668582.5A
Other languages
Chinese (zh)
Other versions
CN105391639A (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.)
SHENZHEN WINEXT TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN WINEXT TECHNOLOGY 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 SHENZHEN WINEXT TECHNOLOGY Co Ltd filed Critical SHENZHEN WINEXT TECHNOLOGY Co Ltd
Priority to CN201510668582.5A priority Critical patent/CN105391639B/en
Publication of CN105391639A publication Critical patent/CN105391639A/en
Application granted granted Critical
Publication of CN105391639B publication Critical patent/CN105391639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of intelligent networking gateway method for routing and systems, the invention patent is improved using IPv4/IPv6 dual stack, network protocol stack is simplified, and supports common limited agreement, facilitates implementation many by resource such as the limited hardware of RAM and ROM in internet of things field.Intelligent gateway of the present invention can be applicable in IPv4 or IPv6 network by the network type of intelligent recognition IPv4 or IPv6 network, be not necessarily to human intervention.WAN mouthfuls of support multiple hardwares accesses of intelligent gateway uplink of the present invention, downlink LAN support a variety of RF, such as 802.15.4RF, 315 MHz, 433 MHz, 470 MHz, 868 MHz, 915 MHz, implementation can be facilitated in internet of things sensors network.

Description

A kind of intelligent networking gateway method for routing and system
Technical field
The present invention relates to IPv4 network is based on a kind of intelligent gateway method for routing and system more particularly to a kind of Internet of Things With the intelligent gateway method for routing and system of IPv6 network.
Background technique
With the development of Internet of Things, full IPization network has become the inexorable trend of future development, and full IP communication helps to push away The standardization of animal networking communication protocol, IPv6 has become the consistent selection of Internet of Things communication protocol standard at present.Internet of Things Net includes sensor network part and Internet portion, and connection equipment is known as things-internet gateway or intelligent gateway or border routing Device.Internet of Things Web vector graphic IPv6 agreement, and internet generally uses IPv4 agreement at present, also has part residential gateway to start Support IPv6, therefore Internet of Things has interconnected into things-internet gateway core function.
Application for a patent for invention CN201310377204.2 provides a kind of intelligent networking gateway, is counted with server Cloud platform according to transmission, and in the server interacts, and transport protocol converts between realizing various industries, and the present apparatus passes through tune The rapid abutting joint with server cloud platform, the new Internet of Things of quick secondary development can be realized with server with the integrated library function of correlation Net product.The invention stresses to define gateway apparatus hardware structure.
Application for a patent for invention 201310192156.X is related to a kind of novel things-internet gateway, including core processor, data Collector, wireless routing module, the core processor is interior to be equipped with communication module, and data collector is with Wireless/wired side Formula is connected with wireless routing module, integrated in wireless routing module a variety of communication technologys and with the communication module in core processor Connection;Using cross-layer protocol design theory and flexible and efficient wireless sensor network AD-Hoc routing Design, in conjunction with industry Field bus technique, Real-Time Web service technology, Intelligent programmable technology, RFID technology, ZigBee wirelessly communicate skill Art realizes gateway site intelligent configuration mode, and a variety of sensors are accessed Internet of Things by a variety of communication technologys, realize profession Efficiently, expansible intelligent data gateway.The invention stresses to define gateway apparatus hardware structure.
Application for a patent for invention CN201210458654.X discloses a kind of software design framework of things-internet gateway, is used for Carry out the exploitation of things-internet gateway software.The embodiment of the present invention includes: Universal Die group and custom mold group, the Universal Die group packet Include: Internet of Things core communication module and the Internet communication module, the Internet of Things core communication module are used for network layer data and sense Know that layer data formats processing;The Internet communication module is for carrying out internet communication;The Internet of Things core Communication module and the Internet communication module by can communication mode connect.By embodiment scheme of the invention, object can be reduced The overlapping development rate of networking gateway software, while improving its development efficiency.The invention stresses to provide the software of things-internet gateway Design framework, but without reference to IPv6 network or IPv4 network.
Application for a patent for invention 201310487340.7, the invention discloses a kind of general gateway of internet of things, including application service Device, conversion module and upstream Interface connected to it and control module, conversion module are connected with downstream interface, downstream interface packet Include serial ports or downstream analog interface;Interface of the upstream Interface as access internet of things application layer, using the access side TCP/IP Formula.By the present invention in that being encapsulated with TCP agreement and TLV, uplink and downlink process is devised, can access all using string The equipment that mouth, analog interface control, and all uplink and downlinks breath is unified for a kind of format, application layer services device can only dock this A kind of gateway, and only handle and store a kind of this data format.The general gateway of internet of things does not need to support multi-protocols, only It needs simply to configure, it is difficult to reduce realization.It is mutual that the conversion that the invention stresses application layer protocol in Internet of Things solves interconnection It corresponds topic.
The above patent has the following problems: gateway can be used when accessing internet and being IPv4 network, but mutual in access Networking cannot be used when being IPv6 network;Or gateway can be used when accessing internet and being IPv6 network, but interconnected in access Net cannot be used when being IPv4 network.
Summary of the invention
Technical problem solved by the present invention is constructing a kind of intelligent networking gateway method for routing, the prior art is overcome not It can intelligently determine the technical issues of IPv4 network and IPv6 network are to intelligence transmission information.
The technical scheme is that providing a kind of intelligent networking gateway method for routing, include the following steps:
Issue request message: from WAN mouthful successively to intelligent gateway sending router request message, DHCPv6 request message, DHCP has found request message;
Judge network type: the intelligent gateway connects the intelligent gateway WAN according to the request message judgement received and connects The network type of mouth;
The information of IPv4 network transmits: the LAN interface of the intelligent gateway receives the IPv6 grouping at Internet of things node end, If the intelligent gateway judges that for IPv4 network, IPv6 grouping translation is turned for the network type of the intelligent gateway wan interface It is changed to IPv4 grouping, then which is grouped to the receiving end for being transmitted to IPv4 network by the intelligent gateway wan interface; When the wan interface of the intelligent gateway receives IPv4 grouping, then the IPv4 grouping translation of wan interface is converted into IPv6 grouping, Then the IPv6 is grouped to the Internet of things node that IPv6 network is transmitted to by the intelligent gateway LAN interface;
The information of IPv6 network transmits: the LAN interface of the intelligent gateway receives the IPv6 grouping at Internet of things node end, If the intelligent gateway judges the network type of the intelligent gateway wan interface for IPv6 network, IPv6 grouping is passed through into institute State the receiving end that intelligent gateway wan interface is transmitted to IPv6 network;The intelligent gateway receives the letter of the IPv6 network of wan interface When breath, then the IPv6 of wan interface is grouped to the Internet of things node that IPv6 network is transmitted to by the intelligent gateway LAN interface.
A further technical solution of the present invention is: the intelligent gateway receives the intelligence when judging port type The message of gateway wan interface transmission shows the intelligence if receiving router advertisement message or DHCPv6 notice message The network of gateway wan interface is IPv6 network;If the intelligent gateway receives router DHCP OFFER message, show described The network of intelligent gateway wan interface is IPv4 network.
A further technical solution of the present invention is: if the intelligent gateway receives router advertisement message or DHCPv6 Notice message, while also receiving DHCP OFFER message, then the intelligent gateway considers using IPv4 also according to policy priority It is IPv6.
A further technical solution of the present invention is: IPv6 to be grouped to the IPv6 packet transaction mould being sent in the intelligent gateway When block processing, the destination address IPv6 of IPv6 grouping is checked by the route system of the IPv6 PHM packet handling module, if with The address IPv6 of oneself is identical, then shows that this IPv6 grouping is destined to oneself, IPv6 is grouped and is transferred to by transport layer Application layer program;Otherwise IPv6 grouping needs to forward, and IPv6 grouping is sent to the processing of IPv6 PHM packet handling module.
A further technical solution of the present invention is: the link layer process module is according to next-hop IP v4 address lookup address Whether analysis protocol caching has the corresponding physical address of next-hop, sends if there is IPv4 grouping is then packaged into link layer packet To next-hop;If issuing arp request parsing without if, IPv4 grouping is packaged into link layer if request successfully Grouping is sent to next-hop, otherwise abandons the grouping after the failure of certain frequent requests.
Exist a further technical solution of the present invention is: the IPv6 PHM packet handling module is grouped destination address according to the IPv6 Next-hop routing is searched in routing table, is sent, can be correctly sent to primary by the link processing module after finding Sending end;It can not find routing and then abandon IPv6 grouping.
The technical scheme is that constructing a kind of intelligent networking gateway route system, the intelligent gateway includes IPv4/IPv6 protocol translation module, IPv4 PHM packet handling module, IPv6 PHM packet handling module, network type judgment module, from Wan interface successively issues router request message, DHCPv6 request message, DHCP to intelligent gateway and finds request message, institute State the network type that network type judgment module connects the intelligent gateway wan interface according to the request message judgement received, institute The LAN interface for stating intelligent gateway receives the IPv6 grouping at Internet of things node end, if the network type judgment module judges institute The network type for stating intelligent gateway wan interface is IPv4 network, then the IPv4/IPv6 protocol translation module turns over IPv6 grouping It translates and is converted to IPv4 grouping, then send the IPv4 PHM packet handling module, the IPv4 packet transaction for IPv4 grouping Module is transmitted to the receiving end of IPv4 network by the intelligent gateway wan interface;The wan interface of the intelligent gateway receives When IPv4 is grouped, then the received IPv4 grouping translation of wan interface is converted into IPv6 points by the IPv4/IPv6 protocol translation module Then the IPv6 is grouped the Internet of things node that IPv6 network is transmitted to by the intelligent gateway LAN interface by group;If the net Network type judging module judges that the network type of the intelligent gateway wan interface for IPv6 network, then sends IPv6 grouping to The IPv6 PHM packet handling module, the IPv6 PHM packet handling module are transferred directly to by the intelligent gateway wan interface The receiving end of IPv6 network;When the wan interface of the intelligent gateway receives IPv6 grouping, then the IPv6 of wan interface is grouped The Internet of things node of IPv6 network is transmitted to by the intelligent gateway LAN interface.
A further technical solution of the present invention is: the intelligent gateway further includes link layer process module, the IPv4 divides IPv4 grouping is transferred to link layer process module by group processing module, by the link layer process resume module;The IPv6 IPv6 grouping is transferred to link layer process module by PHM packet handling module, by the link layer process resume module.
A further technical solution of the present invention is: the intelligent gateway further includes the enquiry module for inquiring address.
A further technical solution of the present invention is: the intelligent gateway further includes the memory of storage address information.
The solution have the advantages that: construct a kind of intelligent networking gateway method for routing and system, from WAN mouthfuls successively to Intelligent gateway issues router request message, DHCPv6 request message, DHCP and finds request message;The intelligent gateway according to The request message judgement received connects the network type of the intelligent gateway wan interface;The LAN interface of the intelligent gateway receives IPv6 to Internet of things node end is grouped, and is if the intelligent gateway judges the network type of the intelligent gateway wan interface IPv6 grouping translation is then converted to IPv4 grouping, IPv4 grouping is then passed through the intelligent gateway WAN by IPv4 network Interface is transmitted to the receiving end of IPv4 network;When the wan interface of the intelligent gateway receives IPv4 grouping, then by wan interface IPv4 grouping translation is converted into IPv6 grouping, is then grouped the IPv6 and is transmitted to IPv6 by the intelligent gateway LAN interface The Internet of things node of network;The LAN interface of the intelligent gateway receives the IPv6 grouping at Internet of things node end, if the intelligence Gateway judges the network type of the intelligent gateway wan interface for IPv6 network, and IPv6 grouping is passed through the intelligent gateway Wan interface is transmitted to the receiving end of IPv6 network;When the wan interface of the intelligent gateway receives IPv6 grouping, then WAN is connect The IPv6 grouping of mouth is transmitted to the Internet of things node of IPv6 network by the intelligent gateway LAN interface.Invention intelligent gateway energy It by intelligent recognition network type (IPv4 or IPv6 network), can be applicable in IPv4 or IPv6 network, be not necessarily to human intervention. WAN mouthfuls of support multiple hardwares accesses of intelligent gateway uplink of the present invention, downlink LAN supports a variety of RF, such as 802.15.4RF, 315 MHz, 433 MHz, 470 MHz, 868 MHz, 915 MHz can facilitate implementation in internet of things sensors network.
Detailed description of the invention
Fig. 1 is simplified schematic diagram of the present invention.
Fig. 2 is the structural schematic diagram of intelligent gateway of the present invention.
Fig. 3 is that inventive network type judges schematic diagram.
Fig. 4 is that the IPv4 network information of the present invention transmits schematic diagram.
Fig. 5 is that the IPv6 network information of the present invention transmits schematic diagram.
Specific embodiment
Combined with specific embodiments below, further explanation of the technical solution of the present invention.
Relational language:
1, WAN:Wide Area Network, wide area network.The wan interface of gateway refers to the upstream egress of gateway
2, LAN:Local Area Network, local area network.The LAN interface of gateway refers to the downstream egress of gateway
3, ARP:Address Resolution Protocol, address resolution protocol
4, UDP:User Datagram Protocol, User Datagram Protocol
5, TCP:Transmission Control Protocol, transmission control protocol
6, ICMP:Internet Control Message Protocol, Internet Control Message Protocol
7, DS:Neighbor Discovery, neighbourhood have found agreement
8, DHCP:Dynamic Host Configuration Protocol, dynamic host configuration protocol
9, RPL:Routing Protocol for LLN, low-power consumption lossy networks Routing Protocol
10, PPPoE:Point to Point Protocol over Ethernet carries ppp protocol on Ethernet
As shown in Figure 1 and Figure 2, a specific embodiment of the invention is: a kind of intelligent networking gateway method for routing is provided, Intelligent networking gateway includes wan interface and LAN interface, and wan interface is used for multi-upstream access home gateway or enterprise gateway, tool Body hardware can be Ethernet, WiFi, bluetooth or 3G/4G/GPRS module respectively.LAN interface application downlink connects Internet of Things IPv6 network, particular hardware can be various RF respectively, as 802.15.4,315 MHz, 433 MHz, 470 MHz, 868 MHz, 915 MHz.IPv6 PHM packet handling module 3 includes the IPv6 protocol stack of complete simple type, especially general purpose network protocol and road It specifically include the ICP/IP protocol stack of simple type by system, limited net is commonly used in the ICP/IP protocol stack support of simple type Network agreement, uplink wan interface do not support PPPOE for streamlined software system, though ISP(Internet service provider is not supported) network is direct Access, but facilitate implementation many by resource such as the limited hardware of RAM and ROM in internet of things field.Apparatus of the present invention, downlink LAN interface supports various RF, such as 802.15.4,315 MHz, 433 MHz, 470 MHz, 868 MHz, 915 MHz, realizes Various sensor data acquisitions are transmitted by the IP network of standard, realize IP network.
The hardware platform that the present invention is implemented is unlimited, includes the following steps:
Issue request message: from WAN mouthful successively to intelligent gateway sending router request message, DHCPv6 request message, DHCP has found request message.
In specific embodiment, is successively sent from wan interface and issue router request message, DHCPv6 request message, DHCP It was found that request message, three kinds of message sequence in no particular order.
Judge network type: the intelligent gateway connects the intelligent gateway WAN according to the request message judgement received and connects The network type of mouth.
If the intelligent gateway receives router advertisement message (RFC4862) or DHCPv6 notice message, show described The network of intelligent gateway wan interface is IPv6 network, and (RFC4862) indicates router relevant criterion Protocol document number, the mark It include the appellation of router advertisement message in quasi- Protocol document.If the intelligent gateway receives router DHCP OFFER message (RFC2131), then the network for showing the intelligent gateway wan interface is IPv4 network, and (RFC2131) indicates router correlation mark Quasi- Protocol document is numbered, and includes the appellation of router DHCP OFFER message in the standard agreement document.If both the above feelings Condition has, then the intelligent gateway wan interface considers to use IPv4 or IPv6 according to policy priority.If being issued from wan interface Message there is no any respective response, after attempting certain number, show that the network of the intelligent gateway wan interface has exception, institute Intelligent gateway status lamp is stated to abnormality.
Network transmission information of the Internet of things node to wan interface: the LAN interface of the intelligent gateway receives Internet of Things section The IPv6 grouping at point end, if the intelligent gateway judges that the network type of the intelligent gateway wan interface, will for IPv4 network IPv6 grouping translation is converted to IPv4 grouping, is then grouped the IPv4 and is transmitted to IPv4 by the intelligent gateway wan interface The receiving end of network;If the intelligent gateway judges that the network type of the intelligent gateway wan interface, will for IPv6 network IPv6 is grouped the receiving end that IPv6 network is transferred directly to by the intelligent gateway wan interface.
As shown in figure 4, the network of the wan interface of the intelligent gateway is IPv4 network, then from Internet of Things in specific embodiment The IPv6 grouping that net node comes needs to translate into IPv4 grouping by IPv4/IPv6 protocol translation module 1, by IPv4 grouping Reason module 2 is sent to receiving end.It needs to translate by IPv4/IPv6 protocol translation module 1 when IPv4 grouping is replied in receiving end It is grouped at IPv6, the Internet of things node is sent to by IPv6 PHM packet handling module 3.
IPv4 PHM packet handling module 2 runs dhcp client to the address WAN configuration of IP v4 of intelligent gateway.The intelligent network The LAN interface of pass configures an address static IP v6 or is generated by IPv6 autoconf.When intelligent gateway LAN mouthfuls are sent to IPv6 PHM packet handling module 3 when receiving an IPv6 grouping.The route system of IPv6 PHM packet handling module 3 is examined The destination address IPv6 for looking into IPv6 grouping shows that this IPv6 grouping is if the address LAN IPv6 with oneself is identical It is sent to oneself, IPv6 is grouped, application layer program is transferred to by transport layer;Otherwise IPv6 grouping needs to forward, this IPv6 grouping is sent to IPv2 PHM packet handling module 2.
IPv4 PHM packet handling module 2 calls IPv4/IPv6 protocol translation module 1 according to NAPT-PT(RFC2766) carry out nothing State transition is grouped at IPv4, and (RFC2766) indicates router relevant criterion Protocol document number, is wrapped in the standard agreement document The appellation of router NAPT-PT is included., IPv4 PHM packet handling module 2 the IPv4 grouping be transferred to link layer process module 4.
Whether link layer process module 4 has next-hop corresponding physically according to next-hop IP v4 address lookup ARP buffering Location is sent to next-hop if there is IPv4 grouping is then packaged into link layer packet;It is parsed if issuing ARP request without if, It requests that successfully then IPv4 grouping is packaged into link layer packet and is sent to next-hop, is otherwise abandoned after the failure of certain frequent requests The grouping.
When returning after Internet of Things end receives IPv4 grouping, the intelligence is sent to by home gateway or enterprise gateway Gateway.The link processing module of the intelligent gateway, which receives, to be peeled link layer related data after data off and obtains IPv4 grouping, is sent to IPv4 PHM packet handling module 2.IPv4/IPv6 protocol translation module 1 is according to NAPT-PT(RFC2766) it is matched according to five-tuple, number Think to be slaves to the session connection according to coating, correctly translate into IPv6 grouping, gives IPv6 packet transaction IPv6 grouping Module 3.3 route system of IPv6 PHM packet handling module is grouped destination address according to the IPv6 and searches next-hop road in the routing table By being sent after finding by link processing module, can correctly be sent to original sender;Can not find routing, then discarding should IPv6 grouping;
The network of wan interface transmits information to Internet of things node: the wan interface of the intelligent gateway receives IPv4 grouping When, if the intelligent gateway judges that for IPv4 network, wan interface is received for the network type of the intelligent gateway wan interface To IPv4 grouping translation be converted into IPv6 grouping, then the IPv6 is grouped and is transmitted to by the intelligent gateway LAN interface The Internet of things node of IPv6 network;If the intelligent gateway judges the network type of the intelligent gateway wan interface for IPv6 net The IPv6 is then grouped the Internet of things node that IPv6 network is transferred directly to by the intelligent gateway LAN interface by network.
As shown in figure 5, specific embodiment is as follows:
When the network of the wan interface of the intelligent gateway is IPv6 network, then the IPv6 to come from Internet of things node is grouped Without translation, IPv6 is sent after being handled by IPv6 PHM packet handling module 3 by route system and is grouped receiving end.When receiving end is replied IPv6 grouping sends the Internet of Things after being handled by IPv6 PHM packet handling module 3 by route system without translation when IPv6 is grouped Net node.Be embodied as follows: IPv6 PHM packet handling module 3 runs DHCPv6 client or IPv6 Neighbor Discovery Protocol (RFC4861) address WAN configuration of IP v6 of the intelligent gateway is given, (RFC4861) indicates router relevant criterion Protocol document It numbers, includes the appellation of IPv6 Neighbor Discovery Protocol in the standard agreement document.The LAN interface configuration one of the intelligent gateway The address a static IP v6 is generated by IPv6 autoconf.When the LAN interface of the intelligent gateway receives IPv6 PHM packet handling module 3 is sent to when one IPv6 grouping.IPv6 PHM packet handling module 3 checks the destination IPv6 of IPv6 grouping Address, if the address LAN interface IPv6 with oneself is identical, show this IPv6 grouping be destined to oneself, then IPv6 grouping is transferred to application layer program;Otherwise IPv6 grouping needs to forward by wan interface, IPv6 PHM packet handling module 3 The destination IPv6 address lookup routing table next-hop that is grouped according to IPv6 of route system route.
If finding next-hop routing, link processing module is given IPv6 grouping, is sent to by link processing module Next-hop;If can not find next-hop routing, IPv6 grouping is abandoned.When being returned after distally receiving IPv6 grouping, by Home gateway or enterprise gateway are sent to the intelligent gateway.The link processing module of the intelligent gateway is shelled after receiving data Fall link layer related data and obtain IPv6 grouping, is sent to IPv6 PHM packet handling module 3.IPv6 PHM packet handling module 3 repeats Above-mentioned steps are until information is transmitted.
As shown in Fig. 2, a specific embodiment of the invention is: a kind of intelligent networking gateway route system is constructed, it is described Intelligent gateway includes IPv4/IPv6 protocol translation module 1, IPv4 PHM packet handling module 2, IPv6 PHM packet handling module 3, network class Type judgment module 5 successively issues router request message, DHCPv6 request message, DHCP discovery to intelligent gateway from WAN mouthfuls Request message, the network type judgment module 5 connect the intelligent gateway wan interface according to the request message judgement received Network type, the LAN interface of the intelligent gateway receives the IPv6 grouping at Internet of things node end, if the network type judges Module 5 judge the network type of the intelligent gateway wan interface for IPv4 network, then the IPv4/IPv6 protocol translation module 1 IPv6 grouping translation is converted into IPv4 grouping, then sends the IPv4 PHM packet handling module 2, institute for IPv4 grouping State the receiving end that IPv4 PHM packet handling module 2 is transmitted to IPv4 network by the intelligent gateway wan interface;The intelligent gateway Wan interface when receiving IPv4 grouping, then the received IPv4 of wan interface is grouped by the IPv4/IPv6 protocol translation module 1 Translation is converted into IPv6 grouping, then which is grouped to the object that IPv6 network is transmitted to by the intelligent gateway LAN interface Networked node;If the network type judgment module 5 judge the network type of the intelligent gateway wan interface for IPv6 network, The IPv6 PHM packet handling module 3 then is sent by IPv6 grouping, the IPv6 PHM packet handling module 3 passes through the intelligent gateway Wan interface is transferred directly to the receiving end of IPv6 network;When the wan interface of the intelligent gateway receives IPv6 grouping, then will The IPv6 grouping of wan interface is transmitted to the Internet of things node of IPv6 network by the intelligent gateway LAN interface.
As shown in figure 3, successively being sent from wan interface in specific embodiment and issuing router request message, DHCPv6 is asked Ask message, DHCP discovery request message, three kinds of message in no particular order sequence.
Judge network type: the intelligent gateway connects the intelligent gateway WAN according to the request message judgement received and connects The network type of mouth.
If the intelligent gateway is received by device announcement message or DHCPv6 notice message, show the intelligent gateway WAN The network of interface is IPv6 network.If the intelligent gateway receives DHCP OFFER message, show that the intelligent gateway WAN connects The network of mouth is IPv4 network.If both the above situation has, the intelligent gateway wan interface makes according to policy priority consideration With IPv4 or IPv6.If the message issued from wan interface does not have any respective response, after attempting certain number, show described The network of intelligent gateway wan interface has exception, the intelligent gateway status lamp to abnormality.
Network transmission information of the Internet of things node to wan interface: the LAN interface of the intelligent gateway receives Internet of Things section The IPv6 grouping at point end, if the intelligent gateway judges that the network type of the intelligent gateway wan interface, will for IPv4 network IPv6 grouping translation is converted to IPv4 grouping, is then grouped the IPv4 and is transmitted to IPv4 by the intelligent gateway wan interface The receiving end of network;If the intelligent gateway judges that the network type of the intelligent gateway wan interface, will for IPv6 network IPv6 is grouped the receiving end that IPv6 network is transferred directly to by the intelligent gateway wan interface.
As shown in figure 4, the network of the wan interface of the intelligent gateway is IPv4 network, then from Internet of Things in specific embodiment The IPv6 grouping that net node comes needs to translate into IPv4 grouping by IPv4/IPv6 protocol translation module 1, by IPv4 grouping Reason module 2 is sent to receiving end.It needs to translate by IPv4/IPv6 protocol translation module 1 when IPv4 grouping is replied in receiving end It is grouped at IPv6, the Internet of things node is sent to by IPv6 PHM packet handling module 3.
IPv4 PHM packet handling module 2 runs dhcp client to the address WAN configuration of IP v4 of intelligent gateway.The intelligent network The LAN interface of pass configures an address static IP v6 or is generated by IPv6 autoconf.When intelligent gateway LAN mouthfuls are sent to IPv6 PHM packet handling module 3 when receiving an IPv6 grouping.The route system of IPv6 PHM packet handling module 3 is examined The destination address IPv6 for looking into IPv6 grouping shows that this IPv6 grouping is if the address LAN IPv6 with oneself is identical It is sent to oneself, IPv6 is grouped, application layer program is transferred to by transport layer;Otherwise IPv6 grouping needs to forward, this IPv6 grouping is sent to IPv2 PHM packet handling module 2.
IPv4 PHM packet handling module 2 inquires next-hop according to destination address in the routing table, if not finding routing The grouping is abandoned, otherwise calls IPv4/IPv6 protocol translation module 1 according to NAPT-PT(RFC2766) statelessly translated into IPv4 grouping is transferred to link layer process module 4 by IPv4 grouping, IPv4 PHM packet handling module 2.
Whether link layer process module 4 has next-hop corresponding physically according to next-hop IP v4 address lookup ARP buffering Location is sent to next-hop if there is IPv4 grouping is then packaged into link layer packet;If issuing address resolution protocol without if Request analysis requests that successfully then IPv4 grouping is packaged into link layer packet and is sent to next-hop, otherwise in certain frequent requests The grouping is abandoned after failure.
When returning after Internet of Things end receives IPv4 grouping, the intelligence is sent to by home gateway or enterprise gateway Gateway.The link processing module of the intelligent gateway, which receives, to be peeled link layer related data after data off and obtains IPv4 grouping, is sent to IPv4 PHM packet handling module 2.IPv4/IPv6 protocol translation module 1 is according to NAPT-PT(RFC2766) it is matched according to five-tuple, number Think to be slaves to the session connection according to coating, correctly translate into IPv6 grouping, gives IPv6 packet transaction IPv6 grouping Module 3.3 route system of IPv6 PHM packet handling module is grouped destination address according to the IPv6 and searches next-hop road in the routing table By being sent after finding by link processing module, can correctly be sent to original sender;Can not find routing, then discarding should IPv6 grouping;
The network of wan interface transmits information to Internet of things node: the wan interface of the intelligent gateway receives IP grouping information When, if the intelligent gateway judges the network type of the intelligent gateway wan interface for IPv4 network, by wan interface IPv4 grouping translation is converted into IPv6 grouping, is then grouped the IPv6 and is transmitted to IPv6 by the intelligent gateway LAN interface The Internet of things node of network;If the intelligent gateway judge the network type of the intelligent gateway wan interface for IPv6 network, The IPv6 is grouped to the Internet of things node that IPv6 network is transferred directly to by the intelligent gateway LAN interface.
As shown in figure 5, specific embodiment is as follows:
When the network of the wan interface of the intelligent gateway is IPv6 network, then the IPv6 to come from Internet of things node is grouped Without translation, IPv6 is sent after being handled by IPv6 PHM packet handling module 3 by route system and is grouped receiving end.When receiving end is replied IPv6 grouping sends the Internet of Things after being handled by IPv6 PHM packet handling module 3 by route system without translation when IPv6 is grouped Net node.Be embodied as follows: IPv6 PHM packet handling module 3 runs DHCPv6 client or IPv6 Neighbor Discovery Protocol (RFC4861) address WAN configuration of IP v6 of the intelligent gateway is given.The LAN interface of the intelligent gateway configures a static state The address IPv6 is generated by IPv6 autoconf.When the LAN interface of the intelligent gateway receives one IPv6 is sent to IPv6 PHM packet handling module 3 when being grouped.IPv6 PHM packet handling module 3 is with checking the destination IPv6 of IPv6 grouping Location shows that this IPv6 grouping is destined to oneself, then IPv6 if the address LAN interface IPv6 with oneself is identical Grouping is transferred to application layer program;Otherwise IPv6 grouping needs to forward by wan interface, the road of IPv6 PHM packet handling module 3 It is routed by system according to the destination IPv6 address lookup routing table next-hop that IPv6 is grouped.
If finding next-hop routing, link processing module is given IPv6 grouping, is sent to by link processing module Next-hop;If can not find next-hop routing, IPv6 grouping is abandoned.When being returned after distally receiving IPv6 grouping, by Home gateway or enterprise gateway are sent to the intelligent gateway.The link processing module of the intelligent gateway is shelled after receiving data Fall link layer related data and obtain IPv6 grouping, is sent to IPv6 PHM packet handling module 3.IPv6 PHM packet handling module 3 repeats Above-mentioned steps are until information is transmitted.
The solution have the advantages that: a kind of intelligent networking gateway method for routing of the present invention and system, the invention patent It is improved using IPv4/IPv6 dual stack, simplifies network protocol stack, and support common limited agreement, facilitate implementation in object Networking arenas is many by resource such as the limited hardware of RAM and ROM.Invention intelligent gateway can pass through intelligent recognition network type (IPv4 or IPv6 network), can be applicable in IPv4 or IPv6 network, be not necessarily to human intervention.Intelligent gateway uplink of the present invention The access of WAN mouthfuls of support multiple hardwares, downlink LAN support a variety of RF, as 802.15.4RF, 315 MHz, 433 MHz, 470 MHz, 868 MHz, 915 MHz can facilitate implementation in internet of things sensors network.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention Protection scope.

Claims (8)

1. a kind of intelligent networking gateway method for routing, includes the following steps:
It issues request message: successively issuing router request message, DHCPv6 request message, DHCP to intelligent gateway from WAN mouthfuls It was found that request message;
Judge network type: the intelligent gateway connects the intelligent gateway wan interface according to the request message judgement received Network type;If the intelligent gateway receives router advertisement message or DHCPv6 notice message, show the intelligent gateway The network of wan interface is IPv6 network;If the intelligent gateway receives router DHCP OFFER message, show the intelligence The network of gateway wan interface is IPv4 network;If both the above situation has, the intelligent gateway wan interface is according to strategy It pays the utmost attention to using IPv4 or IPv6;
The information of IPv4 network transmits: the LAN interface of the intelligent gateway receives the IPv6 grouping at Internet of things node end, if institute It states intelligent gateway and judges that the network type of the intelligent gateway wan interface for IPv4 network, is then converted to IPv6 grouping translation Then the IPv4 is grouped the receiving end that IPv4 network is transmitted to by the intelligent gateway wan interface by IPv4 grouping;The intelligence When the wan interface of energy gateway receives IPv4 grouping, then the IPv4 grouping translation of wan interface is converted into IPv6 and be grouped, then will The IPv6 is grouped the Internet of things node that IPv6 network is transmitted to by the intelligent gateway LAN interface;
The information of IPv6 network transmits: the LAN interface of the intelligent gateway receives the IPv6 grouping at Internet of things node end, if institute It states intelligent gateway and judges the network type of the intelligent gateway wan interface for IPv6 network, IPv6 grouping is passed through into the intelligence Energy gateway wan interface is transmitted to the receiving end of IPv6 network;When the wan interface of the intelligent gateway receives IPv6 grouping, then The IPv6 of wan interface is grouped to the Internet of things node that IPv6 network is transmitted to by the intelligent gateway LAN interface.
2. intelligent networking gateway method for routing according to claim 1, which is characterized in that IPv6 grouping is sent to the intelligence When IPv6 PHM packet handling module in energy gateway is handled, IPv6 grouping is checked by the route system of the IPv6 PHM packet handling module The destination address IPv6, if the address IPv6 with oneself is identical, show this IPv6 grouping be destined to oneself, IPv6 grouping is transferred to application layer program by transport layer;Otherwise IPv6 grouping needs to forward, and IPv6 grouping is sent to IPv6 PHM packet handling module processing.
3. intelligent networking gateway method for routing according to claim 1, which is characterized in that the intelligent gateway further includes chain Road floor processing module, the link layer process module is according to next-hop IP v4 address lookup address resolution protocol cache, if has The corresponding physical address of next-hop is sent to next-hop if there is IPv4 grouping is then packaged into link layer packet;If no ARP request parsing is then issued, request to be successfully then grouped IPv4 and is packaged into link layer packet and is sent to next-hop, otherwise certain The grouping is abandoned after frequent requests failure.
4. intelligent networking gateway method for routing according to claim 1, which is characterized in that the intelligent gateway further includes chain Road floor processing module, IPv6 PHM packet handling module, the IPv6 PHM packet handling module are grouped destination address on road according to the IPv6 By searching next-hop routing in table, is sent after finding by the link processing module, can correctly be sent to primary send End;It can not find routing and then abandon IPv6 grouping.
5. a kind of intelligent networking gateway route system, which is characterized in that the intelligent gateway includes IPv4/IPv6 protocol translation Module, IPv4 PHM packet handling module, IPv6 PHM packet handling module, network type judgment module, from WAN mouthfuls successively to intelligent gateway Issue router request message, DHCPv6 request message, DHCP find request message, the network type judgment module according to The request message judgement received connects the network type of the intelligent gateway wan interface, if the intelligent gateway receives router Announcement message or DHCPv6 notice message then show that the network of the intelligent gateway wan interface is IPv6 network;The intelligence If gateway receives router DHCP OFFER message, show that the network of the intelligent gateway wan interface is IPv4 network;If with On either way have, then the intelligent gateway wan interface according to policy priority consider use IPv4 or IPv6;The intelligence The LAN interface of gateway receives the IPv6 grouping at Internet of things node end, if the network type judgment module judges the intelligence The network type of gateway wan interface is IPv4 network, then IPv6 is grouped translation conversion by the IPv4/IPv6 protocol translation module For IPv4 grouping, the IPv4 PHM packet handling module then is sent by IPv4 grouping, the IPv4 PHM packet handling module is logical Cross the receiving end that the intelligent gateway wan interface is transmitted to IPv4 network;The wan interface of the intelligent gateway receives IPv4 points When group, then the received IPv4 grouping translation of wan interface is converted into IPv6 grouping by the IPv4/IPv6 protocol translation module, so The IPv6 is grouped to the Internet of things node that IPv6 network is transmitted to by the intelligent gateway LAN interface afterwards;If the network class Type judgment module judges that the network type of the intelligent gateway wan interface for IPv6 network, then sends IPv6 grouping to described IPv6 PHM packet handling module, the IPv6 PHM packet handling module are transferred directly to IPv6 net by the intelligent gateway wan interface The receiving end of network;When the wan interface of the intelligent gateway receives IPv6 grouping, then the IPv6 grouping of wan interface is passed through into institute State the Internet of things node that intelligent gateway LAN interface is transmitted to IPv6 network.
6. intelligent networking gateway route system according to claim 5, which is characterized in that the intelligent gateway further includes chain Road floor processing module, IPv4 grouping is transferred to link layer process module by the IPv4 PHM packet handling module, by the link Layer processing module processing;IPv6 grouping is transferred to link layer process module by the IPv6 PHM packet handling module, by the chain The processing of road floor processing module.
7. intelligent networking gateway route system according to claim 5, which is characterized in that the intelligent gateway further includes looking into Ask the enquiry module of address.
8. intelligent networking gateway route system according to claim 5, which is characterized in that the intelligent gateway further includes depositing Store up the memory of address information.
CN201510668582.5A 2015-10-13 2015-10-13 A kind of intelligent networking gateway method for routing and system Active CN105391639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510668582.5A CN105391639B (en) 2015-10-13 2015-10-13 A kind of intelligent networking gateway method for routing and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510668582.5A CN105391639B (en) 2015-10-13 2015-10-13 A kind of intelligent networking gateway method for routing and system

Publications (2)

Publication Number Publication Date
CN105391639A CN105391639A (en) 2016-03-09
CN105391639B true CN105391639B (en) 2019-05-03

Family

ID=55423486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510668582.5A Active CN105391639B (en) 2015-10-13 2015-10-13 A kind of intelligent networking gateway method for routing and system

Country Status (1)

Country Link
CN (1) CN105391639B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017183100A1 (en) * 2016-04-19 2017-10-26 三菱電機株式会社 Wireless communication apparatus and wireless communication method
TWI643508B (en) * 2016-12-22 2018-12-01 張恭維 Smart routing system for IoT smart devices
US10972358B2 (en) 2017-08-30 2021-04-06 Citrix Systems, Inc. Inferring congestion and signal quality
CN109348522B (en) * 2018-10-22 2021-08-03 深圳市共进电子股份有限公司 Networking method, device and equipment based on TR181 and readable storage medium
CN110138771A (en) * 2019-05-13 2019-08-16 广东信尚安物联科技有限公司 Communication means, apparatus and system based on active RFID 433M agreement
CN110392127B (en) * 2019-08-15 2022-01-11 中盈优创资讯科技有限公司 Network address space identification method and device
CN110768887A (en) * 2019-09-20 2020-02-07 杭州海兴电力科技股份有限公司 IPv 6-based power gateway system and power data uploading/issuing method
CN110971701B (en) * 2019-12-10 2022-08-23 广州番禺职业技术学院 Internet of things communication method and device
CN111355704B (en) * 2020-01-09 2022-04-29 重庆高开清芯智联网络科技有限公司 IPV6 network system based on bluetooth low-power consumption

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088494A (en) * 2009-12-08 2011-06-08 中兴通讯股份有限公司 Method and system for connecting internet protocol version 4 (IPv4)/IPv6 dual-stack terminal with network
CN102255976A (en) * 2010-05-21 2011-11-23 华为终端有限公司 Method for selecting IPv4-IPv6 protocol translation module, apparatus and terminal thereof
CN102546362A (en) * 2010-12-20 2012-07-04 中兴通讯股份有限公司 Message processing method, message processing system and customer premises equipment
CN103856582A (en) * 2014-03-26 2014-06-11 清华大学 Method for controlling IPv6 internet of things through IPv4 internet of things

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088494A (en) * 2009-12-08 2011-06-08 中兴通讯股份有限公司 Method and system for connecting internet protocol version 4 (IPv4)/IPv6 dual-stack terminal with network
CN102255976A (en) * 2010-05-21 2011-11-23 华为终端有限公司 Method for selecting IPv4-IPv6 protocol translation module, apparatus and terminal thereof
CN102546362A (en) * 2010-12-20 2012-07-04 中兴通讯股份有限公司 Message processing method, message processing system and customer premises equipment
CN103856582A (en) * 2014-03-26 2014-06-11 清华大学 Method for controlling IPv6 internet of things through IPv4 internet of things

Also Published As

Publication number Publication date
CN105391639A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN105391639B (en) A kind of intelligent networking gateway method for routing and system
CN104935516B (en) Communication system and method based on software defined network
CN104052759B (en) System for realizing add-and-play technology of internet of things
CN110313162A (en) Promote in a network environment to the system and method for the content delivery of multiple recipients
CN108092830A (en) The method that ICP/IP protocol is applied in Mesh network
CN105245632B (en) A kind of different segment inter-host communication method in SDN network
US7869433B2 (en) Home network connection management system using UPnP and VLAN multicast
CN101471899A (en) Network data access method, access gateway and system capable of supporting sensor
CN102970227A (en) Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
CN108632145B (en) Message forwarding method and leaf node equipment
WO2011119019A1 (en) Method of communicating signals in 6lowpan network to ipv6 network
CN103491590B (en) A kind of implementation method of wireless sensor network route of future generation
CN103812845A (en) Service discovery method and device based on 6LoWPAN (IPv6 overLow-Power Wireless Personal Area Networks)
CN109428949A (en) A kind of method and apparatus that ARP proxy is realized based on SDN
WO2019183919A1 (en) Method and apparatus for converged networking
US10855491B2 (en) Method for implementing GRE tunnel, access point and gateway
JP2008147882A5 (en)
CN102421162A (en) Hybrid router supporting IPv6 (Internet Protocol version 6) wireless sensor network
CN109302226A (en) Incorporate network communication method
CN103200283A (en) Multi-relay wireless communication system and method for realizing IP (Internet Protocol)-based air interface for same
Pediredla et al. A 6LoWPAN implementation for memory constrained and power efficient wireless sensor nodes
CN109361558A (en) Distributed wireless ad hoc network management method based on grid network proxy for equipment node
CN104205729B (en) Method, device, and system for configuring device in network
CN102801622B (en) A kind of retransmission method of data message and retransmission unit
CN105933235B (en) Data communications method and device

Legal Events

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