CN103873369B - Gateway and method for supporting interaction of heterogeneous network - Google Patents
Gateway and method for supporting interaction of heterogeneous network Download PDFInfo
- Publication number
- CN103873369B CN103873369B CN201210551906.3A CN201210551906A CN103873369B CN 103873369 B CN103873369 B CN 103873369B CN 201210551906 A CN201210551906 A CN 201210551906A CN 103873369 B CN103873369 B CN 103873369B
- Authority
- CN
- China
- Prior art keywords
- data
- unit
- gateway
- forwarding
- subnet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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
Technical field
The present invention relates to cordless communication network and internet technique field, more particularly to a kind of support isomery
The gateway of network interaction and method.
Background technology
Extra large end network refers to the physical message sensing network with wireless sensor network as representative, generally adopts wireless parties
Formula, link-quality and network topology frequently change, and host-host protocol is various, and node resource is limited;Cloud network refer to
Internet is the computer interconnected network of representative, generally adopts the wired modes such as optical fiber, and link-quality is stable, and agreement is using single
One ICP/IP protocol, resource relative abundance.Gateway, as the core apparatus of extra large end network, is responsible for the information of entirely extra large end network
Collection and the management configuration of network;It is also interface, responsible Hai Duan and the cloud network of extra large end network insertion cloud network simultaneously
Data and management information transmission, be the key point of extra large cloud interconnection.
WeiLai Technology is accessed to isomery multiprotocol network from the wireless sense network of original single-protocol to the demand of gateway
Direction transfer.In the same monitors environment of following Sensor Network, may be simultaneously present multiple wireless, wired perception nets
Network.The different communication protocol of these network possible applications, such as Zigbee, WIA, Wifi, but be required for by same gateway with
Internet is interconnected.Therefore gateway must possess the ability simultaneously processing communication information between multi-protocols heterogeneous network.Existing
Technology, in the form of embedded system, by carrying multiple interfaces and protocol specification, realizes bus and agreement between heterogeneous network
Conversion.But need on this kind of mode hardware to lay multiple interfaces change-over circuit, software also will be realized various protocols stack, right
Embedded device in resource-constrained realizes difficulty, and is difficult to ensure that real-time and the reliability of process.Also some existing sides
Method and system are to connect on switches by all kinds gateway, and host computer realizes the company with multiprotocol network by switch
Connect, although this kind of mode can solve the Heterogeneity of multiprotocol network, switch does not support secondary development it is difficult to realize
The heterogeneous network interactive function of higher level, and in the case that network size is huge, the bandwidth of transmission and real-time also are difficult to
Ensure.Therefore those skilled in the art's technical problem in the urgent need to address is that realizing one kind can be in extensive, heterogeneous network
Carry out the gateway of network interaction function at a high speed, intelligent and method under environment.
Content of the invention
In view of this, the present invention provides a kind of gateway supporting heterogeneous network interaction and method, it would be preferable to support heterogeneous network
Interaction, and high-speed communication between heterogeneous network can be realized according to the forward-path of dynamic, the intelligent distribution data of network request.
For achieving the above object, the invention provides a kind of support heterogeneous network interaction gateway, including:
Main frame, the entirety for described gateway controls data to process, and according to the data-interface receiving, calls corresponding
Data processing unit is processed, and safeguards the first forward table to the mapping of the second forward table;
Intelligent exchanger, for receiving the data that each subnet that described gateway connects closes and internet end sends, and docks
The data receiving is parsed, and carries out the forwarding of described data according to the path of described second forward table.
Described main frame, including data processing unit, the first forwarding table unit and first interface unit, described data processing list
Unit includes subnet monitoring unit, internet interactive unit and intelligent decision-making unit;
Subnet monitoring unit, for interacting of described gateway and local user, will close reporting information to visualize by subnet
Form is shown to local user, or local user's instruction is issued to specified subnet pass;
Internet interactive unit, for interacting of described gateway and Internet user, will the information of described gateway provide
To Internet user, or the inquiry to all data of described gateway for the Internet user;
Intelligent decision-making unit, swaps plan for interaction data log-on message in the net that reports according to described subnet
Distribution slightly, described allocation result is stored in described first forward table, described first forward table is mapped to described intelligence
In the dynamic route forward table of described second forward table in exchanger;
First forwarding table unit, for storing the forwarding for interaction data in described net for the described intelligent decision-making unit
Path;
First interface unit, the interface data for providing described data processing unit and described intelligent exchanger is led to
Road, each described data processing unit of as described main frame provides 1 special described data channel, makes described data processing
Unit only processes the data that described data channel sends;There is provided described main frame and described intelligent exchanger internal memory interactive interface and
Passage.
Described intelligent decision-making unit, including:
Issue data register unit, for extracting the log-on message of the issue data that described subnet pass reports, and will extract
The log-on message of complete described issue data is stored in issue data register table;
Subscribe to data registering unit, for extracting the log-on message of the subscription data that described subnet pass reports, and will extract
The log-on message of complete described subscription data is stored in subscription data registration table;
Forward data matching unit, according to information in described issue data register table and described subscription data registration table, look into
Find out the described described interaction data routing information issuing data and described subscription data match, and according to the described first forwarding
The data form of table unit is stored in described first and forwards in table unit;
Forward table map unit, for by content in the first forward table in main frame, being sent to the second of intelligent exchanger
In the dynamic route forward table of forward table;
Wherein, the content of described first forwarding table unit includes:Issue data ID(PubID)With subscribing interface address
(SubIP);The described content issuing data register table includes:Described issue data ID(PubID)With issuing interface address
(PubIP);The described content subscribing to data registration table includes:Subscribe to data ID(SubID)With described subscribing interface address
(SubIP).
Described intelligent exchanger, including:
Receiving unit, for receiving, described subnet closes and described main frame first interface unit is sent to described intelligent exchanger
Data, and be buffered in the corresponding order caching queue of interface;
Transmitting element, for closing with described main frame first by the corresponding data is activation sending buffer queue to described subnet
The corresponding ports of interface unit;
Receive select unit, for selecting a queue from described all order caching queues, and by selected queue
Data is activation to data resolution unit;
Data resolution unit, for carrying out Context resolution to the data receiving.According to the described message receiving data
Form, extracts the required information of inquiry, is sent to output port query unit;Described inquiry must information include:Data source address,
Destination address, type identification and issue data ID(PubID);.
Output port query unit, the required information of the described inquiry for being extracted according to described data resolution unit, inquiry
Described second forward table, finds the output port of described data, and is sent in corresponding transmission buffer queue;
Second forwarding table unit, for the forward-path of all data through described intelligent exchanger for the storage, wherein, institute
State forward-path and include the dynamic forwarding that described first forward table is mapped to interaction data in the described net of described second forward table
Routing table and fixing forwarding route table;
Second interface unit, closes for connecting described intelligent exchanger and subnet.Including multiple sub-interface units, for each
Described subnet closes provides 1 independent port, enables described intelligent exchanger to be simultaneously connected with multiple described subnets and closes.
Described second forwarding table unit, including:
Fixing forwarding route table, for storing fixing forward-path;The content of described fixing forwarding route table includes:Number
According to type, purpose IP, output port:
Dynamic forwarding route table, for storing the forward-path of dynamic change, that is, described first forward table described the
The mapping of two forward tables, identical with the first forward table content.
A kind of exchange method, including:
When intelligent exchanger receives data, described data is parsed, extract data type, purpose IP;
Particular type according to described data and purpose IP, described in inquiry the second forward table, the corresponding of data forwards output
Port, and it is sent to described output port;
During host receiving data, corresponding data processing unit is sent data to according to data source port and is processed.
Described when intelligent exchanger receives data, described data is parsed, extract data type, purpose IP etc.
Information, including:
When data is received, first by the data buffer storage receiving in the buffer queue of receiving interface, other are waited
Cell processing;
By order caching queue configuration preference level, according to the priority of queue, choose excellent in described order caching queue
Data processing in the high queue of first level;
According to subnet close and described gateway communications protocol form, analyze data bag content, extract packet source address,
Destination address, data type mark, the foundation being judged as method next step;
If the data type of described packet is interaction data in described net, also need to extract interaction data in described net
ID(PubID).
The described particular type according to described data and purpose IP, the corresponding forwarding of data described in inquiry the second forward table is defeated
Exit port, and it is sent to described output port, including:
When inquiring about described second forward table, if interaction data in described net, inquire about dynamic forwarding route table, according to carrying
The ID of interaction data in the described net taking(PubID), search corresponding purpose IP, further according to described destination address, search described
Described forwarding output port in fixing forwarding route table;If described first interface unit is to described data processing unit
Data, according to the particular type of described data, inquires about the right of data type described in the fixing forwarding route table of the second forward table
Output port should be forwarded, and be sent to described output port;If sending the data closed to each subnet, according to described data
Purpose IP, described in the fixing forwarding route table of inquiry the second forward table, the corresponding of purpose IP forwards output port, and is sent to
Described output port.
Described main frame sends data to corresponding data processing unit according to FPDP source and is processed, including:
Described FPDP source is corresponded with described data processing unit, and the data that corresponding ports receive will be sent to
Corresponding data processing unit:
If log-on data port, main frame sends data to intelligent exchanging policy unit, and record log-on message is gone forward side by side
Row coupling, generates the first forward table, and described first forward table is mapped to described second forwarding in described intelligent exchanger
The described dynamic forwarding route table of table;
If reported data port, main frame sends data to subnet monitoring unit, is processed;
If internet interaction data port, main frame sends data to internet interactive unit, is processed.
Described if log-on data port, main frame sends data to intelligent exchanging policy unit, records log-on message
And mated, generate the first forward table, including:
When the corresponding data processing unit of main frame receives log-on data, judge the type of described log-on data, if
It is to issue log-on data, then extracts described mark PubID issuing log-on data and source address PubIP, and be saved in described sending out
In cloth data register table;If subscription registration data, then extract the described mark SubID of data, to be subscribed to described of subscribing to
Issue Data Identification PubID and subscribe to address SubIP, and be saved in described subscription data registration table;According to described issue number
According to mark PubID inquiry described issue data register table, if there are record, then generate Data Matching entry, by described issue number
Record in described first forward table according to mark PubID and described subscription address SubIP;Described log-on data includes, and sends out
Cloth log-on data, subscription registration data.
Understand via above-mentioned technical scheme, compared with prior art, the present disclosure provides a kind of support heterogeneous network
The gateway system of network interaction and method, devise and can connect the gateway that existing heterogeneous subnet closes, define two-stage gateway system,
Gateway is made up of main frame and intelligent exchanger, and main frame is used for control and the decision-making of whole gateway system;Connect the intelligence of two-stage gateway
Energy exchanger, to the upper interface providing high speed and mutual resource, can complete dynamic forwarding capability with main frame cooperation, to lower offer
Multipath concurrence interface, can be closed with each subnet simultaneously be communicated.
It is more powerful that the main control device of system is transferred to function by embedded device by gateway system disclosed by the invention
On PC or server, enrich the resource of master control equipment to greatest extent.
It is designed as two-stage gateway system, gateway is in the upper strata of gateway system, the isomery that can evade each subnet pass is asked
Topic.As long as each subnet closes and gateway has unified interface(As Ethernet interface)It becomes possible to be connected with each other.Gateway is only with realizing
A kind of communications protocol, without being concerned about that all-ones subnet closes the concrete protocol specification of lower network it is achieved that the isomerism of heterogeneous network
Isolation.
The gateway being in top layer becomes on each subnet closes, and the center of converging information can conveniently obtain subnet and close letter
Breath, due to being connected to the sub- gateway device of same gateway, often has spatial correlation, it is possible to use the space-time between subnet pass
Relevance carries out concentrating analysis, decision-making.
The intelligent exchanger of the individually designed one-tenth of interface of gateway, intelligent exchanger can be developed by programmable logic controller (PLC), knot
Close specific being customized of demand design.Due to the parallel processing form of FPGA, the concurrent data of adapted to isomerous network high speed
Transmission feature, the FPGA of FPGA is it is also possible to meet the demand for control to firmware interface for the main frame simultaneously.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing having required use in technology description is briefly described.It should be evident that drawings in the following description are only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing providing obtains other accompanying drawings.
Fig. 1 is the structural representation of an embodiment of integral gateway system in the present invention;
Fig. 2 is a kind of structural representation of the embodiment of gateway supporting heterogeneous network interaction of the present invention;
Fig. 3 is a kind of functional unit schematic diagram of another embodiment of gateway supporting heterogeneous network interaction of the present invention;
Fig. 4 is a kind of schematic flow sheet of one embodiment of method supporting heterogeneous network interaction of the present invention;
Fig. 5 is a kind of signal of the data is activation flow direction of one embodiment of method supporting heterogeneous network interaction of the present invention
Figure.
Specific 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 carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
In the present invention, in order to distinguish with common gateway of the prior art, the gateway of the present invention is collectively referred to as net
Close, common gateway of the prior art is referred to as subnet and closes, the network that subnet closes institute's management and control is referred to as sub-network.
Referring to Fig. 1, public affairs show the structural representation of an embodiment of integral gateway system of the present invention, integral net relation
System includes, and gateway, subnet pass and its subnet close network child node and the internet of institute's management and control.Traditional gateway is as gateway
Subnet closes, and gateway, as father's gateway, forms the gateway system of a two-stage.Each subnet closes and is generally in same monitors environment
In, but the different communication protocol of sub-network possible application, such as Zigbee, WIA, Wifi, are heterogeneous network systems, each son
Network interaction can not be carried out between network, need to carry out between sub-network by gateway and sub-network and Internet user, local user
Interaction.
Wherein, gateway, as the main contents of the present invention, will be described in detail.
Gateway includes:Main computer unit 101 and intelligent exchanger unit 102.
Main computer unit 101, the entirety for gateway system controls data to process, and according to the interface receiving data, adjusts
Processed with corresponding data processing unit, and safeguard the first forward table to the renewal of the second forward table.Wherein, data processing
Unit includes subnet monitoring unit, internet interactive unit, intelligent decision-making unit.
It should be noted that data processing unit can also be added as needed on and change, it is not limited only in the present invention
Several processing units.
Wherein, main frame can be able to be supported more complicated by the PC with relatively abundant system resource or server as carrier
Calculating and operational administrative.
Intelligent exchanger unit 102, for receiving the data that each subnet closes and internet end sends, and to the number receiving
According to being parsed, and carry out the forwarding of data according to the path of the second forward table.Dynamic routing etc. can be completed with main frame cooperation
Function, antithetical phrase gateway provides multipath concurrence network interface, can close with each subnet simultaneously be communicated.
Wherein, intelligent exchanger can be by programmable logic controller (PLC)(FPGA)For carrier, it is fixed to carry out in conjunction with specific demand
Inhibition and generation designs.Due to the parallel processing form of FPGA, adapted to isomerous network high speed concurrent data transfer feature, FPGA simultaneously
FPGA is it is also possible to meet the dynamic control demand of main frame.
It should be noted that gateway is connected by data/address bus with intelligent exchanger, employing in the present embodiment but not only
It is limited to pci data bus, the bussing technique being comparative maturity in prior art due to pci bus technology, here is not done specifically
Bright.Intelligent exchanger is closed with subnet and is connected by unified interface, and subnet closes and intelligent exchanger need to support same communication association
View, in the present embodiment using but be not limited only to RJ45 Ethernet interface and tcp/ip communication agreement.Because Ethernet connects
Mouth and tcp/ip communication agreement are ripe prior art, and here also no longer illustrates.
The subnet being connected on intelligent exchanger is closed, gateway system of the present invention only needs its satisfaction to have RJ45 Ethernet
Network interface and support tcp/ip communication agreement, do not require for subnet communication protocol inside the Pass.Therefore, it can support between subnet
Data interaction between different communications protocol.
Referring to Fig. 2, show a kind of structural representation of the gateway supporting heterogeneous network interaction of the present invention, with upper one enforcement
The difference of example is that main computer unit 210 in this embodiment specifically include:
Subnet monitoring unit 211, for interacting of gateway and local user, subnet reporting information is shown with visual pattern
Show to local user, local user's instruction is issued to specified sub-network.
Internet interactive unit 212, for interacting of gateway and Internet user, the information of gateway is supplied to internet
User, for the inquiry to all data of gateway for the Internet user.
Intelligent decision-making unit 213, swaps plan for interaction data log-on message in the net that reports according to subnet
Distribution slightly, and allocation result is stored in the first forward table, and the first forward table is mapped in intelligent exchanger the
In the dynamic route forward table of two forward tables.
Intelligent decision-making unit 213 is specific, including:
Issue data register unit, for extracting the log-on message of issue data that subnet pass reports, and will extract
The log-on message issuing data is stored in issue data register table.
Subscribe to data registering unit, for extracting the log-on message of subscription data that subnet pass reports, and will extract
The log-on message subscribing to data is stored in subscription data registration table.
Forward data matching unit, according to issuing data register table and subscribing to information in data registration table, find out issue
Interaction data routing information in the net of data and subscription data match, and it is added to first according to the first forward table data form
In forward table.
Forward table map unit, for by content in the first forward table in main frame, being sent to the second of intelligent exchanger
In the dynamic route forward table of forward table.
Wherein, the content subscribing to data registration table includes, and issues data ID and issuing interface IP;Subscribe to data registration table
Content includes, and subscribes to data ID and subscribing interface IP.
First forwarding table unit 214, for storing the forward-path for interaction data in net for the intelligent decision-making unit.
Wherein, the content of the first forwarding table unit includes, and issues data ID and subscribing interface IP;First retransmission unit can be stored in one
Individual independent memory headroom, this memory headroom is complete with the dynamic route table content of the second retransmission unit of intelligent exchanger, form
Entirely the same.
First interface unit 215, for providing data channel and the management passage of data processing unit and intelligent exchanger.
Each data processing unit for main frame provides 1 special data channel, makes data processing unit only process corresponding data and leads to
The data that road sends, and provide a management passage, for the interaction of data in memory headroom between main frame and intelligent exchanger.
Corresponding, intelligent exchanger unit 220, specifically includes in this embodiment:
Receiving unit 221, closes, for receiving subnet, the data being sent to second interface unit with main frame first interface unit,
And be buffered in the corresponding order caching queue of interface.
Transmitting element 222, for closing and main frame first interface list the corresponding data is activation sending buffer queue to subnet
The corresponding ports of unit.
Receive select unit 223, for selecting one of queue from all order caching queues, and by selected queue
In data is activation to data resolution unit.
Data resolution unit 224, for carrying out type parsing to the data receiving.According to the message lattice receiving data
Formula, extracts the required information of inquiry, is sent to output port query unit.Wherein, inquiry must information include, data source address,
Destination address, type identification position and issue data ID etc..
Output port query unit 225, for the required information of the inquiry extracted according to data resolution unit, inquiry the
Two forward tables, find the output port of data, and transmit data to the transmission buffer queue of output port.
Second forwarding table unit 226, for the forward-path of all data through intelligent exchanger for the storage, wherein, turns
Send out path and include the first forward table and be mapped in the net of the second forward table the forward-path of interaction data and fixing forward-path.
Specifically, including:
Fixing forwarding route table, for storing fixing forward-path.Wherein, the content of fixing forwarding route table includes,
Data type, destination address, output end slogan.
Dynamic forwarding route table, for storing the forward-path of dynamic change, that is, the first forward table in the second forward table
Mapping, identical with the first forward table content.
Second interface unit 227, closes for connecting intelligent exchanger and subnet.Including multiple sub-interface units, for each
Subnet closes provides 1 independent port, enables intelligent exchanger to be simultaneously connected with multiple subnets and closes.
In order to clearly introduce the 26S Proteasome Structure and Function of the gateway system of heterogeneous network data interaction in the present invention, below one
Instantiation is introduced.Referring to Fig. 3, it is a kind of data processing of another embodiment of gateway supporting heterogeneous network interaction
Cell schematics.In conjunction with the gateway system architectures of the present invention, in corresponding Fig. 3, each unit function illustrates.
Gateway system of the present invention is made up of main frame, intelligent exchanger, in the present embodiment, by ordinary PC as main frame
Carrier, by NetFPGA development board(NetFPGA is Stanford Univ USA's exploitation, has gigabit speed(Ethernet RJ45 connects
Mouthful)Programmable hardware platform)Carrier as intelligent exchanger.By the exploitation in PC and NetFPGA, realize the present invention
The function of being invented and method.
Main frame includes data processing unit, the first forward table, the several part of first interface.Wherein, internet interaction is single
Unit is corresponding with 1 port of first interface, and the data channel between them is the first data channel, the upstream data of passage(I.e. intelligence
Energy exchanger is sent to the data of host data processing unit)Referred to as the Internet request data, downlink data(I.e. at host data
Reason unit is sent to the data of intelligent exchanger)Referred to as internet response data;Subnet monitoring unit and 2 ports of first interface
Corresponding, the data channel between them is the second data channel, and the upstream data of passage is referred to as reported data, and downlink data is referred to as
Control data;Intelligent exchanging policy unit is corresponding with 3 ports of first interface, and the data channel between them is that the 3rd data is led to
Road, the upstream data of passage is referred to as log-on data, and downlink data is referred to as accreditation verification data;First forward table and first interface
Control port corresponds to, and the passage between them is referred to as control passage, for the interaction of memory headroom data.
Internet interactive unit can obtain data to subnet monitoring unit, receives for internet interactive unit
During request, obtain desired data to subnet monitoring unit, then the data getting is returned in internet response data mode
To Internet user.
Subnet monitoring unit can obtain data to intelligent exchanging policy unit, for number in intelligent exchanging policy unit
According to the display of assigning process and result, it is easy to the distribution condition that local user knows exchanging policy.
Intelligent exchanger includes receiving logic function unit, the order caching teams such as selection, data parsing, output port inquiry
Row(RxQ)With transmission buffer queue(TxQ)With the second forward table.Wherein the order caching queue (PC RxQ) at PC end and transmission are slow
Deposit that queue (PC TxQ) is corresponding with each port of the first interface of main frame, subnet closes reception (MAC RxQ) and the transmission team at end
Row (MAC TxQ) are corresponding with each port of second interface.For caching the data that each port will send or have been received by.
The list item of the second forward table referring to Fig. 3, including data type, purpose IP, output port.
Below so that second interface 4 port is sent to the reported data of gateway as a example, illustrate gateway system run flow process and
Method.Referring to Fig. 3, grey parts flow to for reported data.
When second interface 4 port of intelligent exchanger receives subnet and closes data D4 sending, D4 is buffered in correspondence
Order caching queue MAC4 RxQ in.
Receive select unit according to selection algorithm, select an order caching queue in all RxQ, be sent to data solution
Analysis unit.Wherein selection algorithm can be random selection, the selection based on priority, selection based on arrival time etc., here
Use the selection algorithm based on priority.Assume that in current order caching queue, D4 has highest priority, receive choosing
Select unit by D4 alternatively data, be sent to data resolution unit.
Data resolution unit, according to message protocol, carries out Context resolution to D4.Extract source IP address, the purpose IP ground of D4
The information such as location, data type.It is sent to output port query unit by extracting information along with data.Wherein, extract information also may be used
To include other information.Wherein, data type includes:Reported data, control data, log-on data, accreditation verification, internet ask
Ask, internet response, interaction data etc..
Output port query unit, according to the type of data, inquires about the second forward table.If interaction data, first inquire about dynamic
State forwarding route table, finds corresponding purpose IP according to PubID, then searches fixing forwarding route table, and according to purpose IP, it is right to find
The output port answered;If reported data, log-on data, internet data, then can directly search and correspond to according to data type
Output port, without using purpose IP;If other data types remaining, then fixing forwarding to be searched according to purpose IP
The corresponding output port of routing table.Because D4 is reporting types data, then the output according to reported data in fixing forward table
Port, is sent in PC2 TxQ buffer queue.
D4 is sent to subnet monitoring unit by first interface 2 port by transmitting element, and subnet monitoring unit can be to D4
Processed, or be shown in graphical interface of user or be stored in background data base, do not elaborated here.
Described above taking reported data as a example, describes gateway to the processing procedure of data and method, this flow process and method
It is equally applicable to other data types, do not do here and describe one by one.Registration type data and the handling process of interactive type data
With method referring to Fig. 5.
Referring to Fig. 4, show that a kind of flow process of the embodiment of method supporting heterogeneous network interaction of the present invention is illustrated
Figure, the method includes:
Step 401:When intelligent exchanger receives data, data is parsed, extract data type, purpose IP etc.
Information;
When data is received, first by the data buffer storage receiving in the buffer queue of receiving interface, other are waited
Cell processing.
By order caching queue configuration preference level, according to the priority of queue, order caching queue is chosen priority
Data processing in high queue.
Communications protocol form with gateway, analyze data bag content are closed according to subnet, extracts source address, the purpose of packet
Address, data type mark, the foundation being judged as method next step.
If the data type of packet is interaction data in net, also need to extract the ID of interaction data in net(PubID).Its
Data type mark in middle packet and PubID can voluntarily arrange, as long as closing data packet form unification with subnet.
Step 402:Inquire about the second forward table, if exchange data in net, inquire about dynamic forwarding route table, according to extraction
Net in interaction data ID, search corresponding purpose IP, further according to destination address, search the forwarding in fixing forwarding route table
Output port.
Step 403:If to the data type of master functionality, such as internet data, reported data, registration number
According to according to the particular type of data, the corresponding forwarding inquiring about data type in the fixing forwarding route table of the second forward table exports
Port, and it is sent to output port.
Step 404:If sending the data closed to each subnet, according to purpose IP of data, inquire about the second forward table
In fixing forwarding route table, the corresponding of purpose IP forwards output port, and is sent to output port.
During host receiving data, corresponding data processing unit is sent data to according to data source port and is processed.
FPDP source and data processing unit correspond, and the data that corresponding ports receive will be sent to corresponding data processing list
Unit.
Step 406:If internet interaction data port, main frame sends data to sub- internet interactive unit,
Processed.
Step 407:If log-on data port, main frame sends data to intelligent exchanging policy unit, record registration
Information is simultaneously mated, and generates the first forward table, and the first forward table is mapped to the second forward table in intelligent exchanger
Dynamic forwarding route table.
Wherein, log-on data includes, and issues log-on data, subscription registration data.
When the corresponding function unit of main frame receives log-on data, judge the type of log-on data, if issuing note
Volumes evidence, then extract mark PubID and source address PubIP issuing log-on data, and is saved in issue data register table;As
Fruit is subscription registration data, then extract mark SubID, the issue Data Identification PubID to be subscribed to subscribing to data and subscribe to ground
Location SubIP, and be saved in subscription data registration table.Issue data register table according to issuing Data Identification PubID inquiry, if
There is record, then generate Data Matching entry, Data Identification PubID will be issued and subscribe to address SubIP record in the first forward table
In.
Step 408:If reported data port, main frame sends data to subnet monitoring unit, is processed.
In order to clearly introduce the detailed process of the method for heterogeneous network data interaction in the present invention, below one specifically real
Example is introduced.Referring to Fig. 5, it is a kind of schematic diagram of the data flow of one embodiment of method supporting heterogeneous network interaction.
Herein for identifying clearly, data is provided node to be referred to as publisher node or Pub node, correlation below describes
All with Pub Uniform Name;Data receiver requesting node is referred to as subscribing to node or Sub node, following related narration all with
Sub Uniform Name.
The flow process of heterogeneous network data exchange is divided into 2 steps, including:Pub/Sub content registration and Pub/Sub transmission.
● Pub/Sub content registration
There is Pub function and the node of Sub demand first has to register in the respective subnet Central Shanxi Plain.
Step 501:The data type of the node address of itself and registration is reported subnet to close by Pub node.As in figure subnet
Pub node in network 1, sub- on-net location is 0x0001, and log-on data is temperature data, and Pub node sends that information to it
Subnet closes.
Step 502:Subnet closes to be integrated the Pub receiving node address and type information with self ID, generates one only
One PubID as net between Pub content unique mark, for during Pub data transfer use.As figure, subnet closes 1 by pub1 node
The Pub log-on message reporting be designated GW1_0001_WD.Then subnet closes and for PubID log-on message to send gateway.Gateway connects
Receive PubID to be saved in Pub Registry together with the network address PubIP receiving PubID log-on message.
Sub Node registry is similar with Pub flow process.
Step 503:When registering Sub demand, Self address and content information to be subscribed to are reported subnet by Sub node
Close.
Step 504:If have multiple Sub nodes to subscribe in same subnet, equally applicable.As figure, the Sub section of subnet 4
Point 3 and Sub node 4, have subscribed the temperature data that the Pub node 1 of subnet 1 is issued.
Step 505:Subnet closes to be integrated the Sub receiving node address and self-ID information, generates unique SubID and makees
The mark of subscribed content between for net.Subnet closes again by SubID and its subscription PubID report gateway, and the Sub receiving is noted by gateway
Volume information and the network address are saved in Sub Registry.
Step 506:Pub Registry is searched according to the subscription PubID in Sub Registry.Search whether
PubID is the record of GW1_0001_WD.
Step 507:If there is chartered Pub content, then the address SubIP that Sub subscribes to is left in first turn
In delivering.Due to there being GW1_0001_WD to record in the Pub Registry of gateway, then by PubID(GW1_0001_WD)With
SubIP(210.72.141.40)It is saved in the first forward table
Step 508:First forward table is mapped to the dynamic forward-path of the second forward table in the internal memory of intelligent exchanger
In table, as the forwarding inquiries foundation of Pub/Sub.
● Pub/Sub transmits
Referring to the instruction of in figure filled arrows.
When carrying out Pub/Sub transmission, data content is transmitted with PubID and closes to subnet by Pub node, and subnet closes again
Packing data is sent to gateway.
When Pub data reaches intelligent exchanger, intelligent exchanger can carry out hardware parser to data, analyze data bag
Type, if Pub data, according to the form of Pub data, using PubID parsing as searching index, looks in the second forward table
Look for corresponding outlet, have subscribed this information if there is Sub, then Pub information is put into the corresponding port output queue of SubIP
In.Here due to there is the record that PubID is GW1_0001_WD in the dynamic forwarding route table of the second forward table, therefore
Finding this and recording corresponding SubIP is 210.72.141.40, searches fixing forwarding route table further according to this IP, finds correspondence defeated
Exit port, i.e. the port of subnet pass 4.
Wherein, in forward table, a PubID can correspond to multiple SubIP, it is possible to achieve the data transfer of one-to-many.Using
Such mode, main frame only need to be mapped to the second forward table according to log-on message renewal the first forward table and by the first forward table,
And need not intervene in real time, intelligent exchanger can be automatically performed the Pub/Sub transmission of one-to-many.
In this specification, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple modifications to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and be to fit to and principles disclosed herein and features of novelty phase one
The scope the widest causing.
Claims (9)
1. a kind of gateway supporting heterogeneous network interaction is it is characterised in that include:
Main frame, the entirety for described gateway controls data to process, and according to the data-interface receiving, calls corresponding data
Processing unit is processed, and safeguards the first forward table to the mapping of the second forward table;
Intelligent exchanger, for receiving the data that each subnet that described gateway connects closes and internet end sends, and to receiving
Data parsed, carry out the forwarding of described data according to the path of described second forward table;
Described main frame, including data processing unit, the first forwarding table unit and first interface unit, described data processing unit bag
Enclosed tool net monitoring unit, internet interactive unit and intelligent decision-making unit;
Subnet monitoring unit, for interacting of described gateway and local user, will close reporting information with visual pattern by subnet
It is shown to local user, or local user's instruction is issued to specified subnet and close;
Internet interactive unit, for interacting of described gateway and Internet user, will the information of described gateway be supplied to mutually
On-line customer, or the inquiry to all data of described gateway for the Internet user;
Intelligent decision-making unit, swaps strategy for interaction data log-on message in the net that reports according to described subnet
Distribution, described allocation result is stored in described first forward table, described first forward table is mapped to described intelligence and exchanges
In the dynamic route forward table of described second forward table in device;
First forwarding table unit, for storing the forwarding road for interaction data in described net for the described intelligent decision-making unit
Footpath;
First interface unit, for providing the interface data passage of described data processing unit and described intelligent exchanger, that is,
Each described data processing unit for described main frame provides 1 special described data channel, makes described data processing unit
Only process the data that described data channel sends;The interactive interface of described main frame and described intelligent exchanger internal memory is provided and leads to
Road.
2. gateway according to claim 1 is it is characterised in that described intelligent decision-making unit, including:
Issue data register unit, for extracting the log-on message of the issue data that described subnet pass reports, and will extract
The described log-on message issuing data is stored in issue data register table;
Subscribe to data registering unit, for extracting the log-on message of the subscription data that described subnet pass reports, and will extract
The described log-on message subscribing to data is stored in subscription data registration table;
Forward data matching unit, according to information in described issue data register table and described subscription data registration table, find out
The described described interaction data routing information issuing data and described subscription data match, and according to the described first forwarding list
The data form of unit is stored in described first and forwards in table unit;
Forward table map unit, for by content in the first forward table in main frame, being sent to the second forwarding of intelligent exchanger
In the dynamic route forward table of table;
Wherein, the content of described first forwarding table unit includes:Issue data ID (PubID) and subscribing interface address (SubIP);
The described content issuing data register table includes:Described issue data ID (PubID) and issuing interface address (PubIP);Described
The content subscribing to data registration table includes:Subscribe to data ID (SubID) and described subscribing interface address (SubIP).
3. gateway according to claim 1 is it is characterised in that described intelligent exchanger, including:
Receiving unit, closes, for receiving described subnet, the number being sent to described intelligent exchanger with described main frame first interface unit
According to, and be buffered in the corresponding order caching queue of interface;
Transmitting element, for closing the first interface with described main frame by the corresponding data is activation sending buffer queue to described subnet
The corresponding ports of unit;
Receive select unit, for selecting a queue from the order caching queue of described total interface, and by selected queue
In data is activation to data resolution unit;
Data resolution unit, for Context resolution is carried out to the data receiving, according to the described message format receiving data,
Extract the required information of inquiry, be sent to output port query unit;Described inquiry must information include:Data source address, purpose
Address, type identification and issue data ID (PubID);
Output port query unit, the required information of the described inquiry for being extracted according to described data resolution unit, inquiry is described
Second forward table, finds the output port of described data, and is sent in corresponding transmission buffer queue;
Second forwarding table unit, for the forward-path of all data through described intelligent exchanger for the storage, wherein, described turn
Send out path include described first forward table be mapped in the net of described second forward table the dynamic forwarding route table of interaction data and
Fixing forwarding route table;
Second interface unit, closes for connecting described intelligent exchanger and subnet;Including multiple sub-interface units, for described in each
Subnet closes provides 1 independent port, enables described intelligent exchanger to be simultaneously connected with multiple described subnets and closes.
4. gateway according to claim 3 it is characterised in that described second forwarding table unit, including:
Fixing forwarding route table, for storing fixing forward-path;The content of described fixing forwarding route table includes:Data class
Type, purpose IP, output port:
Dynamic forwarding route table, for storing the forward-path of dynamic change, that is, described first forward table at described second turn
The mapping delivered, identical with the first forward table content.
5. a kind of exchange method of gateway described in any one according to claim 3-4 is it is characterised in that include:
When intelligent exchanger receives data, described data is parsed, extract data type, purpose IP;
Particular type according to described data and destination address, described in inquiry the second forward table, the corresponding of data forwards output end
Mouthful, and it is sent to described output port;
During host receiving data, corresponding data processing unit is sent data to according to data source port and is processed.
6. method according to claim 5 it is characterised in that described when intelligent exchanger receives data, to described
Data is parsed, and extracts the information such as data type, purpose IP, including:
When data is received, first by the data buffer storage receiving in the buffer queue of receiving interface, other units are waited
Process;
By order caching queue configuration preference level, according to the priority of queue, described order caching queue is chosen priority
Data processing in high queue;
Communications protocol form with described gateway, analyze data bag content are closed according to subnet, extracts source address, the purpose of packet
Address, data type mark, the foundation being judged as method next step;
If the data type of described packet is interaction data in described net, also need to extract the ID of interaction data in described net
(PubID).
7. method according to claim 5 is it is characterised in that the described particular type according to described data and purpose IP,
Inquire about the corresponding of data described in the second forward table and forward output port, and be sent to described output port, including:
When inquiring about described second forward table, if interaction data in described net, inquire about dynamic forwarding route table, according to extract
In described net, the ID (PubID) of interaction data, searches corresponding purpose IP, further according to described destination address, searches described fixation
Described forwarding output port in forwarding route table;If described first interface unit is to the number of described data processing unit
According to, according to the particular type of described data, the correspondence of data type described in the fixing forwarding route table of inquiry the second forward table
Forward output port, and be sent to described output port;If sending the data closed to each subnet, according to the mesh of described data
IP, the corresponding forwarding output port of purpose IP described in the fixing forwarding route table of inquiry the second forward table, and be sent to institute
State output port.
8. method according to claim 5 is it is characterised in that described main frame sends data to according to FPDP source
Corresponding data processing unit is processed, including:
Described FPDP source is corresponded with described data processing unit, and the data that corresponding ports receive will be sent to correspondence
Data processing unit:
If log-on data port, main frame sends data to intelligent exchanging policy unit, and record log-on message is simultaneously carried out
Join, generate the first forward table, and described first forward table is mapped to described second forward table in described intelligent exchanger
Described dynamic forwarding route table;
If reported data port, main frame sends data to subnet monitoring unit, is processed;
If internet interaction data port, main frame sends data to internet interactive unit, is processed.
9. method according to claim 8 it is characterised in that described if log-on data port, data is sent out by main frame
Deliver to intelligent exchanging policy unit, record log-on message is simultaneously mated, and generates the first forward table, including:
When the corresponding function unit of main frame receives log-on data, judge the type of described log-on data, if issuing note
Volumes evidence, then extract described mark PubID issuing log-on data and source address PubIP, and is saved in described issue data note
In volume table;If subscription registration data, then extract the described mark SubID subscribing to data, described issue data to be subscribed to
Mark PubID and subscription address SubIP, and be saved in described subscription data registration table;According to described issue Data Identification
PubID inquiry described issue data register table, if there are record, then generates Data Matching entry, by described issue Data Identification
PubID and described subscription address SubIP records in described first forward table;Described log-on data includes, issue log-on data,
Subscription registration data.
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 CN103873369A (en) | 2014-06-18 |
CN103873369B true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920352A (en) * | 2018-07-27 | 2018-11-30 | 百度在线网络技术(北京)有限公司 | For obtaining the method and device of information |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN115168690B (en) * | 2022-09-06 | 2022-12-27 | 深圳市明源云科技有限公司 | Data query method and device based on browser plug-in, electronic equipment and medium |
Citations (4)
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 |
-
2012
- 2012-12-17 CN CN201210551906.3A patent/CN103873369B/en active Active
Patent Citations (4)
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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920352A (en) * | 2018-07-27 | 2018-11-30 | 百度在线网络技术(北京)有限公司 | For obtaining the method and device of information |
Also Published As
Publication number | Publication date |
---|---|
CN103873369A (en) | 2014-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7483395B2 (en) | Network device with VLAN topology discovery functions | |
CN105553849B (en) | A kind of traditional IP and SPTN network intercommunication method and system | |
CN103944768B (en) | Logical networking functionality is provided for managed computer networks | |
CN103873369B (en) | Gateway and method for supporting interaction of heterogeneous network | |
CN104380658B (en) | Flow classifier, business route flip-flop, the method and system of Message processing | |
CN101076972B (en) | Obtaining path information related to a virtual private lan services (vpls) based network | |
CN105207853B (en) | A kind of LAN method for managing and monitoring | |
CN102857416A (en) | Method for implementing virtual network and virtual network | |
CN102938794A (en) | Address resolution protocol (ARP) message forwarding method, exchanger and controller | |
CN106341330A (en) | Topology discovery method and system of SDN controller | |
CN101789949B (en) | Method and router equipment for realizing load sharing | |
CN105391635A (en) | Network virtualization method based on software defined network (SDN) | |
CN103501280A (en) | Access method of multilayer virtual overlay network | |
CN102984043B (en) | The retransmission method and device of multicast traffic stream | |
CN107566237A (en) | A kind of data message processing method and device | |
CN108075949A (en) | A kind of VPWS environment realizes the method and apparatus of RFC2544 | |
CN104349511B (en) | The distribution method and device of AP addresses in wlan network | |
CN101098256A (en) | Simple network management protocol based cluster management method and system | |
CN104205729B (en) | Method, device, and system for configuring device in network | |
CN102694732A (en) | Method and system for constructing virtual network based on local virtualization | |
CN106160212B (en) | A kind of remote centralized control system and method for power communication terminal | |
CN106100960A (en) | Method, Apparatus and system across the intercommunication of storage area network Fabric | |
CN109586973A (en) | Data flow hopping transmission method based on the pervasive mark network system | |
CN101984607A (en) | Method of Ethernet interface to simultaneously support routing function and switching function | |
CN102752199B (en) | Method and system for constructing data forwarding plane of virtual router |
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 |