CN105391639A - Internet-of-things intelligent gateway routing method and Internet-of-things intelligent gateway routing system - Google Patents

Internet-of-things intelligent gateway routing method and Internet-of-things intelligent gateway routing system Download PDF

Info

Publication number
CN105391639A
CN105391639A CN201510668582.5A CN201510668582A CN105391639A CN 105391639 A CN105391639 A CN 105391639A CN 201510668582 A CN201510668582 A CN 201510668582A CN 105391639 A CN105391639 A CN 105391639A
Authority
CN
China
Prior art keywords
ipv6
intelligent gateway
network
ipv4
described intelligent
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
CN201510668582.5A
Other languages
Chinese (zh)
Other versions
CN105391639B (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 invention relates to an Internet-of-things intelligent gateway routing method and an Internet-of-things intelligent gateway routing system. The Internet-of-things intelligent gateway routing method and the Internet-of-things intelligent gateway routing system have advantages of improving by IPv4/IPv6 dual stack, simplifying a network stack, supporting common limited protocol and facilitating application on hardware restricted by random access memory (RAM) and read-only memory (ROM) in the field of Internet-of-things. The intelligent gateway is suitable for an IPv4 network or IPv6 network without human intervention through intelligently identifying the network type of the IPv4 network or the IPv6 network. The uplink wide area network (WAN) of the intelligent gateway supports accessing of a plurality of kinds of hardware, and the downlink local area network (LAN) supports a plurality of radio frequencies (RF), such as 802.15.4RF, 315MHz, 433MHz, 470MHz, 868MHz and 915MHz. The Internet-of-things intelligent gateway routing method and the Internet-of-things intelligent gateway routing system can be conveniently applied to the Internet-of-things sensor network.

Description

A kind of intelligent networking gateway method for routing and system
Technical field
The present invention relates to a kind of intelligent gateway method for routing and system, particularly relate on a kind of Internet of Things based on the intelligent gateway method for routing of IPv4 network and IPv6 network and system.
Background technology
Along with the development of Internet of Things, all-IP network has become the inexorable trend of future development, and all-IP communication contributes to the standardization promoting Internet of Things communication protocol, and current IPv6 has become the consistent selection of Internet of Things communication protocol standard.Internet of Things comprises sensor network part and Internet portion, and its connection device is called things-internet gateway or intelligent gateway or border router.Internet of Things Web vector graphic IPv6 agreement, and at present the Internet generally uses IPv4 agreement, also has part residential gateway to start to support IPv6, therefore having interconnected into things-internet gateway Core Feature of Internet of Things.
Application for a patent for invention CN201310377204.2, provide a kind of intelligent networking gateway, transfer of data is carried out with server, and cloud platform in the server carries out alternately, achieve host-host protocol between industry-by-industry to transform, this device can realize the rapid abutting joint with server cloud platform, the Internet of Things product that quick secondary development is new by the relevant integrated built-in function of invoking server.This invention stresses to define gateway apparatus hardware structure.
Application for a patent for invention 201310192156.X, relate to a kind of novel things-internet gateway, comprise core processor, data acquisition unit, wireless routing module, communication module is provided with in described core processor, data acquisition unit is connected with wireless routing module in Wireless/wired mode, and the integrated multiple communication technology in wireless routing module is also connected with the communication module in core processor; Adopt cross-layer protocol design theory and flexible and efficient wireless sensor network AD-Hoc routing Design, in conjunction with industrial field bus technology, Real-Time Web service technology, Intelligent programmable technology, RFID technique, ZigBee wireless communication technology, achieve gateway site intelligent configuration mode, by multiple sensor by multiple communication technology access Internet of Things, realize specialty efficient, extendible intelligent data gateway.This 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, for carrying out the exploitation of things-internet gateway software.The embodiment of the present invention comprises: general module and customization module, and described general module comprises: thing connection core communication module and the Internet communication module, and described thing connection core communication module is used for carrying out format conversion processing to network layer data and sensing layer data; Described the Internet communication module is used for carrying out internet communication; Described thing joins core communication module with described the Internet communication module by being connected by communication mode.By embodiment scheme of the invention, the overlapping development rate of things-internet gateway software can be reduced, improve its development efficiency simultaneously.This invention stresses the software design framework providing things-internet gateway, but does not relate 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, comprises application server, modular converter, and connected upstream Interface and control module, modular converter is connected with downstream interface, and downstream interface comprises serial ports or downstream analog interface; Upstream Interface, as the interface of access Internet of Things application layer, adopts TCP/IP access way.The present invention is by using Transmission Control Protocol and TLV encapsulation, devise uplink and downlink flow process, the equipment that accessible all employing serial ports, analog interface control, and be a kind of form by the unification of all up-downgoing breaths, application layer services device only can dock this kind of gateway, and only processes and store this kind of data format.This general gateway of internet of things does not need to support multi-protocols, only needs simply to configure, and decreases and realizes difficulty.The conversion that this invention stresses application layer protocol in Internet of Things solves the problem that interconnects.
There is following problem in above patent: gateway can be used when accessing Internet is IPv4 network, but can not use when accessing Internet is IPv6 network; Or gateway can be used when accessing Internet is IPv6 network, but can not use when accessing Internet is IPv4 network.
Summary of the invention
The technical problem that the present invention solves is: build a kind of intelligent networking gateway method for routing, overcomes prior art and intelligence can not determine IPv4 network and IPv6 network thus the technical problem of intelligent transmission information.
Technical scheme of the present invention is: provide a kind of intelligent networking gateway method for routing, comprise the steps:
Send request message: send router request message to intelligent gateway successively from WAN mouth, DHCPv6 request message, DHCP find request message;
Judge network type: described intelligent gateway judges to connect the network type of described intelligent gateway wan interface according to the request message received;
The information transmission of IPv4 network: the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv4 network, translation of then being divided into groups by IPv6 is converted to IPv4 grouping, then divides into groups this IPv4 to be sent to by described intelligent gateway wan interface the receiving terminal of IPv4 network; When the wan interface of described intelligent gateway receives IPv4 grouping, then translation of being divided into groups by the IPv4 of wan interface converts IPv6 grouping to, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface;
The information transmission of IPv6 network: the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv6 network, this IPv6 grouping is sent to the receiving terminal of IPv4 network by described intelligent gateway wan interface; When described intelligent gateway receives the information of the IPv6 network of wan interface, then the IPv6 of wan interface grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.
Further technical scheme of the present invention is: when judging port type, described intelligent gateway receives the message that described intelligent gateway wan interface transmits, if receive router advertisement message or DHCPv6 notice message, then show that the network of described intelligent gateway wan interface is IPv6 network; If described intelligent gateway receives router DHCPOFFER message, then show that the network of described intelligent gateway wan interface is IPv4 network.
Further technical scheme of the present invention is: if described intelligent gateway receives router advertisement message or DHCPv6 notice message, also receive DHCPOFFER message simultaneously, then described intelligent gateway is considered to use IPv4 or IPv6 according to policy priority.
Further technical scheme of the present invention is: when the IPv6 PHM packet handling module process in described intelligent gateway is delivered in IPv6 grouping, the IPv6 address, destination that IPv6 divides into groups is checked by the route system of described IPv6 PHM packet handling module, if identical with the IPv6 address of oneself, then show that this IPv6 grouping sends to oneself, IPv6 grouping is transferred to application layer program by transport layer; Otherwise this IPv6 grouping needs to forward, the process of IPv6 PHM packet handling module is delivered in this IPv6 grouping.
Further technical scheme of the present invention is: the physical address whether described link layer process module has down hop corresponding according to next-hop IP v4 address lookup address resolution protocol cache, if had, IPv4 grouping is packaged into link layer packet and is sent to down hop; If not, send arp request and resolve, ask successfully then IPv4 grouping to be packaged into link layer packet and be sent to down hop, otherwise abandon this grouping after certain frequent requests failure.
Further technical scheme of the present invention is: described IPv6 PHM packet handling module searches down hop route in the routing table according to this IPv6 grouping destination address, is sent, correctly can be sent to original sender after finding by described link processing module; Can not find route then to abandon this IPv6 and divide into groups.
Technical scheme of the present invention is: build a kind of intelligent networking gateway route system, described intelligent gateway comprises IPv4/IPv6 protocol translation module, IPv4 PHM packet handling module, IPv6 PHM packet handling module, network type judge module, router request message is sent to intelligent gateway successively from wan interface, DHCPv6 request message, DHCP finds request message, described network type judge module judges according to the request message received the network type connecting described intelligent gateway wan interface, the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described network type judge module judges that the network type of described intelligent gateway wan interface is IPv4 network, then described IPv4/IPv6 protocol translation module IPv6 is divided into groups translation be converted to IPv4 grouping, then this IPv4 grouping is sent to described IPv4 PHM packet handling module, described IPv4 PHM packet handling module is sent to the receiving terminal of IPv4 network by described intelligent gateway wan interface, when the wan interface of described intelligent gateway receives IPv4 grouping, the IPv4 grouping translation that then wan interface receives by described IPv4/IPv6 protocol translation module converts IPv6 grouping to, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface, if described network type judge module judges that the network type of described intelligent gateway wan interface is IPv6 network, then IPv6 grouping is sent to described IPv6 PHM packet handling module, described IPv6 PHM packet handling module is directly sent to the receiving terminal of IPv6 network by described intelligent gateway wan interface, when the wan interface of described intelligent gateway receives IPv6 grouping, then the IPv6 of wan interface grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.
Further technical scheme of the present invention is: described intelligent gateway also comprises link layer process module, described IPv4 PHM packet handling module by this IPv4 transmitted in packets to link layer process module, by described link layer process resume module; Described IPv6 PHM packet handling module this IPv6 transmitted in packets to link layer process module, by described link layer process resume module.
Further technical scheme of the present invention is: described intelligent gateway also comprises the enquiry module of inquire address.
Further technical scheme of the present invention is: described intelligent gateway also comprises the memory of storage address information.
Technique effect of the present invention is: build a kind of intelligent networking gateway method for routing and system, sends router request message successively, DHCPv6 request message, DHCP find request message from WAN mouth to intelligent gateway; Described intelligent gateway judges according to the request message received the network type connecting described intelligent gateway wan interface; The LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv4 network, translation of then being divided into groups by IPv6 is converted to IPv4 grouping, then divides into groups this IPv4 to be sent to by described intelligent gateway wan interface the receiving terminal of IPv4 network; When the wan interface of described intelligent gateway receives IPv4 grouping, then translation of being divided into groups by the IPv4 of wan interface converts IPv6 grouping to, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface; The LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv6 network, this IPv6 grouping is sent to the receiving terminal of IPv4 network by described intelligent gateway wan interface; When the wan interface of described intelligent gateway receives IPv6 grouping, then the IPv6 of wan interface grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.Invention intelligent gateway, by Intelligent Recognition network type (IPv4 or IPv6 network), can be suitable for, without the need to human intervention in IPv4 or IPv6 network.The up WAN mouth of intelligent gateway of the present invention supports multiple hardwares access, and descending LAN supports multiple RF, as 802.15.4RF, 315MHz, 433MHz, 470MHz, 868MHz, 915MHz, can conveniently implement at internet of things sensors network.
Accompanying drawing explanation
Fig. 1 is simplified schematic diagram of the present invention.
Fig. 2 is the structural representation of intelligent gateway of the present invention.
Fig. 3 is that network type of the present invention 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.
Embodiment
Below in conjunction with specific embodiment, technical solution of the present invention is further illustrated.
Relational language:
1, WAN:WideAreaNetwork, wide area network.The wan interface of gateway refers to the upstream egress of gateway
2, LAN:LocalAreaNetwork, local area network (LAN).The LAN interface of gateway refers to the downstream egress of gateway
3, ARP:AddressResolutionProtocol, address resolution protocol
4, UDP:UserDatagramProtocol, User Datagram Protoco (UDP)
5, TCP:TransmissionControlProtocol, transmission control protocol
6, ICMP:InternetControlMessageProtocol, Internet Control Message Protocol
7, DS:NeighborDiscovery, neighbourhood finds agreement
8, DHCP:DynamicHostConfigurationProtocol, DHCP
9, RPL:RoutingProtocolforLLN, low-power consumption lossy networks Routing Protocol
10, PPPoE:PointtoPointProtocoloverEthernet, Ethernet carries ppp protocol
As shown in Figure 1 and Figure 2, the specific embodiment of the present invention is: provide a kind of intelligent networking gateway method for routing, intelligent networking gateway comprises wan interface and LAN interface, wan interface is used for multi-upstream access home gateway or enterprise gateway, and particular hardware can be Ethernet, WiFi, bluetooth or 3G/4G/GPRS module respectively.LAN interface applies descending attachment networking IPv6 network, and particular hardware can be various RF respectively, as 802.15.4,315MHz, 433MHz, 470MHz, 868MHz, 915MHz.IPv6 PHM packet handling module 3 comprises the IPv6 protocol stack of complete simple type, particularly general purpose network protocol and route system, specifically comprise the ICP/IP protocol stack of simple type, limited procotol is commonly used in the ICP/IP protocol stack support of simple type, up wan interface does not support PPPOE in order to streamlined software system, though do not support ISP(Internet service provider) network directly accesses, conveniently to implement on the many hardware as limited in RAM and ROM by resource in Internet of Things field.Apparatus of the present invention, descending LAN interface, supports various RF, as 802.15.4,315MHz, 433MHz, 470MHz, 868MHz, 915MHz, achieves various sensor data acquisition and is transmitted by the IP network of standard, realize IP network.
Hardware platform of the invention process is not limit, and comprises the steps:
Send request message: send router request message to intelligent gateway successively from WAN mouth, DHCPv6 request message, DHCP find request message.
In specific embodiment, send successively from wan interface and send router request message, DHCPv6 request message, DHCP find request message, three kinds of message order in no particular order.
Judge network type: described intelligent gateway judges to connect the network type of described intelligent gateway wan interface according to the request message received.
If described intelligent gateway receives router advertisement message (RFC4862) or DHCPv6 notice message, then show that the network of described intelligent gateway wan interface is IPv6 network, (RFC4862) represent router relevant criterion Protocol document numbering, in this standard agreement document, include the appellation of router advertisement message.If described intelligent gateway receives router DHCPOFFER message (RFC2131), then show that the network of described intelligent gateway wan interface is IPv4 network, (RFC2131) represent router relevant criterion Protocol document numbering, in this standard agreement document, include the appellation of router DHCPOFFER message.If below either way have, then described intelligent gateway wan interface is considered to use IPv4 or IPv6 according to policy priority.If the message sent from wan interface is without any respective response, after attempting certain number of times, show that the network of described intelligent gateway wan interface has exception, described intelligent gateway status lamp is to abnormality.
Internet of things node is to the network transmission information of wan interface: the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv4 network, translation of then being divided into groups by IPv6 is converted to IPv4 grouping, then divides into groups this IPv4 to be sent to by described intelligent gateway wan interface the receiving terminal of IPv4 network; If described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv6 network, then IPv6 grouping is directly sent to the receiving terminal of IPv6 network by described intelligent gateway wan interface.
As shown in Figure 4, in specific embodiment, the network of the wan interface of described intelligent gateway is IPv4 network, then the IPv6 grouping of coming from Internet of things node needs to translate into IPv4 grouping through IPv4/IPv6 protocol translation module 1, is sent to receiving terminal by IPv4 PHM packet handling module 2.Need when receiving terminal replys IPv4 grouping to translate into IPv6 grouping through IPv4/IPv6 protocol translation module 1, be sent to described Internet of things node by IPv6 PHM packet handling module 3.
IPv4 PHM packet handling module 2 runs dhcp client to the WAN configuration of IP v4 address of intelligent gateway.The LAN interface of described intelligent gateway is configured a static IP v6 address or is produced by IPv6 autoconf.IPv6 PHM packet handling module 3 is sent to when the LAN mouth of intelligent gateway receives an IPv6 grouping.The route system of IPv6 PHM packet handling module 3 checks the IPv6 address, destination of IPv6 grouping, if identical with the LANIPv6 address of oneself, then show that this IPv6 grouping sends to oneself, IPv6 grouping is transferred to application layer program by transport layer; Otherwise this IPv6 grouping needs to forward, IPv2 PHM packet handling module 2 is delivered in this IPv6 grouping.
IPv4 PHM packet handling module 2 calls IPv4/IPv6 protocol translation module 1 according to NAPT-PT(RFC2766) carry out stateless translate into IPv4 grouping, (RFC2766) represent router relevant criterion Protocol document numbering, in this standard agreement document, include the appellation of router NAPT-PT., IPv4 PHM packet handling module 2 this IPv4 transmitted in packets to link layer process module 4.
Link layer process module 4 cushions the physical address whether having down hop corresponding according to next-hop IP v4 address lookup ARP, if had, IPv4 grouping is packaged into link layer packet and is sent to down hop; If not, send ARP request analysis, ask successfully then IPv4 grouping to be packaged into link layer packet and be sent to down hop, otherwise abandon this grouping after certain frequent requests failure.
When Internet of Things end receive this IPv4 divide into groups after return time, send to described intelligent gateway by home gateway or enterprise gateway.Peel link layer related data after the link processing module of described intelligent gateway receives data off and obtain IPv4 grouping, deliver to IPv4 PHM packet handling module 2.IPv4/IPv6 protocol translation module 1 is according to NAPT-PT(RFC2766) according to five-tuple coupling, packet is considered to be subordinated to this session connection, correctly translates into IPv6 grouping, gives IPv6 PHM packet handling module 3 this IPv6 grouping.IPv6 PHM packet handling module 3 route system searches down hop route in the routing table according to this IPv6 grouping destination address, is sent, correctly can be sent to original sender after finding by link processing module; Can not find route then to abandon this IPv6 and divide into groups;
The network of wan interface transmits information to Internet of things node: when the wan interface of described intelligent gateway receives IPv4 grouping, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv4 network, the IPv4 grouping translation then received by wan interface converts IPv6 grouping to, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface; If described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv6 network, then this IPv6 grouping is directly sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.
As shown in Figure 5, embodiment is as follows:
When the network of the wan interface of described intelligent gateway is IPv6 network, then the IPv6 come from Internet of things node divides into groups without the need to translation, by IPv6 PHM packet handling module 3 by sending IPv6 grouping receiving terminal after route system process.When receiving terminal replys IPv6 grouping, IPv6 grouping is without the need to translation, by IPv6 PHM packet handling module 3 by sending described Internet of things node after route system process.Specifically be implemented as follows: IPv6 PHM packet handling module 3 runs DHCPv6 client or IPv6 Neighbor Discovery Protocol (RFC4861) to the WAN configuration of IP v6 address of described intelligent gateway, (RFC4861) represent router relevant criterion Protocol document numbering, in this standard agreement document, include the appellation of IPv6 Neighbor Discovery Protocol.The LAN interface of described intelligent gateway is configured a static IP v6 address or is produced by IPv6 autoconf.IPv6 PHM packet handling module 3 is sent to when the LAN interface of described intelligent gateway receives an IPv6 grouping.IPv6 PHM packet handling module 3 checks the IPv6 address, destination that IPv6 divides into groups, if identical with the LAN interface IPv6 address of oneself, then show this IPv6 grouping send to oneself, then IPv6 transmitted in packets to application layer program; Otherwise this IPv6 grouping needs to be forwarded by wan interface, the destination IPv6 address lookup routing table next-hop route that the route system of IPv6 PHM packet handling module 3 divides into groups according to IPv6.
If find down hop route, then give link processing module IPv6 grouping, be sent to down hop by link processing module; If can not find down hop route, then abandon this IPv6 and divide into groups.When far-end receive this IPv6 divide into groups after return time, send to described intelligent gateway by home gateway or enterprise gateway.Peel link layer related data after the link processing module of described intelligent gateway receives data off and obtain IPv6 grouping, deliver to IPv6 PHM packet handling module 3.IPv6 PHM packet handling module 3 repeats above-mentioned steps until information transmission completes.
As shown in Figure 2, the specific embodiment of the present invention is: build a kind of intelligent networking gateway route system, described intelligent gateway comprises IPv4/IPv6 protocol translation module 1, IPv4 PHM packet handling module 2, IPv6 PHM packet handling module 3, network type judge module 5, router request message is sent to intelligent gateway successively from WAN mouth, DHCPv6 request message, DHCP finds request message, described network type judge module 5 judges according to the request message received the network type connecting described intelligent gateway wan interface, the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described network type judge module 5 judges that the network type of described intelligent gateway wan interface is IPv4 network, then described IPv4/IPv6 protocol translation module 1 IPv6 is divided into groups translation be converted to IPv4 grouping, then this IPv4 grouping is sent to described IPv4 PHM packet handling module 2, described IPv4 PHM packet handling module 2 is sent to the receiving terminal of IPv4 network by described intelligent gateway wan interface, when the wan interface of described intelligent gateway receives IPv4 grouping, the IPv4 grouping translation that then wan interface receives by described IPv4/IPv6 protocol translation module 1 converts IPv6 grouping to, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface, if described network type judge module 5 judges that the network type of described intelligent gateway wan interface is IPv6 network, then IPv6 grouping is sent to described IPv6 PHM packet handling module 3, described IPv6 PHM packet handling module 3 is directly sent to the receiving terminal of IPv6 network by described intelligent gateway wan interface, when the wan interface of described intelligent gateway receives IPv6 grouping, then the IPv6 of wan interface grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.
In specific embodiment, send successively from wan interface and send router request message, DHCPv6 request message, DHCP find request message, three kinds of message order in no particular order.
Judge network type: described intelligent gateway judges to connect the network type of described intelligent gateway wan interface according to the request message received.
If described intelligent gateway receives by device announcement message or DHCPv6 notice message, then show that the network of described intelligent gateway wan interface is IPv6 network.If described intelligent gateway receives DHCPOFFER message, then show that the network of described intelligent gateway wan interface is IPv4 network.If below either way have, then described intelligent gateway wan interface is considered to use IPv4 or IPv6 according to policy priority.If the message sent from wan interface is without any respective response, after attempting certain number of times, show that the network of described intelligent gateway wan interface has exception, described intelligent gateway status lamp is to abnormality.
Internet of things node is to the network transmission information of wan interface: the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv4 network, translation of then being divided into groups by IPv6 is converted to IPv4 grouping, then divides into groups this IPv4 to be sent to by described intelligent gateway wan interface the receiving terminal of IPv4 network; If described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv6 network, then IPv6 grouping is directly sent to the receiving terminal of IPv6 network by described intelligent gateway wan interface.
As shown in Figure 4, in specific embodiment, the network of the wan interface of described intelligent gateway is IPv4 network, then the IPv6 grouping of coming from Internet of things node needs to translate into IPv4 grouping through IPv4/IPv6 protocol translation module 1, is sent to receiving terminal by IPv4 PHM packet handling module 2.Need when receiving terminal replys IPv4 grouping to translate into IPv6 grouping through IPv4/IPv6 protocol translation module 1, be sent to described Internet of things node by IPv6 PHM packet handling module 3.
IPv4 PHM packet handling module 2 runs dhcp client to the WAN configuration of IP v4 address of intelligent gateway.The LAN interface of described intelligent gateway is configured a static IP v6 address or is produced by IPv6 autoconf.IPv6 PHM packet handling module 3 is sent to when the LAN mouth of intelligent gateway receives an IPv6 grouping.The route system of IPv6 PHM packet handling module 3 checks the IPv6 address, destination of IPv6 grouping, if identical with the LANIPv6 address of oneself, then show that this IPv6 grouping sends to oneself, IPv6 grouping is transferred to application layer program by transport layer; Otherwise this IPv6 grouping needs to forward, IPv2 PHM packet handling module 2 is delivered in this IPv6 grouping.
IPv4 PHM packet handling module 2 inquires about down hop in the routing table according to destination address, if do not find route, abandon this grouping, otherwise call IPv4/IPv6 protocol translation module 1 according to NAPT-PT(RFC2766) carry out stateless translate into IPv4 grouping, IPv4 PHM packet handling module 2 this IPv4 transmitted in packets to link layer process module 4.
Link layer process module 4 cushions the physical address whether having down hop corresponding according to next-hop IP v4 address lookup ARP, if had, IPv4 grouping is packaged into link layer packet and is sent to down hop; If not, send arp request and resolve, ask successfully then IPv4 grouping to be packaged into link layer packet and be sent to down hop, otherwise abandon this grouping after certain frequent requests failure.
When Internet of Things end receive this IPv4 divide into groups after return time, send to described intelligent gateway by home gateway or enterprise gateway.Peel link layer related data after the link processing module of described intelligent gateway receives data off and obtain IPv4 grouping, deliver to IPv4 PHM packet handling module 2.IPv4/IPv6 protocol translation module 1 is according to NAPT-PT(RFC2766) according to five-tuple coupling, packet is considered to be subordinated to this session connection, correctly translates into IPv6 grouping, gives IPv6 PHM packet handling module 3 this IPv6 grouping.IPv6 PHM packet handling module 3 route system searches down hop route in the routing table according to this IPv6 grouping destination address, is sent, correctly can be sent to original sender after finding by link processing module; Can not find route then to abandon this IPv6 and divide into groups;
The network of wan interface transmits information to Internet of things node: when the wan interface of described intelligent gateway receives IP grouping information, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv4 network, then convert the IPv4 of wan interface grouping translation to IPv6 grouping, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface; If described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv6 network, then this IPv6 grouping is directly sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.
As shown in Figure 5, embodiment is as follows:
When the network of the wan interface of described intelligent gateway is IPv6 network, then the IPv6 come from Internet of things node divides into groups without the need to translation, by IPv6 PHM packet handling module 3 by sending IPv6 grouping receiving terminal after route system process.When receiving terminal replys IPv6 grouping, IPv6 grouping is without the need to translation, by IPv6 PHM packet handling module 3 by sending described Internet of things node after route system process.Specifically be implemented as follows: IPv6 PHM packet handling module 3 runs DHCPv6 client or IPv6 Neighbor Discovery Protocol (RFC4861) to the WAN configuration of IP v6 address of described intelligent gateway.The LAN interface of described intelligent gateway is configured a static IP v6 address or is produced by IPv6 autoconf.IPv6 PHM packet handling module 3 is sent to when the LAN interface of described intelligent gateway receives an IPv6 grouping.IPv6 PHM packet handling module 3 checks the IPv6 address, destination that IPv6 divides into groups, if identical with the LAN interface IPv6 address of oneself, then show this IPv6 grouping send to oneself, then IPv6 transmitted in packets to application layer program; Otherwise this IPv6 grouping needs to be forwarded by wan interface, the destination IPv6 address lookup routing table next-hop route that the route system of IPv6 PHM packet handling module 3 divides into groups according to IPv6.
If find down hop route, then give link processing module IPv6 grouping, be sent to down hop by link processing module; If can not find down hop route, then abandon this IPv6 and divide into groups.When far-end receive this IPv6 divide into groups after return time, send to described intelligent gateway by home gateway or enterprise gateway.Peel link layer related data after the link processing module of described intelligent gateway receives data off and obtain IPv6 grouping, deliver to IPv6 PHM packet handling module 3.IPv6 PHM packet handling module 3 repeats above-mentioned steps until information transmission completes.
Technique effect of the present invention is: a kind of intelligent networking gateway method for routing of the present invention and system, patent of the present invention adopts IPv4/IPv6 dual stack to improve, simplify network protocol stack, and support conventional limited agreement, convenient enforcement is on the many hardware as limited in RAM and ROM by resource in Internet of Things field.Invention intelligent gateway, by Intelligent Recognition network type (IPv4 or IPv6 network), can be suitable for, without the need to human intervention in IPv4 or IPv6 network.The up WAN mouth of intelligent gateway of the present invention supports multiple hardwares access, and descending LAN supports multiple RF, as 802.15.4RF, 315MHz, 433MHz, 470MHz, 868MHz, 915MHz, can conveniently implement at internet of things sensors network.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.

Claims (10)

1. an intelligent networking gateway method for routing, comprises the steps:
Send request message: send router request message to intelligent gateway successively from WAN mouth, DHCPv6 request message, DHCP find request message;
Judge network type: described intelligent gateway judges to connect the network type of described intelligent gateway wan interface according to the request message received;
The information transmission of IPv4 network: the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv4 network, translation of then being divided into groups by IPv6 is converted to IPv4 grouping, then divides into groups this IPv4 to be sent to by described intelligent gateway wan interface the receiving terminal of IPv4 network; When the wan interface of described intelligent gateway receives IPv4 grouping, then translation of being divided into groups by the IPv4 of wan interface converts IPv6 grouping to, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface;
The information transmission of IPv6 network: the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described intelligent gateway judges that the network type of described intelligent gateway wan interface is IPv6 network, this IPv6 grouping is sent to the receiving terminal of IPv4 network by described intelligent gateway wan interface; When the wan interface of described intelligent gateway receives IPv6 grouping, then the IPv6 of wan interface grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.
2. intelligent networking gateway method for routing according to claim 1, it is characterized in that, when judging port type, described intelligent gateway receives the message that described intelligent gateway wan interface transmits, if receiving router announcement message or DHCPv6 notice message, then show that the network of described intelligent gateway wan interface is IPv6 network; If described intelligent gateway receives router DHCPOFFER message, then show that the network of described intelligent gateway wan interface is IPv4 network.
3. intelligent networking gateway method for routing according to claim 2, it is characterized in that, if described intelligent gateway receives router advertisement message or DHCPv6 notice message, also receive DHCPOFFER message, then described intelligent gateway is considered to use IPv4 or IPv6 according to policy priority simultaneously.
4. intelligent networking gateway method for routing according to claim 1, it is characterized in that, when the IPv6 PHM packet handling module process in described intelligent gateway is delivered in IPv6 grouping, the IPv6 address, destination that IPv6 divides into groups is checked by the route system of described IPv6 PHM packet handling module, if identical with the IPv6 address of oneself, then show that this IPv6 grouping sends to oneself, IPv6 grouping is transferred to application layer program by transport layer; Otherwise this IPv6 grouping needs to forward, the process of IPv6 PHM packet handling module is delivered in this IPv6 grouping.
5. intelligent networking gateway method for routing according to claim 1, it is characterized in that, described link layer process module is according to next-hop IP v4 address lookup address resolution protocol cache, whether there is the physical address that down hop is corresponding, if had, IPv4 grouping is packaged into link layer packet and is sent to down hop; If not, send ARP request analysis, ask successfully then IPv4 grouping to be packaged into link layer packet and be sent to down hop, otherwise abandon this grouping after certain frequent requests failure.
6. intelligent networking gateway method for routing according to claim 1, it is characterized in that, described IPv6 PHM packet handling module searches down hop route in the routing table according to this IPv6 grouping destination address, is sent, correctly can be sent to original sender after finding by described link processing module; Can not find route then to abandon this IPv6 and divide into groups.
7. an intelligent networking gateway route system, it is characterized in that, described intelligent gateway comprises IPv4/IPv6 protocol translation module, IPv4 PHM packet handling module, IPv6 PHM packet handling module, network type judge module, router request message is sent to intelligent gateway successively from WAN mouth, DHCPv6 request message, DHCP finds request message, described network type judge module judges according to the request message received the network type connecting described intelligent gateway wan interface, the LAN interface of described intelligent gateway receives the IPv6 grouping of Internet of things node end, if described network type judge module judges that the network type of described intelligent gateway wan interface is IPv4 network, then described IPv4/IPv6 protocol translation module IPv6 is divided into groups translation be converted to IPv4 grouping, then this IPv4 grouping is sent to described IPv4 PHM packet handling module, described IPv4 PHM packet handling module is sent to the receiving terminal of IPv4 network by described intelligent gateway wan interface, when the wan interface of described intelligent gateway receives IPv6 grouping, the IPv4 grouping translation that then wan interface receives by described IPv4/IPv6 protocol translation module converts IPv6 grouping to, then this IPv6 grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface, if described network type judge module judges that the network type of described intelligent gateway wan interface is IPv6 network, then IPv6 grouping is sent to described IPv6 PHM packet handling module, described IPv6 PHM packet handling module is directly sent to the receiving terminal of IPv6 network by described intelligent gateway wan interface, when the wan interface of described intelligent gateway receives IPv6 grouping, then the IPv6 of wan interface grouping is sent to the Internet of things node of IPv6 network by described intelligent gateway LAN interface.
8. intelligent networking gateway route system according to claim 7, it is characterized in that, described intelligent gateway also comprises link layer process module, described IPv4 PHM packet handling module by this IPv4 transmitted in packets to link layer process module, by described link layer process resume module; Described IPv6 PHM packet handling module this IPv6 transmitted in packets to link layer process module, by described link layer process resume module.
9. intelligent networking gateway route system according to claim 7, it is characterized in that, described intelligent gateway also comprises the enquiry module of inquire address.
10. intelligent networking gateway route system according to claim 7, it is characterized in that, described intelligent gateway also comprises the memory of storage 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 true CN105391639A (en) 2016-03-09
CN105391639B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109076431A (en) * 2016-04-19 2018-12-21 三菱电机株式会社 Wireless communication device and wireless communications method
CN109348522A (en) * 2018-10-22 2019-02-15 深圳市共进电子股份有限公司 Networking method, device, equipment and readable storage medium storing program for executing based on TR181
CN110073687A (en) * 2016-12-22 2019-07-30 张恭维 Security routing system for IoT equipment
CN110138771A (en) * 2019-05-13 2019-08-16 广东信尚安物联科技有限公司 Communication means, apparatus and system based on active RFID 433M agreement
CN110392127A (en) * 2019-08-15 2019-10-29 中盈优创资讯科技有限公司 Address space recognition methods and device
CN110768887A (en) * 2019-09-20 2020-02-07 杭州海兴电力科技股份有限公司 IPv 6-based power gateway system and power data uploading/issuing method
CN110971701A (en) * 2019-12-10 2020-04-07 广州番禺职业技术学院 Internet of things communication method and device
CN111247774A (en) * 2017-08-30 2020-06-05 思杰系统有限公司 Advanced network analysis
CN111355704A (en) * 2020-01-09 2020-06-30 重庆高开清芯智联网络科技有限公司 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
W.RICHARD STEVENS: "《TCP/IP详解卷1:协议第1版》", 30 April 2000 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109076431A (en) * 2016-04-19 2018-12-21 三菱电机株式会社 Wireless communication device and wireless communications method
CN109076431B (en) * 2016-04-19 2022-03-11 三菱电机株式会社 Wireless communication apparatus and wireless communication method
CN110073687A (en) * 2016-12-22 2019-07-30 张恭维 Security routing system for IoT equipment
US11792082B2 (en) 2017-08-30 2023-10-17 Citrix Systems, Inc. Inferring radio type from clustering algorithms
CN111247774B (en) * 2017-08-30 2022-10-14 思杰系统有限公司 Advanced network analysis
CN111247774A (en) * 2017-08-30 2020-06-05 思杰系统有限公司 Advanced network analysis
CN109348522B (en) * 2018-10-22 2021-08-03 深圳市共进电子股份有限公司 Networking method, device and equipment based on TR181 and readable storage medium
CN109348522A (en) * 2018-10-22 2019-02-15 深圳市共进电子股份有限公司 Networking method, device, equipment and readable storage medium storing program for executing based on TR181
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
CN110392127A (en) * 2019-08-15 2019-10-29 中盈优创资讯科技有限公司 Address space recognition methods and device
CN110768887A (en) * 2019-09-20 2020-02-07 杭州海兴电力科技股份有限公司 IPv 6-based power gateway system and power data uploading/issuing method
CN110971701A (en) * 2019-12-10 2020-04-07 广州番禺职业技术学院 Internet of things communication method and device
CN111355704A (en) * 2020-01-09 2020-06-30 重庆高开清芯智联网络科技有限公司 IPV6 network system based on bluetooth low-power consumption
CN111355704B (en) * 2020-01-09 2022-04-29 重庆高开清芯智联网络科技有限公司 IPV6 network system based on bluetooth low-power consumption

Also Published As

Publication number Publication date
CN105391639B (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN105391639A (en) Internet-of-things intelligent gateway routing method and Internet-of-things intelligent gateway routing system
US9814063B2 (en) Pico-RRU-based network implementation for facilitating 6LOWPAN data access
US9819769B2 (en) Active antenna element (AAE) implementation for facilitating 6LoWPAN data access
Ayoub et al. Towards ip over lpwans technologies: Lorawan, dash7, nb-iot
US20090161581A1 (en) ADDRESS AUTOCONFIGURATION METHOD AND SYSTEM FOR IPv6-BASED LOW-POWER WIRELESS PERSONAL AREA NETWORK
CN103200283B (en) The implementation method of many relay wireless communications system and this Systems Air Interface IPization
KR20170017865A (en) Network range extender with multi-rf radio support for plurality of network interfaces
CN108092830B (en) Method for applying TCP/IP protocol in Mesh network
CN104104742A (en) User plane traffic handling using network address translation and request redirection
US9497116B2 (en) Baseband unit (BBU) implementation for facilitating 6LoWPAN data access
CN103812845A (en) Service discovery method and device based on 6LoWPAN (IPv6 overLow-Power Wireless Personal Area Networks)
CN108809962A (en) A kind of relay system of compatible LoRaWAN agreements
WO2011119019A1 (en) Method of communicating signals in 6lowpan network to ipv6 network
CN102892215A (en) Wireless heterogeneous network and communication method for same
CN109428949A (en) A kind of method and apparatus that ARP proxy is realized based on SDN
KR20040048143A (en) A location management server and ethernet based wireless local area network system and embodiment method with location management server
CN109361558B (en) Distributed wireless ad hoc network management method based on grid network equipment proxy node
CN105898892A (en) Method of using wifi probe request and response packet to realize rapid communication
CN104081740B (en) Method and system to the wireless network bag of the second layer network for reducing concentration
Pediredla et al. A 6LoWPAN implementation for memory constrained and power efficient wireless sensor nodes
US20090279521A1 (en) Base station device, base station management device and base station management system
CN106059885B (en) Processing method and system of the wireless controller to CAPWAP message
CN107332752A (en) Long chain wireless sensing network system based on 6LoWPAN and attaching method thereof
KR100870655B1 (en) Gateway and method for transforming a packet using the same
CN103338479B (en) A kind of communication means of short-distance wireless Internet of Things

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