CN103873369A - Gateway and method for supporting interaction of heterogeneous network - Google Patents

Gateway and method for supporting interaction of heterogeneous network Download PDF

Info

Publication number
CN103873369A
CN103873369A CN201210551906.3A CN201210551906A CN103873369A CN 103873369 A CN103873369 A CN 103873369A CN 201210551906 A CN201210551906 A CN 201210551906A CN 103873369 A CN103873369 A CN 103873369A
Authority
CN
China
Prior art keywords
data
unit
gateway
subnet
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
CN201210551906.3A
Other languages
Chinese (zh)
Other versions
CN103873369B (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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201210551906.3A priority Critical patent/CN103873369B/en
Publication of CN103873369A publication Critical patent/CN103873369A/en
Application granted granted Critical
Publication of CN103873369B publication Critical patent/CN103873369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a gateway and a method for supporting interaction of a heterogeneous network. The gateway comprises a host and an intelligent switch, wherein the host comprises a sub-network monitoring unit, an internet interaction unit, an intelligent forwarding strategy unit, a first forwarding table unit and a first interface unit, and the intelligent switch comprises a receiving unit, a sending unit, an input selection unit, a data analysis unit, an output port inquiry unit, a second forwarding table unit and a second interface unit. The method comprises the following steps of when the intelligent switch receives data, analyzing the data, and extracting data types, a target IP (internet protocol) and other information; according to the specific data type and the target IP, inquiring the corresponding data forwarding output port of a second forwarding table, and sending to the output port; when the host receives the data, forwarding the data to the corresponding data processing unit to be processed according to the data source port. The gateway and the method can flexibly obtain and forward the data of the internet and the heterogeneous sub-network.

Description

A kind of gateway and method of supporting that heterogeneous network is mutual
Technical field
The present invention relates to cordless communication network and internet technique field, relate in particular a kind of gateway and method of supporting that heterogeneous network is mutual.
Background technology
Sea end network refers to the physical message sensing network take wireless sensor network as representative, conventionally adopts wireless mode, link-quality and network topology frequent variations, and host-host protocol is various, and node resource is limited; Cloud network refers to the computer interconnected network take Internet as representative, conventionally adopts the wired modes such as optical fiber, and link-quality is stable, and agreement adopts single ICP/IP protocol, and resource is relatively abundant.Gateway, as sea end server device, is responsible for the end information gathering of network of whole sea and the administration configuration of network; It is also the interface of sea end network insertion cloud network simultaneously, is responsible for data and the management information transmission of Hai Duan and cloud network, is the interconnected key point of extra large cloud.
WeiLai Technology is shifted to the direction of isomery multiprotocol network access by the wireless sense network of original single-protocol the demand of gateway.In the same monitoring environment of following Sensor Network, may there is multiple wireless, wired sensing network simultaneously.These networks may be applied different communication protocol, as Zigbee, WIA, Wifi, but all need to be undertaken interconnected by same gateway and internet.Therefore gateway must possess the ability of simultaneously processing communication information between multi-protocols heterogeneous network.Prior art adopts the form of embedded system, by carrying multiple interfaces and protocol specification, realizes the conversion of bus and agreement between heterogeneous network.But on this kind of mode hardware, need to lay multiple interfaces change-over circuit, on software, also will realize various protocols stack, realize difficulty for the embedded device of resource-constrained, and be difficult to guarantee real-time and the reliability of processing.Also some existing method and system is that all kinds gateway is connected on switch, host computer is realized and being connected of multiprotocol network by switch, although this kind of mode can solve the Heterogeneity of multiprotocol network, but switch is not supported secondary development, be difficult to realize more senior heterogeneous network interactive function, and in the situation that network size is huge, the bandwidth of transmission and real-time are also difficult to guarantee.Therefore those skilled in the art's technical problem in the urgent need to address is, realize a kind ofly can under extensive, heterogeneous network environment, carry out at a high speed, gateway and the method for the network interaction function of intelligence.
Summary of the invention
In view of this, the invention provides a kind of gateway and method of supporting that heterogeneous network is mutual, can support the mutual of heterogeneous network, and can, according to the forward-path of dynamic, the intelligent distribute data of network request, realize high-speed communication between heterogeneous network.
For achieving the above object, the invention provides a kind of gateway of supporting that heterogeneous network is mutual, comprising:
Main frame, for entirety control and the data processing of described gateway, according to the data-interface receiving, calls corresponding data processing unit and processes, and safeguards that first transmits the second mapping of transmitting;
Intelligence interchanger, the data that each subnet closes and the Internet end sends that connect for receiving described gateway, and the data that receive are resolved, carry out the forwarding of described data according to described the second path of transmitting.
Described main frame, comprises that data processing unit, first transmits unit and first interface unit, and described data processing unit comprises subnet monitoring unit, the Internet interactive unit and intelligent decision-making unit;
Subnet monitoring unit, mutual for described gateway and local user, closes reporting information by subnet and is shown to local user with visual pattern, or local user's instruction is issued to and specifies subnet to close;
The Internet interactive unit, mutual for described gateway and Internet user, offers Internet user by the information of described gateway, or the inquiry of Internet user to all data of described gateway;
Intelligence decision-making unit, carry out the distribution of exchanging policy for interaction data log-on message in the net reporting according to described subnet, store described allocation result into described first and transmit, transmit during described the second dynamic route of transmitting of being mapped in described intelligent interchanger transmits described first;
First transmits unit, for storing the forward-path of described intelligent decision-making unit for interaction data in described net;
First interface unit, for interface and the data channel of described data processing unit and described intelligent interchanger are provided, the each described data processing unit that is described main frame provides 1 special described data channel, the data that a described data processing unit processing said data passage is sent; Interactive interface and the passage of described main frame and described intelligent interchanger internal memory are provided.
Described intelligent decision-making unit, comprising:
Distributing data registering unit, closes the log-on message of the distributing data reporting, and the log-on message of the described distributing data having extracted is stored in distributing data registration table for extracting described subnet;
Subscription data registering unit, closes the log-on message of the subscription data reporting, and the log-on message of the described subscription data having extracted is stored in subscription data registration table for extracting described subnet;
Forwarding data matching unit, according to information in described distributing data registration table and described subscription data registration table, find out the described interaction data routing information that described distributing data and described subscription data match, and be stored in described first according to described the first data format of transmitting unit and transmit in unit;
Transmit map unit, for first in main frame transmitted to content, during the second dynamic route of transmitting that sends to intelligent interchanger is transmitted;
Distributing data ID(PubID) and subscribing interface address (SubIP) wherein, described the first content of transmitting unit comprises:; The content of described distributing data registration table comprises: described distributing data ID(PubID) and issuing interface address (PubIP); The content of described subscription data registration table comprises: subscription data ID(SubID) and described subscribing interface address (SubIP).
Described intelligent interchanger, comprising:
Receiving element, for receiving, described subnet closes and described main frame first interface unit sends to the data of described intelligent interchanger, and is buffered in the correspondence reception buffer queue of interface;
Transmitting element, sends to described subnet to close and the corresponding ports of the first interface unit of described main frame for correspondence being sent to the data of buffer queue;
Receive selected cell, for selecting a queue from described all reception buffer queues, and the data in selected queue are sent to Data Analysis unit;
Data Analysis unit, for carrying out Context resolution to the data that receive.According to the described message format that receives data, extract the essential information of inquiry, send to output port query unit; Described inquiry must information comprise: data source address, destination address, type identification and distributing data ID(PubID); .
Output port query unit, for the essential information of described inquiry of extracting according to described Data Analysis unit, inquires about described second and transmits, and finds the output port of described data, and sends in corresponding transmission buffer queue;
Second transmits unit, for storing the forward-path through all data of described intelligent interchanger, wherein, described forward-path comprises that described first transmits the dynamic forwarding route table and the fixing forwarding route table that are mapped to interaction data in the described second described net of transmitting;
The second interface unit, closes for connecting described intelligent interchanger and subnet.Comprise multiple sub-interfaces unit, provide 1 independently port for each described subnet closes, make described intelligent interchanger can connect multiple described subnets simultaneously and close.
Described second transmits unit, comprising:
Fixing forwarding route table, for storing fixing forward-path; The content of described fixing forwarding route table comprises: data type, and object IP, output port:
Dynamically forwarding route table, for storing the forward-path of dynamic change, described first transmit in described the second mapping of transmitting, with first to transmit content identical.
A kind of exchange method, comprising:
In the time that intelligent interchanger receives data, described data are resolved, extract data type, object IP;
According to the particular type of described data and object IP, inquiry second transmit described in the correspondence of data forward output port, and send to described output port;
When host receiving data, send data to corresponding data processing unit according to Data Source port and process.
Described in the time that intelligent interchanger receives data, described data are resolved, extract the information such as data type, object IP, comprising:
In the time receiving data, first by the data buffer storage receiving in the buffer queue of receiving interface, wait for other cell processing;
To receive buffer queue configuration preference level, according to the priority of queue, in described reception buffer queue, choose the data processing in the queue that priority is high;
According to the communications protocol form of subnet pass and described gateway, analyze packet content, extract source address, destination address, the data type mark of packet, next step foundation judging as method;
If the data type of described packet is interaction data in described net, also need to extract the ID(PubID of interaction data in described net).
Described according to the particular type of described data and object IP, the correspondence that described data are transmitted in inquiry second forwards output port, and sends to described output port, comprising:
Inquire about described second while transmitting, if interaction data in described net, inquire about dynamic forwarding route table, according to the ID(PubID of interaction data in the described net extracting), search corresponding object IP, according to described destination address, search the described forwarding output port in described fixing forwarding route table again; If described first interface unit, to the data of described data processing unit, according to the particular type of described data, is inquired about the correspondence forwarding output port of data type described in the second fixing forwarding route table of transmitting, and is sent to described output port; If be sent to the data that each subnet closes, according to the object IP of described data, described in inquiry the second fixing forwarding route table of transmitting, the correspondence of object IP forwards output port, and sends to described output port.
Described main frame sends data to corresponding data processing unit according to FPDP source and processes, and comprising:
Described FPDP source is corresponding one by one with described data processing unit, and the data that corresponding ports receives will send to corresponding data processing unit:
If log-on data port, main frame sends data to intelligent exchanging policy unit, record log-on message and mate, generating first and transmit, and transmit by described first the described second described dynamic forwarding route table of transmitting being mapped in described intelligent interchanger;
If reported data port, main frame sends data to subnet monitoring unit, processes;
If the Internet interaction data port, main frame sends data to internet interactive unit, processes.
Described if log-on data port, main frame sends data to intelligent exchanging policy unit, records log-on message and mates, and generates first and transmits, and comprising:
In the time that the corresponding data processing unit of main frame receives log-on data, judge the type of described log-on data, if issue log-on data is extracted mark PubID and the source address PubIP of described issue log-on data, and be kept in described distributing data registration table; If subscription registration data are extracted mark SubID, the described distributing data mark PubID that will subscribe to of described subscription data and subscribe to address SubIP, and being kept in described subscription data registration table; According to described distributing data mark, PubID inquires about described distributing data registration table, if there is record, generated data coupling entry, is recorded in described first by described distributing data mark PubID and described subscription address SubIP and transmits; Described log-on data comprises, issues log-on data, subscription registration data.
Known via above-mentioned technical scheme, compared with prior art, the present invention openly provides a kind of gateway system and method for supporting that heterogeneous network is mutual, design and can connect the gateway that existing isomery subnet closes, form two-stage gateway system, gateway is made up of main frame and intelligent interchanger, and main frame is for control and the decision-making of whole gateway system; Connect the intelligent interchanger of two-stage gateway, to interface and mutual resource at a high speed is above provided, can coordinate with main frame dynamic forwarding capability, under multipath concurrence interface is provided, can the while put with each subnet the news that work into.
Gateway system disclosed by the invention is transferred to the main control device of system on the PC or server that function is more powerful by embedded device, has enriched to greatest extent the resource of master control equipment.
Be designed to two-stage gateway system, the upper strata of gateway in gateway system, can evade the Heterogeneity that each subnet closes.As long as each subnet closes and gateway has unified interface (as Ethernet interface), just can interconnect.Gateway is only with realizing a kind of communications protocol, and needn't be concerned about that all-ones subnet closes the concrete protocol specification of lower network, realized the isomerism isolation of heterogeneous network.
Become on each subnet closes in the gateway of top layer, the center that information converges, can conveniently obtain sub-gateway information, owing to being connected to the sub-gateway device of same gateway, often there is spatial correlation, can utilize the space-time relationship between subnet pass to carry out collective analysis, decision-making.
The interface of gateway is designed to separately intelligent interchanger, and intelligent interchanger can be developed by programmable logic controller (PLC), customizes design in conjunction with concrete demand.Due to the parallel processing form of FPGA, the transfer of data feature that adapted to isomerous network high speed is concurrent, the FPGA (Field Programmable Gate Array) of FPGA, also can meet the demand for control of main frame to firmware interface simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below.Apparently, the accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skills, is not paying under the prerequisite of creative work, and other accompanying drawing can also be provided according to the accompanying drawing providing.
Fig. 1 is the structural representation of an embodiment of integral gateway system in the present invention;
Fig. 2 is the structural representation of an a kind of embodiment who supports the mutual gateway of heterogeneous network of the present invention;
Fig. 3 is the functional unit schematic diagram of a kind of another embodiment that supports the mutual gateway of heterogeneous network of the present invention;
Fig. 4 is a kind of schematic flow sheet of supporting an embodiment of the mutual method of heterogeneous network of the present invention;
Fig. 5 is that a kind of data of supporting an embodiment of the mutual method of heterogeneous network of the present invention send the schematic diagram flowing to.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In the present invention, in order distinguishing with common gateway of the prior art, gateway unification of the present invention to be called to gateway, common gateway of the prior art to be called to subnet and to close, the network that subnet closes institute's management and control is called sub-network.
Referring to Fig. 1, public affairs show the structural representation of an embodiment of integral gateway system of the present invention, and integral gateway system comprises, network child node and the internet of gateway, subnet pass and the management and control of subnet pass institute thereof.Traditional gateway closes as the subnet of gateway, and gateway, as father's gateway, forms the gateway system of a two-stage.Each subnet closes conventionally in same monitoring environment, but sub-network may be applied different communication protocol, as Zigbee, WIA, Wifi, it is a heterogeneous network system, between each sub-network, can not carry out network interaction, need be undertaken between sub-network and sub-network and Internet user, local user mutual by gateway.
Wherein, gateway, as main contents of the present invention, will elaborate.
Gateway comprises: main computer unit 101 and intelligent exchanger unit 102.
Main computer unit 101, for entirety control and the data processing of gateway system, according to the interface that receives data, calls corresponding data processing unit and processes, and safeguards that first transmits the second renewal of transmitting.Wherein, data processing unit comprises subnet monitoring unit, the Internet interactive unit, intelligent decision-making unit.
It should be noted that, data processing unit can also add as required and change, and is not limited only to the several processing units in the present invention.
Wherein, main frame can enrich the PC of system resource or server as carrier by having, and can support more complicated calculating and operational administrative.
Intelligence exchanger unit 102, for receiving the data that each subnet closes and the Internet end sends, and resolves the data that receive, and carries out the forwarding of data according to the second path of transmitting.Can coordinate with main frame the functions such as dynamic routing, antithetical phrase gateway provides multipath concurrence network interface, can put with each subnet the news that work into simultaneously.
Wherein, intelligent interchanger can be carrier by programmable logic controller (PLC) (FPGA), customizes design in conjunction with concrete demand.Due to the parallel processing form of FPGA, the transfer of data feature that adapted to isomerous network high speed is concurrent, the simultaneously FPGA (Field Programmable Gate Array) of FPGA, also can meet the dynamic demand for control of main frame.
It should be noted that, gateway is connected by data/address bus with intelligent interchanger, adopts but be not limited only to pci data bus in the present embodiment, because pci bus technology is the bussing technique of comparative maturity in prior art, does not elaborate at this.Intelligence interchanger closes and is connected by unified interface with subnet, and subnet closes and intelligent interchanger need be supported same communications protocol, adopts in the present embodiment but is not limited only to RJ45 Ethernet interface and tcp/ip communication agreement.Because Ethernet interface and tcp/ip communication agreement are ripe prior art, in this also no longer explanation.
Close for being connected to subnet on intelligent interchanger, gateway system of the present invention only needs it to meet to have RJ45 Ethernet interface and support tcp/ip communication agreement, not doing requirement for the communication protocol inside the Pass subnet.Therefore, can support the data interaction between different communications protocol between subnet.
Referring to Fig. 2, show a kind of structural representation of supporting the mutual gateway of heterogeneous network of the present invention, be with the difference of a upper embodiment, main computer unit 210 in this embodiment, specifically comprises:
Subnet monitoring unit 211, mutual for gateway and local user, is shown to local user by subnet reporting information with visual pattern, and local user's instruction is issued to appointment sub-network.
The Internet interactive unit 212, mutual for gateway and Internet user, offers Internet user by the information of gateway, the inquiry for Internet user to all data of gateway.
Intelligence decision-making unit 213, carry out the distribution of exchanging policy for interaction data log-on message in the net reporting according to subnet, and store allocation result into first and transmit, and transmit during the second dynamic route of transmitting of being mapped in intelligent interchanger transmits first.
Intelligence decision-making unit 213 is concrete, comprising:
Distributing data registering unit, closes the log-on message of the distributing data reporting, and the log-on message of the distributing data having extracted is stored in distributing data registration table for extracting subnet.
Subscription data registering unit, closes the log-on message of the subscription data reporting, and the log-on message of the subscription data having extracted is stored in subscription data registration table for extracting subnet.
Forwarding data matching unit, according to information in distributing data registration table and subscription data registration table, find out interaction data routing information in the net that distributing data and subscription data match, and transmit data format according to first and add first to and transmit.
Transmit map unit, for first in main frame transmitted to content, during the second dynamic route of transmitting that sends to intelligent interchanger is transmitted.
Wherein, the content of subscription data registration table comprises, distributing data ID and issuing interface IP; The content of subscription data registration table comprises, subscription data ID and subscribing interface IP.
First transmits unit 214, for storing the forward-path of intelligent decision-making unit for interaction data in net.Wherein, the first content of transmitting unit comprises, distributing data ID and subscribing interface IP; The first retransmission unit can be stored in an independently memory headroom, and the dynamic route table content of the second retransmission unit of this memory headroom and intelligent interchanger, form are just the same.
First interface unit 215, for providing data channel and the management channels of data processing unit and intelligent interchanger.For each data processing unit of main frame provides 1 special data channel, make data processing unit only process the data that corresponding data passage sends, and provide a management channels, mutual for data in memory headroom between main frame and intelligent interchanger.
Corresponding, intelligent exchanger unit 220 in this embodiment, specifically comprises:
Receiving element 221, for receiving, subnet closes and main frame first interface unit sends to the data of the second interface unit, and is buffered in the correspondence reception buffer queue of interface.
Transmitting element 222, sends to subnet to close and the corresponding ports of main frame first interface unit for correspondence being sent to the data of buffer queue.
Receive selected cell 223, for selecting one of them queue from all reception buffer queues, and the data in selected queue are sent to Data Analysis unit.
Data Analysis unit 224, for carrying out type parsing to the data that receive.According to the message format that receives data, extract the essential information of inquiry, send to output port query unit.Wherein, inquiry must information comprise, data source address, destination address, type identification position and distributing data ID etc.
Output port query unit 225, for the essential information of inquiry of extracting according to Data Analysis unit, inquiry second is transmitted, and finds the output port of data, and data is sent to the transmission buffer queue of output port.
Second transmits unit 226, and for storing the forward-path through all data of intelligent interchanger, wherein, forward-path comprises that first transmits the forward-path and the fixing forward-path that are mapped to interaction data in the second net of transmitting.
Concrete, comprising:
Fixing forwarding route table, for storing fixing forward-path.Wherein, the content of fixing forwarding route table comprises, data type, destination address, output slogan.
Dynamically forwarding route table, for storing the forward-path of dynamic change, first transmit in the second mapping of transmitting, with first to transmit content identical.
The second interface unit 227, closes for connecting intelligent interchanger and subnet.Comprise multiple sub-interfaces unit, provide 1 independently port for each subnet closes, make intelligent interchanger can connect multiple subnets simultaneously and close.
In order clearly to introduce the 26S Proteasome Structure and Function of the gateway system of heterogeneous network data interaction in the present invention, below an instantiation be introduced.Referring to Fig. 3, it is the data processing unit schematic diagram of a kind of another embodiment that supports the mutual gateway of heterogeneous network.In conjunction with gateway system structure of the present invention, in corresponding diagram 3, each Elementary Function illustrates.
Gateway system of the present invention is made up of main frame, intelligent interchanger, in the present embodiment, carrier by ordinary PC as main frame, carrier by NetFPGA development board (NetFPGA is Stanford Univ USA's exploitation, has the programmable hardware platform of gigabit speed (Ethernet RJ45 interface)) as intelligent interchanger.By the exploitation at PC and NetFPGA, realize function and method that the present invention invents.
Main frame comprises that data processing unit, first is transmitted, the several parts of first interface.Wherein, internet interactive unit is corresponding with 1 port of first interface, data channel between them is the first data channel, the upstream data (being the data that intelligent interchanger sends to host data processing unit) of passage is called the Internet request data, and downlink data (being the data that host data processing unit sends to intelligent interchanger) is called the Internet response data; Subnet monitoring unit is corresponding with 2 ports of first interface, and the data channel between them is the second data channel, and the upstream data of passage is called reported data, and downlink data is called control data; Intelligence exchanging policy unit is corresponding with 3 ports of first interface, and the data channel between them is triple data path, and the upstream data of passage is called log-on data, and downlink data is called accreditation verification data; First transmits correspondingly with the control port of first interface, and the passage between them is called control channel, mutual for memory headroom data.
Internet interactive unit can be obtained data to subnet monitoring unit, while receiving request, obtains desired data to subnet monitoring unit for internet interactive unit, then the data that get is returned to Internet user in the Internet response data mode.
Subnet monitoring unit can obtain data to intelligent exchanging policy unit, for the demonstration to data allocation process and result in intelligent exchanging policy unit, is convenient to local user and knows the distribution condition of exchanging policy.
Intelligence interchanger comprises logic function unit such as receiving selection, Data Analysis, output port inquiry, receives buffer queue (RxQ) and send buffer queue (TxQ) and second and transmit.Wherein the reception buffer queue (PC RxQ) of PC end and transmission buffer queue (PC TxQ) are corresponding with each port of the first interface of main frame, and reception (MAC RxQ) and transmit queue (MAC TxQ) that subnet closes end are corresponding with each port of the second interface.Be used for each port of buffer memory by the data that send or received.
The second list item of transmitting, referring to Fig. 3, comprises, data type, object IP, output port.
The reported data that sends to gateway take the second interface 4 ports below, as example, illustrates flow process and the method for gateway system operation.Referring to Fig. 3, grey color part is that reported data flows to.
In the time that the second interface 4 ports of intelligent interchanger receive the data D4 of subnet pass transmission, D4 is buffered in corresponding reception buffer queue MAC4 RxQ.
Receive selected cell according to selection algorithm, in all RxQ, select one to receive buffer queue, send to Data Analysis unit.Wherein selection algorithm can be random selection, the selection based on priority, the selection based on the time of advent etc., and what adopt here is the selection algorithm based on priority.Suppose that in current reception buffer queue, D4 has the highest priority, receive selected cell using D4 as selecting data, send to Data Analysis unit.
Data Analysis unit, according to message protocol, carries out Context resolution to D4.Extract the information such as source IP address, object IP address, data type of D4.Information extraction is sent to output port query unit together with data.Wherein, information extraction can also comprise other information.Wherein, data type comprises: reported data, control data, log-on data, accreditation verification, the Internet request, the Internet response, interaction data etc.
Output port query unit is according to the type of data, and inquiry second is transmitted.If interaction data is first inquired about dynamic forwarding route table, find corresponding object IP according to PubID, then search fixing forwarding route table, according to object IP, find corresponding output port; If reported data, log-on data, internet data can, according to data type, directly be searched corresponding output port, and needn't use object IP; If remaining other data types, will be according to object IP, search the corresponding output port of fixing forwarding route table.Because D4 is reporting types data,, according to the output port of fixedly transmitting interior reported data, send in PC2 TxQ buffer queue.
Transmitting element sends to subnet monitoring unit by D4 by first interface 2 ports, and subnet monitoring unit can be processed D4, or is presented at graphical interface of user or is stored in background data base, does not elaborate here.
Above-mentioned explanation, take reported data as example, has been introduced processing procedure and the method for gateway to data, and this flow process and method are equally applicable to other data types, does not do narration one by one here.The handling process of registration type data and interactive type data and method are referring to Fig. 5.
Referring to Fig. 4, show the schematic flow sheet of an a kind of embodiment who supports the mutual method of heterogeneous network of the present invention, the method comprises:
Step 401: in the time that intelligent interchanger receives data, data are resolved, extract the information such as data type, object IP;
In the time receiving data, first by the data buffer storage receiving in the buffer queue of receiving interface, wait for other cell processing.
To receive buffer queue configuration preference level, according to the priority of queue, in reception buffer queue, choose the data processing in the queue that priority is high.
According to the communications protocol form of subnet pass and gateway, analyze packet content, extract source address, destination address, the data type mark of packet, next step foundation judging as method.
If the data type of packet is interaction data in net, also need to extract the ID(PubID of interaction data in net).Wherein the mark of the data type in packet and PubID can arrange voluntarily, as long as close data packet form unification with subnet.
Step 402: inquiry second is transmitted, if swap data in net is inquired about dynamic forwarding route table, according to the ID of interaction data in the net extracting, searches corresponding object IP, then according to destination address, searches the forwarding output port in fixing forwarding route table.
Step 403: if to the data type of host function unit, as internet data, reported data, log-on data, according to the particular type of data, in inquiry the second fixing forwarding route table of transmitting, the correspondence of data type forwards output port, and sends to output port.
Step 404: if be sent to the data that each subnet closes, according to the object IP of data, in inquiry the second fixing forwarding route table of transmitting, the correspondence of object IP forwards output port, and sends to output port.
When host receiving data, send data to corresponding data processing unit according to Data Source port and process.FPDP source is corresponding one by one with data processing unit, and the data that corresponding ports receives will send to corresponding data processing unit.
Step 406: if the Internet interaction data port, main frame sends data to sub-internet interactive unit, processes.
Step 407: if log-on data port, main frame sends data to intelligent exchanging policy unit, record log-on message and mate, generating first and transmit, and transmit and be mapped to the dynamic forwarding route table that second in intelligent interchanger transmitted first.
Wherein, log-on data comprises, issues log-on data, subscription registration data.
In the time that the corresponding function unit of main frame receives log-on data, judge the type of log-on data, if issue log-on data, extract the mark PubID and the source address PubIP that issue log-on data, and be kept in distributing data registration table; If subscription registration data are extracted mark SubID, the distributing data mark PubID that will subscribe to of subscription data and subscribe to address SubIP, and being kept in subscription data registration table.According to distributing data mark PubID inquiry distributing data registration table, if there is record, generated data coupling entry, identifies PubID by distributing data and subscribes to address SubIP and be recorded in first and transmit.
Step 408: if reported data port, main frame sends data to subnet monitoring unit, processes.
In order clearly to introduce the detailed process of the method for heterogeneous network data interaction in the present invention, below an instantiation be introduced.Referring to Fig. 5, it is a kind of schematic diagram of the data flow of supporting an embodiment of the mutual method of heterogeneous network.
Here clear and definite in order to identify, provide node to be called publisher node or Pub node data, relevant narration below is all unified title with Pub; Data receiver requesting node is called and subscribes to node or Sub node, and relevant narration below is all unified title with Sub.
The flow process of heterogeneous network exchanges data is divided into 2 steps, comprising: Pub/Sub content registration and Pub/Sub transmission.
● Pub/Sub content registration
The node with Pub function and Sub demand first will be in subnet Central Shanxi Plain registration separately.
Step 501:Pub node reports subnet to close the data type of the node address of self and registration.As the Pub node in sub-network in figure 1, sub-on-net location is 0x0001, and log-on data is temperature data, and Pub node sends to its subnet to close this information.
Step 502: subnet closes the Pub node address receiving and type information and self ID integration, generates the unique identification of a unique PubID as Pub content between net, during for Pub transfer of data.As figure, subnet closes 1 the Pub log-on message reporting of pub1 node is designated to GW1_0001_WD.Then subnet closes PubID log-on message is sent to gateway.Gateway receives PubID and is kept in Pub Registry together with the network address PubIP that receives PubID log-on message.
The registration of Sub node is similar with Pub flow process.
Step 503: in the time of registration Sub demand, Sub node reports subnet to close self address and the content information that will subscribe to.
Step 504: if while having multiple Sub nodes to subscribe in same subnet, applicable equally.As figure, the Sub node 3 of subnet 4 and Sub node 4, subscribed to the temperature data that the Pub node 1 of subnet 1 is issued.
Step 505: subnet closes integrates the Sub node address receiving and self-ID information, generates the mark of unique SubID as subscribed content between net.Subnet closes again subscribes to PubID report gateway by SubID and its, and gateway is kept at the Sub log-on message receiving and the network address in Sub Registry.
Step 506: search Pub Registry according to the subscription PubID in Sub Registry.Search whether there is PubID be the record of GW1_0001_WD.
Step 507: if there is chartered Pub content, the address SubIP Sub being subscribed to leaves first in and transmits.Owing to having GW1_0001_WD record in the Pub of gateway Registry, by PubID(GW1_0001_WD) and SubIP(210.72.141.40) be kept at first and transmit
Step 508: transmit in the internal memory that is mapped to intelligent interchanger in the second dynamic forwarding route table of transmitting, as the forwarding inquiries foundation of Pub/Sub first.
● Pub/Sub transmission
Referring to filled arrows indication in figure.
In the time carrying out Pub/Sub transmission, Pub node sends to subnet to close data content and PubID packing, and subnet closes and again packing data sent to gateway.
In the time that Pub data arrive intelligent interchanger, intelligence interchanger can carry out hardware parsing to data, analyze the type of packet, if Pub data, according to the form of Pub data, PubID is resolved as searching index, in second transmits, search corresponding outlet, if exist Sub to subscribe to this information, Pub information put into the port output queue that SubIP is corresponding.Here be the record of GW1_0001_WD owing to having there is PubID in the second dynamic forwarding route table of transmitting, therefore the SubIP that finds this record correspondence is 210.72.141.40, search fixing forwarding route table according to this IP again, find corresponding output port, subnet closes 4 port.
Wherein, in transmitting, PubID can corresponding multiple SubIP, can realize the transfer of data of one-to-many.Adopt in such a way, main frame only need upgrade first according to log-on message to be transmitted and transmits and be mapped to second and transmit first, and without real-time intervention, intelligent interchanger can complete the Pub/Sub transmission of one-to-many automatically.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.To be apparent for those skilled in the art to the multiple modification of these embodiment, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. support the gateway that heterogeneous network is mutual, it is characterized in that, comprising:
Main frame, for entirety control and the data processing of described gateway, according to the data-interface receiving, calls corresponding data processing unit and processes, and safeguards that first transmits the second mapping of transmitting;
Intelligence interchanger, the data that each subnet closes and the Internet end sends that connect for receiving described gateway, and the data that receive are resolved, carry out the forwarding of described data according to described the second path of transmitting.
2. gateway according to claim 1, it is characterized in that, described main frame, comprises that data processing unit, first transmits unit and first interface unit, and described data processing unit comprises subnet monitoring unit, the Internet interactive unit and intelligent decision-making unit;
Subnet monitoring unit, mutual for described gateway and local user, closes reporting information by subnet and is shown to local user with visual pattern, or local user's instruction is issued to and specifies subnet to close;
The Internet interactive unit, mutual for described gateway and Internet user, offers Internet user by the information of described gateway, or the inquiry of Internet user to all data of described gateway;
Intelligence decision-making unit, carry out the distribution of exchanging policy for interaction data log-on message in the net reporting according to described subnet, store described allocation result into described first and transmit, transmit during described the second dynamic route of transmitting of being mapped in described intelligent interchanger transmits described first;
First transmits unit, for storing the forward-path of described intelligent decision-making unit for interaction data in described net;
First interface unit, for interface and the data channel of described data processing unit and described intelligent interchanger are provided, the each described data processing unit that is described main frame provides 1 special described data channel, the data that a described data processing unit processing said data passage is sent; Interactive interface and the passage of described main frame and described intelligent interchanger internal memory are provided.
3. gateway according to claim 2, is characterized in that, described intelligent decision-making unit, comprising:
Distributing data registering unit, closes the log-on message of the distributing data reporting, and the log-on message of the described distributing data having extracted is stored in distributing data registration table for extracting described subnet;
Subscription data registering unit, closes the log-on message of the subscription data reporting, and the log-on message of the described subscription data having extracted is stored in subscription data registration table for extracting described subnet;
Forwarding data matching unit, according to information in described distributing data registration table and described subscription data registration table, find out the described interaction data routing information that described distributing data and described subscription data match, and be stored in described first according to described the first data format of transmitting unit and transmit in unit;
Transmit map unit, for first in main frame transmitted to content, during the second dynamic route of transmitting that sends to intelligent interchanger is transmitted;
Distributing data ID(PubID) and subscribing interface address (SubIP) wherein, described the first content of transmitting unit comprises:; The content of described distributing data registration table comprises: described distributing data ID(PubID) and issuing interface address (PubIP); The content of described subscription data registration table comprises: subscription data ID(SubID) and described subscribing interface address (SubIP).
4. gateway according to claim 1, is characterized in that, described intelligent interchanger, comprising:
Receiving element, for receiving, described subnet closes and described main frame first interface unit sends to the data of described intelligent interchanger, and is buffered in the correspondence reception buffer queue of interface;
Transmitting element, sends to described subnet to close and the corresponding ports of the first interface unit of described main frame for correspondence being sent to the data of buffer queue;
Receive selected cell, for selecting a queue from described all reception buffer queues, and the data in selected queue are sent to Data Analysis unit;
Data Analysis unit, for carrying out Context resolution to the data that receive.According to the described message format that receives data, extract the essential information of inquiry, send to output port query unit; Described inquiry must information comprise: data source address, destination address, type identification and distributing data ID(PubID); .
Output port query unit, for the essential information of described inquiry of extracting according to described Data Analysis unit, inquires about described second and transmits, and finds the output port of described data, and sends in corresponding transmission buffer queue;
Second transmits unit, for storing the forward-path through all data of described intelligent interchanger, wherein, described forward-path comprises that described first transmits the dynamic forwarding route table and the fixing forwarding route table that are mapped to interaction data in the described second described net of transmitting;
The second interface unit, closes for connecting described intelligent interchanger and subnet.Comprise multiple sub-interfaces unit, provide 1 independently port for each described subnet closes, make described intelligent interchanger can connect multiple described subnets simultaneously and close.
5. gateway according to claim 4, is characterized in that, described second transmits unit, comprising:
Fixing forwarding route table, for storing fixing forward-path; The content of described fixing forwarding route table comprises: data type, and object IP, output port:
Dynamically forwarding route table, for storing the forward-path of dynamic change, described first transmit in described the second mapping of transmitting, with first to transmit content identical.
6. according to an exchange method for gateway described in claim 1-5 any one, it is characterized in that, comprising:
In the time that intelligent interchanger receives data, described data are resolved, extract data type, object IP;
According to the particular type of described data and destination address, inquiry second transmit described in the correspondence of data forward output port, and send to described output port;
When host receiving data, send data to corresponding data processing unit according to Data Source port and process.
7. method according to claim 6, is characterized in that, described in the time that intelligent interchanger receives data, and described data are resolved, and extracts the information such as data type, object IP, comprising:
In the time receiving data, first by the data buffer storage receiving in the buffer queue of receiving interface, wait for other cell processing;
To receive buffer queue configuration preference level, according to the priority of queue, in described reception buffer queue, choose the data processing in the queue that priority is high;
According to the communications protocol form of subnet pass and described gateway, analyze packet content, extract source address, destination address, the data type mark of packet, next step foundation judging as method;
If the data type of described packet is interaction data in described net, also need to extract the ID(PubID of interaction data in described net).
8. method according to claim 6, is characterized in that, described according to the particular type of described data and object IP, and the correspondence that described data are transmitted in inquiry second forwards output port, and sends to described output port, comprising:
Inquire about described second while transmitting, if interaction data in described net, inquire about dynamic forwarding route table, according to the ID(PubID of interaction data in the described net extracting), search corresponding object IP, according to described destination address, search the described forwarding output port in described fixing forwarding route table again; If described first interface unit, to the data of described data processing unit, according to the particular type of described data, is inquired about the correspondence forwarding output port of data type described in the second fixing forwarding route table of transmitting, and is sent to described output port; If be sent to the data that each subnet closes, according to the object IP of described data, described in inquiry the second fixing forwarding route table of transmitting, the correspondence of object IP forwards output port, and sends to described output port.
9. method according to claim 6, is characterized in that, described main frame sends data to corresponding data processing unit according to FPDP source and processes, and comprising:
Described FPDP source is corresponding one by one with described data processing unit, and the data that corresponding ports receives will send to corresponding data processing unit:
If log-on data port, main frame sends data to intelligent exchanging policy unit, record log-on message and mate, generating first and transmit, and transmit by described first the described second described dynamic forwarding route table of transmitting being mapped in described intelligent interchanger;
If reported data port, main frame sends data to subnet monitoring unit, processes;
If the Internet interaction data port, main frame sends data to internet interactive unit, processes.
10. method according to claim 9, is characterized in that, described if log-on data port, and main frame sends data to intelligent exchanging policy unit, records log-on message and mates, and generates first and transmits, and comprising:
In the time that the corresponding function unit of main frame receives log-on data, judge the type of described log-on data, if issue log-on data, extract mark PubID and the source address PubIP of described issue log-on data, and be kept in described distributing data registration table; If subscription registration data are extracted mark SubID, the described distributing data mark PubID that will subscribe to of described subscription data and subscribe to address SubIP, and being kept in described subscription data registration table; According to described distributing data mark, PubID inquires about described distributing data registration table, if there is record, generated data coupling entry, is recorded in described first by described distributing data mark PubID and described subscription address SubIP and transmits; Described log-on data comprises, issues log-on data, subscription registration data.
CN201210551906.3A 2012-12-17 2012-12-17 Gateway and method for supporting interaction of heterogeneous network Active CN103873369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210551906.3A CN103873369B (en) 2012-12-17 2012-12-17 Gateway and method for supporting interaction of heterogeneous network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210551906.3A CN103873369B (en) 2012-12-17 2012-12-17 Gateway and method for supporting interaction of heterogeneous network

Publications (2)

Publication Number Publication Date
CN103873369A true CN103873369A (en) 2014-06-18
CN103873369B CN103873369B (en) 2017-02-08

Family

ID=50911508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210551906.3A Active CN103873369B (en) 2012-12-17 2012-12-17 Gateway and method for supporting interaction of heterogeneous network

Country Status (1)

Country Link
CN (1) CN103873369B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376126A (en) * 2014-07-16 2016-03-02 比亚迪股份有限公司 CAN bus gateway, communication method related with the CAN bus gateway, and communication system thereof
CN108854061A (en) * 2018-06-27 2018-11-23 努比亚技术有限公司 Game data communication means, communication processing equipment, terminal and readable storage medium storing program for executing
CN110519160A (en) * 2019-08-15 2019-11-29 深圳市丰润达科技有限公司 Things-internet gateway multimode communication means, device and computer readable storage medium
CN115168690A (en) * 2022-09-06 2022-10-11 深圳市明源云科技有限公司 Data query method and device based on browser plug-in, electronic equipment and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920352B (en) * 2018-07-27 2022-06-28 百度在线网络技术(北京)有限公司 Method and device for acquiring information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951693A (en) * 2010-08-03 2011-01-19 天津中启创科技有限公司 Thing Internet gateway of heterogeneous wireless network and control method thereof
CN102025573A (en) * 2009-09-15 2011-04-20 海尔集团公司 Home network system
CN102624621A (en) * 2012-03-11 2012-08-01 上海宜云物联科技有限公司 Heterogeneous network adaptive data communication method and sensor network multi-protocol gateway
CN202385126U (en) * 2011-11-21 2012-08-15 无锡物联网产业研究院 Gateway device for internet of things

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025573A (en) * 2009-09-15 2011-04-20 海尔集团公司 Home network system
CN101951693A (en) * 2010-08-03 2011-01-19 天津中启创科技有限公司 Thing Internet gateway of heterogeneous wireless network and control method thereof
CN202385126U (en) * 2011-11-21 2012-08-15 无锡物联网产业研究院 Gateway device for internet of things
CN102624621A (en) * 2012-03-11 2012-08-01 上海宜云物联科技有限公司 Heterogeneous network adaptive data communication method and sensor network multi-protocol gateway

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376126A (en) * 2014-07-16 2016-03-02 比亚迪股份有限公司 CAN bus gateway, communication method related with the CAN bus gateway, and communication system thereof
CN105376126B (en) * 2014-07-16 2019-10-11 比亚迪股份有限公司 CAN bus gateway and it is related to the communication means and system of CAN bus gateway
CN108854061A (en) * 2018-06-27 2018-11-23 努比亚技术有限公司 Game data communication means, communication processing equipment, terminal and readable storage medium storing program for executing
CN110519160A (en) * 2019-08-15 2019-11-29 深圳市丰润达科技有限公司 Things-internet gateway multimode communication means, device and computer readable storage medium
CN115168690A (en) * 2022-09-06 2022-10-11 深圳市明源云科技有限公司 Data query method and device based on browser plug-in, electronic equipment and medium

Also Published As

Publication number Publication date
CN103873369B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN101090324B (en) Network system and server
US9281995B2 (en) Virtual network and management method of virtual network
CN104348724B (en) A kind of data forwarding method and device for supporting multi-tenant
CN105553849B (en) A kind of traditional IP and SPTN network intercommunication method and system
CN105207853B (en) A kind of LAN method for managing and monitoring
CN109660443A (en) Physical equipment and virtual network communication method and system based on SDN
CN100450080C (en) Method and apparatus for astringing two layer MAC address
CN103917967A (en) Network control system for configuring middleboxes
CN108777633B (en) Intention pattern type industrial SDN northbound interface system supporting data scheduling and interaction method
EP2901630B1 (en) Method operating in a fixed access network and user equipments
CN102334111A (en) For the managed computer network provides the logic network savvy
WO2012001616A2 (en) Methods and systems for time sensitive networks
CN102893558A (en) A method and an apparatus for session routing in home network system
CN103873369A (en) Gateway and method for supporting interaction of heterogeneous network
CN102647355A (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN102148698A (en) Network configuration protocol-based network configuration management method, equipment and system
CN105391635A (en) Network virtualization method based on software defined network (SDN)
CN104184663A (en) Communication method and device based on software-defined network and integrated identification network
CN105635335B (en) Social resources cut-in method, apparatus and system
CN102332999A (en) Interaction system and interaction method of network management based on shared network address translation (NAT)
CN1997036A (en) Access multiplexer
CN101984607A (en) Method of Ethernet interface to simultaneously support routing function and switching function
CN116455817A (en) Software-defined cloud network fusion architecture and route implementation method
CN110493149A (en) A kind of method and apparatus of Message processing
CN103117956B (en) Based on the network system method of automatic configuration of scheduling queue

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant