CN107547173A - A kind of Internet of Things multimedia data communication method based on cloud - Google Patents
A kind of Internet of Things multimedia data communication method based on cloud Download PDFInfo
- Publication number
- CN107547173A CN107547173A CN201710750761.2A CN201710750761A CN107547173A CN 107547173 A CN107547173 A CN 107547173A CN 201710750761 A CN201710750761 A CN 201710750761A CN 107547173 A CN107547173 A CN 107547173A
- Authority
- CN
- China
- Prior art keywords
- address
- node
- cloud
- message
- prefix
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a kind of Internet of Things multimedia data communication method based on cloud, two kinds of nodes of infrastructure node and device node are included in the Internet of Things;Infrastructure node includes couple in router, interchanger and access node, for realizing route forwarding function;Device node be used to perceiving and collect with geographical position related data, and the data are converted into multi-medium data form, device node does not have route forwarding function.User can quickly realize multimedia data communication by this method, improve service quality, and the method can be widely used in the fields such as environmental monitoring, control of traffic and road.
Description
Technical field
The present invention relates to a kind of data communications method, more particularly to a kind of Internet of Things multi-medium data based on cloud to lead to
Letter method.
Background technology
Current Internet of Things framework has the following disadvantages:
1) user can only obtain target object information by database server, can not realize with destination object directly
Point to point link;
2) user can only inquire about the information of destination object, can not direct control targe object state;
3) target object information can only passively be read by read write line, and destination object can not be according to current state actively
Request data updates or sent a warning.
The content of the invention
Goal of the invention:The technical problems to be solved by the invention are in view of the shortcomings of the prior art, there is provided one kind is based on cloud
Internet of Things multimedia data communication method
Technical scheme:The invention discloses a kind of Internet of Things multimedia data communication method based on cloud, the Internet of Things
In include two kinds of nodes of infrastructure node and device node;Infrastructure node includes couple in router, interchanger and access
Node, for realizing route forwarding function;Device node be used for perceive and collect with geographical position related data, and will described in
Data are converted into multi-medium data form, such as video, and device node does not have route forwarding function;Access node and equipment section
Point has a wave point, and device node is communicated with access node by wave point, synchronization, and device node is only
It can be communicated with an access node, the access node is referred to as the association access node of device node;Internet of Things by two with
On subnet form, subnet include a couple in router, more than two interchangers, more than two access nodes with
And the device node associated with the access node is formed, subnet is connected by couple in router with internet;One subnet
The topological structure of infrastructure node is tree, and root node is couple in router, and intermediate node is interchanger, leaf node
For access node;With the device build that an access node associates into an Internet of Things cloud, the cloud member in the Internet of Things cloud can that
This cooperation is common to produce the multi-medium data related to a geographical position, such as the video in market, user pass through internet energy
The video is enough obtained to judge whether the market is crowded etc., equipment can either be used as cloud member to provide multi-medium data, also can
As user's acquisition request multi-medium data;
User obtains the multi-medium data related to a geographical position by cloud address and unicast address;Cloud address is by net
Network prefix, link prefix, data ID and cloud address designator are formed, wherein one subnet of network prefix unique mark, link
Infrastructure node in one subnet of prefix unique mark, a kind of multimedia data type of data ID unique marks, such as scheme
Piece, audio or video;Network prefix, link prefix and a kind of multimedia number related to geographical position of data ID unique marks
According to;It is cloud address or unicast address that cloud address designator, which is used to identify the address, if cloud address designator is 1, is shown
The address is cloud address, if cloud address designator is 0, it is unicast address to show the address;One cloud is unique by cloud address
Mark;
Unicast address is made up of network prefix, link prefix, device id and cloud address designator, and wherein network prefix is only
One one subnet of mark, the infrastructure node in one subnet of link prefix unique mark, the device id of couple in router are
1, interchanger and access node apparatus ID are 0, and the device id of device node is hardware ID, such as MAC addresses;Cloud address identifies
Identifier value is 0, and it is unicast address to show the address;
Link prefix is divided intoIndividual level, wherein, parameter i is the bit length of link prefix, and parameter c is representative
The bit length of one level;The link prefix of couple in router is 0, and network prefix is pre-set, such as 3efc:1:1:1/
64;The excessively following processes of one Ge Zi Netcoms realize that link prefix configures:
Step 101:Start;
Step 102:Interface f transmission link prefix of the couple in router from each eligible 1 configures message, before the link
The source address for sewing configuration message is the unicast address of couple in router, destination address 0, is loaded as parameter c, parameter i, parameter f
With parameter h, parameter h initial value is 0, and parameter h maximum occurrences scope is the depth capacity of the tree topology of subnet, (h
+ 1) value refers to the depth value of tree where the infrastructure node for receiving link prefix configuration message;
Condition 1:The interface is connected with an infrastructure node;
Step 103:After the infrastructure node being connected with eligible 1 interface receives link prefix configuration message,
The link prefix of an i bit is built, wherein, the preceding hc bit values of link prefix configure the source address of message for link prefix
Link prefix preceding hc bit values, ensuing c bit values are interface f, and last i- (h+1) c bit values are 0;
Step 104:If the infrastructure node for receiving link prefix configuration message is interchanger, step is performed
105, otherwise perform step 106;
Step 105:Parameter h value is incremented by 1 by the interchanger for receiving link prefix configuration message, from each eligible
1 interface f transmission links prefix configuration message, the source address of link prefix configuration message is the unicast address of the interchanger,
Destination address is 0, is loaded as parameter c, parameter i and parameter h, execution step 103;
Step 106:Terminate;
After access node configuration link prefix, beacon message is periodically sent by wave point;Closed with the access node
After the device node of connection receives beacon message, it preserves the link prefix of the access node.
Said process can realize that the link prefix of equipment is configured so that it is guaranteed that the correct communication of multi-medium data.
In the method for the invention, information of infrastructure node one concordance list of maintenance for recording cloud member, one
Index list item includes interface domain and cloud address field;
A kind of multi-medium data MD1 related to geographical position is by cloud address CA1 unique marks, in cloud address CA1, network
Prefix is GRP1, and link prefix LRP2, data ID are CID1, and under conditions of cloud identifier is 1, link address is connecing for LRP2
Ingress AP2 creates multi-medium data MD1 by building cloud TC1, and process is as follows:
Step 201:Start;
Step 202:Access node AP2 creates a unicast address, and the network prefix of the unicast address is 0, link prefix
For LRP2, device id 0, cloud identifier is 0, and access node AP2 sends from wave point and creates multimedia data message, and this disappears
The source address of breath for create unicast address, destination address CA1;
Step 203:Received with the access node AP2 device nodes associated after creating multimedia data message, if can create
Build data MD1 partial data, then send an establishment multi-medium data response message, establishment multi-medium data response disappears
The source address of breath is creates the destination address of multimedia data message, and destination address is with creating the source of multimedia data message
Location, load the multi-medium data for establishment;
Step 204:After access node AP2 receives all establishment multi-medium data response messages, multimedia number will be created
Multi-medium data MD1 is built into according to the multi-medium data in response message, then sending multi-medium data from wave point shares
Message, the source address that the multi-medium data shares message are the unicast address created in step 202, destination address CA1, are loaded
For data MD1;
Step 205:Received with the access node AP2 device nodes associated after creating the shared message of multi-medium data, if
There are enough memory spaces to preserve data MD1, then it preserves the cloud member that data MD1 oneself will be identified as cloud TC1 simultaneously;
Step 206:Terminate;
After access node AP2 creates data MD1, data MD1 is deleted;
After device node becomes cloud TC1 cloud member, the beacon message load that it is broadcasted is cloud address CA1.
Said process can quickly create multi-medium data and be supplied to user.
In the method for the invention, if after the beacon message that access node receives that load is cloud address CA1 from interface f1,
Judge the index list item that whether cloudily location thresholding is CA1 in the concordance list of oneself and interface thresholding is f1, if it does not exist, then
Perform operations described below:
Step 301:Start;
Step 302:Access node creates the concordance list that cloud address thresholding is CA1 and interface thresholding is f1 in concordance list
, then create one oneself unicast address and father node unicast address, in the unicast address of oneself, network prefix is
0, link prefix is the link prefix of the access node, and device id 0, cloud identifier is 0, in the unicast address of father node,
Network prefix is 0, and link prefix is the link prefix of father node, if father node is couple in router, device id 1 is no
Then device id is 0, and cloud identifier is 0, then from the interface transmission beacon message being connected with father node, the source of the beacon message
Location is the unicast address of oneself, and destination address is the unicast address of father node, is loaded as cloud address CA1;
Step 303:Father node judges the index of oneself after interface f2 receives load as cloud address CA1 beacon message
The index list item that cloudily whether location thresholding is CA1 in table and interface thresholding is f2, if it is present step 306 is performed, it is no
Then perform step 304;
Step 304:Father node creates the index list item that cloud address thresholding is CA1 and interface thresholding is f2 in concordance list,
If father node is couple in router, step 306 is performed, otherwise performs step 305;
Step 305:Father node creates unicast address of oneself and the unicast address of the father node of oneself, oneself
In unicast address, network prefix 0, link prefix is the link prefix of oneself, and device id 0, cloud identifier is 0, at oneself
Father node unicast address in, network prefix 0, link prefix be father node link prefix, if the father node of oneself
For couple in router, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, is then connected from the father node with oneself
Interface sends beacon message, and the source address of the beacon message is the unicast address of oneself, and destination address is the father node of oneself
Unicast address, load as cloud address CA1, execution step 303;
Step 306:Terminate.
Said process quickly can create concordance list so that it is guaranteed that user's quick obtaining multi-medium data.
In the method for the invention, if device node is invalid or departs from the communication model of the access node currently associated
Enclose, then access node can not receive the beacon frame of device node transmission;If at the appointed time, such as 1s, access
Node does not receive the beacon message that any load is cloud address CA1 from interface f1, and access node deletes cloud from concordance list
The index list item that address thresholding is CA1 and interface thresholding is f1;If access node does not have cloud address in concordance list, thresholding is
CA1 index list item, then perform following cloud retrieval list items and delete process:
Step 401:Start;
Step 402:The unicast address of access node establishment one oneself and the unicast address of father node, in the unicast of oneself
In address, network prefix 0, link prefix is the link prefix of the access node, and device id 0, cloud identifier is 0, in father
In the unicast address of node, network prefix 0, link prefix is the link prefix of father node, if father node route for access
Device, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, then sends retrieval list item from the interface being connected with father node
Delete message, the source address that the retrieval list item deletes message be the unicast address of oneself, and destination address is the unicast of father node
Location, load as cloud address CA1;
Step 403:Father node is after interface f2 receives load as cloud address CA1 retrieval list item deletion message, from index
The index list item that cloud address thresholding is CA1 and interface thresholding is f2 is deleted in table, then judges whether have in the concordance list of oneself
Cloud address thresholding is CA1 index list item, if it is present performing step 406, otherwise performs step 404;
Step 404:If father node is couple in router, step 406 is performed, otherwise performs step 405;
Step 405:Father node creates unicast address of oneself and the unicast address of the father node of oneself, oneself
In unicast address, network prefix 0, link prefix is the link prefix of oneself, and device id 0, cloud identifier is 0, at oneself
Father node unicast address in, network prefix 0, link prefix be oneself father node link prefix, if the father of oneself
Node is couple in router, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, then from the father node phase with oneself
Interface even sends retrieval list item and deletes message, and the source address that the retrieval list item deletes message is the unicast address of oneself, purpose
Address is the unicast address of oneself father node, is loaded as cloud address CA1, execution step 403;
Step 406:Terminate.
Said process quickly can update concordance list so that it is guaranteed that user quickly correctly obtains multi-medium data.
In the method for the invention, infrastructure node safeguards that a required list is used to record unfinished multi-medium data
Solicited message, a request list item include interface domain and cloud address field;
A kind of multi-medium data MD2 related to geographical position passes through structure by cloud address CA2 unique marks, data MD2
Cloud TC2 is created;Device node D1 is located in subnet S1, and subnet S1 network prefix is GRP1, device node D1 and access node
AP1 is associated;If meeting condition 2 or condition 3, device node D1 obtains data MD2 by following processes:
Condition 2:Cloud address CA2 network prefix is the link prefix that GRP1 and link prefix are equal to access node AP2;
Condition 3:Cloud address CA2 network prefix is not equal to GRP1, but a cloud TC2 in subnet S1 at least be present
Cloud member;
Step 501:Start;
Step 502:Device node D1 creates a unicast address, in the unicast address, network prefix 0, and link prefix
For access node AP1 link prefix, device id is device node D1 device id, then sends multimedia data request and disappears
Breath, the source address of the multimedia data request message is the unicast address of structure, and destination address is cloud address CA2;
Step 503:Judgement is that infrastructure node or device node receive multimedia data request message from interface f3,
If infrastructure node receives multimedia data request message, then step 504 is performed, otherwise perform step 511;
Step 504:If there is the request that cloud address is CA2 and interface thresholding is f3 in infrastructure node in required list
List item, then step 514 is performed, otherwise perform step 505;
Step 505:Infrastructure node creates the required list that cloud address is CA2 and interface thresholding is f3 in required list
, if infrastructure node only has the request list item that a cloud address is CA2, then perform step 506, otherwise perform step
514;
Step 506:If the infrastructure node index list item that at least a cloud address is CA2 in concordance list,
Step 507 is performed, otherwise performs step 508;
Step 507:Infrastructure node randomly chooses the index list item that cloud address is CA2, and from the index list item
The multimedia data request message that receives of interface domain forwarding, perform step 503;
Step 508:If infrastructure node is access node AP2, step 509 is performed, otherwise performs step 510;
Step 509:Access node AP2 performs step 201~206 and creates multi-medium data MD2, then builds matchmaker more than one
Volume data response message, the load of the multi-medium data response message is data MD2, and source address is the multi-medium data received
The destination address of request message, destination address are the source address of the multimedia data request message received, perform step 514;
Step 510:Infrastructure node checks all child nodes, if the link prefix of all child nodes and cloud address
CA2 link prefix matching degree and oneself is identical with cloud address CA2 link prefix matching degree, then from father node phase
Interface repeating multimedia data request information even;Otherwise a child node, link prefix and the cloud address of the child node are selected
CA2 link prefix matching degree is maximum, then from the interface repeating multimedia data request information being connected with the child node;Hold
Row step 503;Matching degree is judged as comparing since first bit of link prefix, and consecutive identical number of bits is got over
More, matching degree is bigger;
Step 511:Data MD2 can be provided if receiving the device node of multimedia data request message, is performed
Step 513, step 512 is otherwise performed;
Step 512:The device node for receiving multimedia data request message abandons multimedia data request message, performs
Step 514;
Step 513:The device node for receiving multimedia data request message sends a multi-medium data response message,
The load of the multi-medium data response message is data MD2, and source address is the purpose of the multimedia data request message received
Address, destination address are the source address of the multimedia data request message received;
Step 514:If infrastructure node builds or receives multi-medium data response message, step is performed
515, otherwise perform step 516;
Step 515:Infrastructure node checks required list, is performed for the request list item that each cloud address is CA2 following
Operation:Then infrastructure node deletes the request list item from the interface thresholding repeating multimedia data response message of the list item,
Perform step 514;
Step 516:After device node D1 receives multi-medium data response message, data MD2 is preserved, while oneself is identified
For cloud TC2 cloud member;
Step 517:Terminate;
After device node D1 becomes cloud TC2 cloud member, the beacon message load that it is broadcasted is cloud address CA2.
User quickly can correctly obtain multi-medium data by said process.
In the method for the invention, uniquely marked by cloud address CA3 in a kind of multi-medium data MD3 related to geographical position
Knowing, data MD3 is created by building cloud TC3, and device node D1 is located in subnet S1, and subnet S1 network prefix is GRP1,
Couple in router is AR1, in subnet S2, network prefix GRP2, couple in router AR2, and in the CA3 of cloud address, network prefix
For GRP2, link prefix domain access node AP4 link prefix is identical, and access node AP4 is located in subnet S2, device node D1
Under conditions of being associated with access node AP1, if meeting condition 4, device node D1 obtains data MD3 by following processes:
Condition 4:Any cloud TC3 cloud member is not present in subnet S1;
Step 601:Start;
Step 602:Device node D1 creates a unicast address, in the unicast address, network prefix 0, and link prefix
For access node AP1 link prefix, device id is device node D1 device id, then sends multimedia data request and disappears
Breath, the source address of the multimedia data request message is the unicast address of structure, and destination address is cloud address CA3;
Step 603:Judgement is that infrastructure node or device node receive multimedia data request message from interface f4,
If infrastructure node receives multimedia data request message, then step 604 is performed, otherwise perform step 614;
Step 604:If meeting condition 5 or meeting condition 6 and 7 simultaneously, step 615 is performed, otherwise performs step
605;
Condition 5:The request list item that cloud address is CA3 and interface thresholding is f4 in required list be present in infrastructure node;
Condition 6:Infrastructure node is couple in router AR2 and interface f4 is connected with internet;
Condition 7:The request list item that a cloud address is CA3 in required list at least be present in infrastructure node;
Condition 8:The request list item that any one cloud address is CA3 is not present in infrastructure node in required list;
Step 605:If meeting condition 6 and 8, step 607 is performed, otherwise performs step 606;
Step 606:Infrastructure node creates the required list that cloud address is CA3 and interface thresholding is f4 in required list
, if infrastructure node only has the request list item that a cloud address is CA3, then perform step 607, otherwise perform step
615;
Step 607:If infrastructure node is located in subnet S1, step 608 is performed, otherwise performs step 609;
Step 608:If infrastructure node is couple in router AR1, by the source in multimedia data request message
The network prefix of address is updated to GRP1, and multimedia data request message then is sent into internet, passes through the more matchmakers in internet
Volume data request message is finally reached couple in router AR2;Otherwise, infrastructure node forwards from the interface being connected with father node
Multimedia data request message;Perform step 603;
Step 609:If the infrastructure node index list item that at least a cloud address is CA3 in concordance list,
Step 610 is performed, otherwise performs step 611;
Step 610:Infrastructure node randomly chooses the index list item that cloud address is CA3, and from the index list item
The multimedia data request message that receives of interface domain forwarding, perform step 603;
Step 611:If infrastructure node is access node AP4, step 612 is performed, otherwise performs step 613;
Step 612:Access node AP4 performs step 201~206 and creates multi-medium data MD3, then builds matchmaker more than one
Volume data response message, the load of the multi-medium data response message is data MD3, and source address is the multi-medium data received
The destination address of request message, destination address are the source address of the multimedia data request message received, perform step 615;
Step 613:Infrastructure node checks all child nodes, if the link prefix of all child nodes and cloud address
CA2 link prefix matching degree and oneself is identical with cloud address CA2 link prefix matching degree, then from father node phase
Interface repeating multimedia data request information even;Otherwise a child node, link prefix and the cloud address of the child node are selected
CA2 link prefix matching degree is maximum, then from the interface repeating multimedia data request information being connected with the child node;Hold
Row step 603;Matching degree is judged as comparing since first bit of link prefix, and consecutive identical number of bits is got over
More, matching degree is bigger;
Step 614:Data MD3 can be provided if receiving the device node of multimedia data request message, is sent
One multi-medium data response message, the load of the multi-medium data response message are data MD3, source address be receive it is more
The destination address of media data request message, destination address are the source address of the multimedia data request message received;Otherwise,
The device node for receiving multimedia data request message abandons multimedia data request message;
Step 615:If infrastructure node builds or receives multi-medium data response message, step is performed
616, otherwise perform step 617;
Step 616:If infrastructure node is couple in router AR2, multi-medium data response message is forwarded to
Internet, couple in router AR1 is eventually arrived at by Internet multi-media data response message, otherwise, infrastructure node is looked into
Required list is seen, operations described below is performed for the request list item that each cloud address is CA3:Interface of the infrastructure node from the list item
Thresholding repeating multimedia data response message, the request list item is then deleted, perform step 615;
Step 617:After device node D1 receives multi-medium data response message, data MD2 is preserved, while oneself is identified
For cloud TC3 cloud member;
Step 618:Terminate;
After device node D1 becomes cloud TC3 cloud member, the beacon message load that it is broadcasted is cloud address CA3.
User quickly can correctly obtain multi-medium data by said process.
Beneficial effect:The invention provides a kind of Internet of Things multimedia data communication method based on cloud, user passes through this
Method can quickly realize multimedia data communication, improve service quality, and the method can be widely used in environmental monitoring, road traffic pipe
The fields such as reason.
Brief description of the drawings
The present invention is done with reference to the accompanying drawings and detailed description and further illustrated, of the invention is above-mentioned
And/or otherwise advantage will become apparent.
Fig. 1 is link prefix configuration flow schematic diagram of the present invention.
Fig. 2 is establishment multi-medium data flow schematic diagram of the present invention.
Fig. 3 is establishment concordance list schematic flow sheet of the present invention.
Fig. 4 is renewal concordance list schematic flow sheet of the present invention.
Fig. 5 is that local data of the present invention obtains schematic flow sheet.
Fig. 6 is Remote data service schematic flow sheet of the present invention.
Embodiment:
The invention provides a kind of Internet of Things multimedia data communication method based on cloud, user can be quick by this method
Multimedia data communication is realized, is improved service quality, the method can be widely used in the fields such as environmental monitoring, control of traffic and road.
Fig. 1 is link prefix configuration flow schematic diagram of the present invention.Infrastructure node is included in the Internet of Things
With two kinds of nodes of device node;Infrastructure node includes couple in router, interchanger and access node, for realizing that route turns
Send out function;Device node be used to perceiving and collect with geographical position related data, and the data are converted into multimedia number
According to form, device node does not have route forwarding function;Access node and device node have a wave point, device node
Communicated with access node by wave point, synchronization, device node can only be communicated with an access node, should
Access node is referred to as the association access node of device node;Internet of Things is made up of more than two subnets, and a subnet includes one
Individual couple in router, more than two interchangers, more than two access nodes and the equipment associated with the access node
Node is formed, and subnet is connected by couple in router with internet;The topological structure of the infrastructure node of one subnet is tree
Shape structure, root node are couple in router, and intermediate node is interchanger, and leaf node is access node;With an access node
Into an Internet of Things cloud, cloud member's device build of association in the Internet of Things cloud can cooperate with one another common produce and a geographical position
The multi-medium data of correlation is put, equipment can either be used as cloud member to provide multi-medium data, can be used as user's acquisition request
Multi-medium data;
User obtains the multi-medium data related to a geographical position by cloud address and unicast address;Cloud address is by net
Network prefix, link prefix, data ID and cloud address designator are formed, wherein one subnet of network prefix unique mark, link
Infrastructure node in one subnet of prefix unique mark, a kind of multimedia data type of data ID unique marks;Before network
Sew, link prefix and a kind of multi-medium data related to geographical position of data ID unique marks;Cloud address designator is used to mark
It is cloud address or unicast address to know the address, if cloud address designator is 1, it is cloud address to show the address, if cloud
Address designator is 0, then it is unicast address to show the address;One cloud is by cloud address unique mark;
Unicast address is made up of network prefix, link prefix, device id and cloud address designator, and wherein network prefix is only
One one subnet of mark, the infrastructure node in one subnet of link prefix unique mark, the device id of couple in router are
1, interchanger and access node apparatus ID are 0, and the device id of device node is hardware ID;Cloud address designator value is 0, shows this
Address is unicast address;
Link prefix is divided intoIndividual level, wherein, parameter i is the bit length of link prefix, and parameter c is to represent one
The bit length of individual level;The link prefix of couple in router is 0, and network prefix is pre-set, such as 3efc:1:1:1/64;
The excessively following processes of one Ge Zi Netcoms realize that link prefix configures:
Step 101:Start;
Step 102:Interface f transmission link prefix of the couple in router from each eligible 1 configures message, before the link
The source address for sewing configuration message is the unicast address of couple in router, destination address 0, is loaded as parameter c, parameter i, parameter f
With parameter h, parameter h initial value is 0;Parameter h maximum occurrences scope for subnet tree topology depth capacity, (h
+ 1) value refers to the depth value of tree where the infrastructure node for receiving link prefix configuration message.
Condition 1:The interface is connected with an infrastructure node;
Step 103:After the infrastructure node being connected with eligible 1 interface receives link prefix configuration message,
The link prefix of an i bit is built, wherein, the preceding hc bit values of link prefix configure the source address of message for link prefix
Link prefix preceding hc bit values, ensuing c bit values are interface f, and last i- (h+1) c bit values are 0;
Step 104:If the infrastructure node for receiving link prefix configuration message is interchanger, step is performed
105, otherwise perform step 106;
Step 105:Parameter h value is incremented by 1 by the interchanger for receiving link prefix configuration message, from each eligible
1 interface f transmission links prefix configuration message, the source address of link prefix configuration message is the unicast address of the interchanger,
Destination address is 0, is loaded as parameter c, parameter i and parameter h, execution step 103;
Step 106:Terminate;
After access node configuration link prefix, beacon message is periodically sent by wave point;Closed with the access node
After the device node of connection receives beacon message, it preserves the link prefix of the access node.
Fig. 2 is establishment multi-medium data flow schematic diagram of the present invention.Infrastructure node safeguards a concordance list
For recording the information of cloud member, an index list item includes interface domain and cloud address field;
A kind of multi-medium data MD1 related to geographical position is by cloud address CA1 unique marks, in cloud address CA1, network
Prefix is GRP1, and link prefix LRP2, data ID are CID1, and under conditions of cloud identifier is 1, link address is connecing for LRP2
Ingress AP2 creates multi-medium data MD1 by building cloud TC1, and process is as follows:
Step 201:Start;
Step 202:Access node AP2 creates a unicast address, and the network prefix of the unicast address is 0, link prefix
For LRP2, device id 0, cloud identifier is 0, and access node AP2 sends from wave point and creates multimedia data message, and this disappears
The source address of breath for create unicast address, destination address CA1;
Step 203:Received with the access node AP2 device nodes associated after creating multimedia data message, if can create
Build data MD1 partial data, then send an establishment multi-medium data response message, establishment multi-medium data response disappears
The source address of breath is creates the destination address of multimedia data message, and destination address is with creating the source of multimedia data message
Location, load the multi-medium data for establishment;
Step 204:After access node AP2 receives all establishment multi-medium data response messages, multimedia number will be created
Multi-medium data MD1 is built into according to the multi-medium data in response message, then sending multi-medium data from wave point shares
Message, the source address that the multi-medium data shares message are the unicast address created in step 202, destination address CA1, are loaded
For data MD1;
Step 205:Received with the access node AP2 device nodes associated after creating the shared message of multi-medium data, if
There are enough memory spaces to preserve data MD1, then it preserves the cloud member that data MD1 oneself will be identified as cloud TC1 simultaneously;
Step 206:Terminate;
After access node AP2 creates data MD1, data MD1 is deleted;
After device node becomes cloud TC1 cloud member, the beacon message load that it is broadcasted is cloud address CA1.
Fig. 3 is establishment concordance list schematic flow sheet of the present invention.If access node receives load from interface f1
After cloud address CA1 beacon message, judge that whether cloudily location thresholding is CA1 in the concordance list of oneself and interface thresholding is f1's
List item is indexed, if it does not exist, then performing operations described below:
Step 301:Start;
Step 302:Access node creates the concordance list that cloud address thresholding is CA1 and interface thresholding is f1 in concordance list
, then create one oneself unicast address and father node unicast address, in the unicast address of oneself, network prefix is
0, link prefix is the link prefix of the access node, and device id 0, cloud identifier is 0, in the unicast address of father node,
Network prefix is 0, and link prefix is the link prefix of father node, if father node is couple in router, device id 1 is no
Then device id is 0, and cloud identifier is 0, then from the interface transmission beacon message being connected with father node, the source of the beacon message
Location is the unicast address of oneself, and destination address is the unicast address of father node, is loaded as cloud address CA1;
Step 303:Father node judges the index of oneself after interface f2 receives load as cloud address CA1 beacon message
The index list item that cloudily whether location thresholding is CA1 in table and interface thresholding is f2, if it is present step 306 is performed, it is no
Then perform step 304;
Step 304:Father node creates the index list item that cloud address thresholding is CA1 and interface thresholding is f2 in concordance list,
If father node is couple in router, step 306 is performed, otherwise performs step 305;
Step 305:Father node creates unicast address of oneself and the unicast address of the father node of oneself, oneself
In unicast address, network prefix 0, link prefix is the link prefix of oneself, and device id 0, cloud identifier is 0, at oneself
Father node unicast address in, network prefix 0, link prefix be father node link prefix, if the father node of oneself
For couple in router, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, is then connected from the father node with oneself
Interface sends beacon message, and the source address of the beacon message is the unicast address of oneself, and destination address is the father node of oneself
Unicast address, load as cloud address CA1, execution step 303;
Step 306:Terminate.
Fig. 4 is renewal concordance list schematic flow sheet of the present invention.If device node is invalid or departs from current close
The communication range of the access node of connection, then access node can not receive the beacon frame of device node transmission;If advising
In fixing time, access node does not receive beacon message of any load for cloud address CA1 from interface f1, and access node is from rope
Draw the index list item for deleting that cloud address thresholding is CA1 and interface thresholding is f1 in table;If access node does not have in concordance list
Cloud address thresholding is CA1 index list item, then performs following cloud retrieval list items and delete process:
Step 401:Start;
Step 402:The unicast address of access node establishment one oneself and the unicast address of father node, in the unicast of oneself
In address, network prefix 0, link prefix is the link prefix of the access node, and device id 0, cloud identifier is 0, in father
In the unicast address of node, network prefix 0, link prefix is the link prefix of father node, if father node route for access
Device, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, then sends retrieval list item from the interface being connected with father node
Delete message, the source address that the retrieval list item deletes message be the unicast address of oneself, and destination address is the unicast of father node
Location, load as cloud address CA1;
Step 403:Father node is after interface f2 receives load as cloud address CA1 retrieval list item deletion message, from index
The index list item that cloud address thresholding is CA1 and interface thresholding is f2 is deleted in table, then judges whether have in the concordance list of oneself
Cloud address thresholding is CA1 index list item, if it is present performing step 406, otherwise performs step 404;
Step 404:If father node is couple in router, step 406 is performed, otherwise performs step 405;
Step 405:Father node creates unicast address of oneself and the unicast address of the father node of oneself, oneself
In unicast address, network prefix 0, link prefix is the link prefix of oneself, and device id 0, cloud identifier is 0, at oneself
Father node unicast address in, network prefix 0, link prefix be oneself father node link prefix, if the father of oneself
Node is couple in router, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, then from the father node phase with oneself
Interface even sends retrieval list item and deletes message, and the source address that the retrieval list item deletes message is the unicast address of oneself, purpose
Address is the unicast address of oneself father node, is loaded as cloud address CA1, execution step 403;
Step 406:Terminate.
Fig. 5 is that local data of the present invention obtains schematic flow sheet.Infrastructure node safeguards that a required list is used
In the unfinished multimedia data request information of record, a request list item includes interface domain and cloud address field;
A kind of multi-medium data MD2 related to geographical position passes through structure by cloud address CA2 unique marks, data MD2
Cloud TC2 is created;Device node D1 is located in subnet S1, and subnet S1 network prefix is GRP1, device node D1 and access node
AP1 is associated;If meeting condition 2 or condition 3, device node D1 obtains data MD2 by following processes:
Condition 2:Cloud address CA2 network prefix is the link prefix that GRP1 and link prefix are equal to access node AP2;
Condition 3:Cloud address CA2 network prefix is not equal to GRP1, but a cloud TC2 in subnet S1 at least be present
Cloud member;
Step 501:Start;
Step 502:Device node D1 creates a unicast address, in the unicast address, network prefix 0, and link prefix
For access node AP1 link prefix, device id is device node D1 device id, then sends multimedia data request and disappears
Breath, the source address of the multimedia data request message is the unicast address of structure, and destination address is cloud address CA2;
Step 503:Judgement is that infrastructure node or device node receive multimedia data request message from interface f3,
If infrastructure node receives multimedia data request message, then step 504 is performed, otherwise perform step 511;
Step 504:If there is the request that cloud address is CA2 and interface thresholding is f3 in infrastructure node in required list
List item, then step 514 is performed, otherwise perform step 505;
Step 505:Infrastructure node creates the required list that cloud address is CA2 and interface thresholding is f3 in required list
, if infrastructure node only has the request list item that a cloud address is CA2, then perform step 506, otherwise perform step
514;
Step 506:If the infrastructure node index list item that at least a cloud address is CA2 in concordance list,
Step 507 is performed, otherwise performs step 508;
Step 507:Infrastructure node randomly chooses the index list item that cloud address is CA2, and from the index list item
The multimedia data request message that receives of interface domain forwarding, perform step 503;
Step 508:If infrastructure node is access node AP2, step 509 is performed, otherwise performs step 510;
Step 509:Access node AP2 performs step 201~206 and creates multi-medium data MD2, then builds matchmaker more than one
Volume data response message, the load of the multi-medium data response message is data MD2, and source address is the multi-medium data received
The destination address of request message, destination address are the source address of the multimedia data request message received, perform step 514;
Step 510:Infrastructure node checks all child nodes, if the link prefix of all child nodes and cloud address
CA2 link prefix matching degree and oneself is identical with cloud address CA2 link prefix matching degree, then from father node phase
Interface repeating multimedia data request information even;Otherwise a child node, link prefix and the cloud address of the child node are selected
CA2 link prefix matching degree is maximum, then from the interface repeating multimedia data request information being connected with the child node;Hold
Row step 503;Matching degree is judged as comparing since first bit of link prefix, and consecutive identical number of bits is got over
More, matching degree is bigger;
Step 511:Data MD2 can be provided if receiving the device node of multimedia data request message, is performed
Step 513, step 512 is otherwise performed;
Step 512:The device node for receiving multimedia data request message abandons multimedia data request message, performs
Step 514;
Step 513:The device node for receiving multimedia data request message sends a multi-medium data response message,
The load of the multi-medium data response message is data MD2, and source address is the purpose of the multimedia data request message received
Address, destination address are the source address of the multimedia data request message received;
Step 514:If infrastructure node builds or receives multi-medium data response message, step is performed
515, otherwise perform step 516;
Step 515:Infrastructure node checks required list, is performed for the request list item that each cloud address is CA2 following
Operation:Then infrastructure node deletes the request list item from the interface thresholding repeating multimedia data response message of the list item,
Perform step 514;
Step 516:After device node D1 receives multi-medium data response message, data MD2 is preserved, while oneself is identified
For cloud TC2 cloud member;
Step 517:Terminate;
After device node D1 becomes cloud TC2 cloud member, the beacon message load that it is broadcasted is cloud address CA2.
Fig. 6 is Remote data service schematic flow sheet of the present invention.In a kind of multimedia related to geographical position
Data MD3 is created by cloud address CA3 unique marks, data MD3 by building cloud TC3, and device node D1 is located at subnet S1
Interior, subnet S1 network prefix is GRP1, in couple in router AR1, subnet S2, network prefix GRP2, and couple in router
For AR2, in the CA3 of cloud address, network prefix GRP2, link prefix domain access node AP4 link prefix is identical, access node
AP4 is located in subnet S2, under conditions of device node D1 associates with access node AP1, if meeting condition 4, and device node D1
Data MD3 is obtained by following processes:
Condition 4:Any cloud TC3 cloud member is not present in subnet S1;
Step 601:Start;
Step 602:Device node D1 creates a unicast address, in the unicast address, network prefix 0, and link prefix
For access node AP1 link prefix, device id is device node D1 device id, then sends multimedia data request and disappears
Breath, the source address of the multimedia data request message is the unicast address of structure, and destination address is cloud address CA3;
Step 603:Judgement is that infrastructure node or device node receive multimedia data request message from interface f4,
If infrastructure node receives multimedia data request message, then step 604 is performed, otherwise perform step 614;
Step 604:If meeting condition 5 or meeting condition 6 and 7 simultaneously, step 615 is performed, otherwise performs step
605;
Condition 5:The request list item that cloud address is CA3 and interface thresholding is f4 in required list be present in infrastructure node;
Condition 6:Infrastructure node is couple in router AR2 and interface f4 is connected with internet;
Condition 7:The request list item that a cloud address is CA3 in required list at least be present in infrastructure node;
Condition 8:The request list item that any one cloud address is CA3 is not present in infrastructure node in required list;
Step 605:If meeting condition 6 and 8, step 607 is performed, otherwise performs step 606;
Step 606:Infrastructure node creates the required list that cloud address is CA3 and interface thresholding is f4 in required list
, if infrastructure node only has the request list item that a cloud address is CA3, then perform step 607, otherwise perform step
615;
Step 607:If infrastructure node is located in subnet S1, step 608 is performed, otherwise performs step 609;
Step 608:If infrastructure node is couple in router AR1, by the source in multimedia data request message
The network prefix of address is updated to GRP1, and multimedia data request message then is sent into internet, passes through the more matchmakers in internet
Volume data request message is finally reached couple in router AR2;Otherwise, infrastructure node forwards from the interface being connected with father node
Multimedia data request message;Perform step 603;
Step 609:If the infrastructure node index list item that at least a cloud address is CA3 in concordance list,
Step 610 is performed, otherwise performs step 611;
Step 610:Infrastructure node randomly chooses the index list item that cloud address is CA3, and from the index list item
The multimedia data request message that receives of interface domain forwarding, perform step 603;
Step 611:If infrastructure node is access node AP4, step 612 is performed, otherwise performs step 613;
Step 612:Access node AP4 performs step 201~206 and creates multi-medium data MD3, then builds matchmaker more than one
Volume data response message, the load of the multi-medium data response message is data MD3, and source address is the multi-medium data received
The destination address of request message, destination address are the source address of the multimedia data request message received, perform step 615;
Step 613:Infrastructure node checks all child nodes, if the link prefix of all child nodes and cloud address
CA2 link prefix matching degree and oneself is identical with cloud address CA2 link prefix matching degree, then from father node phase
Interface repeating multimedia data request information even;Otherwise a child node, link prefix and the cloud address of the child node are selected
CA2 link prefix matching degree is maximum, then from the interface repeating multimedia data request information being connected with the child node;Hold
Row step 603;Matching degree is judged as comparing since first bit of link prefix, and consecutive identical number of bits is got over
More, matching degree is bigger;
Step 614:Data MD3 can be provided if receiving the device node of multimedia data request message, is sent
One multi-medium data response message, the load of the multi-medium data response message are data MD3, source address be receive it is more
The destination address of media data request message, destination address are the source address of the multimedia data request message received;Otherwise,
The device node for receiving multimedia data request message abandons multimedia data request message;
Step 615:If infrastructure node builds or receives multi-medium data response message, step is performed
616, otherwise perform step 617;
Step 616:If infrastructure node is couple in router AR2, multi-medium data response message is forwarded to
Internet, couple in router AR1 is eventually arrived at by Internet multi-media data response message, otherwise, infrastructure node is looked into
Required list is seen, operations described below is performed for the request list item that each cloud address is CA3:Interface of the infrastructure node from the list item
Thresholding repeating multimedia data response message, the request list item is then deleted, perform step 615;
Step 617:After device node D1 receives multi-medium data response message, data MD2 is preserved, while oneself is identified
For cloud TC3 cloud member;
Step 618:Terminate;
After device node D1 becomes cloud TC3 cloud member, the beacon message load that it is broadcasted is cloud address CA3.
Embodiment 1
Based on the simulation parameter of table 1, the Internet of Things multi-medium data based on cloud that the present embodiment is simulated in the present invention leads to
Letter method, performance evaluation are as follows:When user and destination node are distant, average communication cost and delay are consequently increased,
During communication radius increase, average communication cost and delay decrease.Average communication cost is 7, routing delay 65ms.
The simulation parameter of table 1
The invention provides a kind of thinking of the Internet of Things multimedia data communication method based on cloud, the technology is implemented
The method and approach of scheme are a lot, and described above is only the preferred embodiment of the present invention, it is noted that for the art
Those of ordinary skill for, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these change
Enter and retouch and also should be regarded as protection scope of the present invention.The available prior art of each component part being not known in the present embodiment adds
To realize.
Claims (6)
- A kind of 1. Internet of Things multimedia data communication method based on cloud, it is characterised in that set in the Internet of Things comprising basis Apply two kinds of nodes of node and device node;Infrastructure node includes couple in router, interchanger and access node, for realizing Route forwarding function;Device node be used to perceiving and collect with geographical position related data, and the data are converted into more Media data form, device node do not have route forwarding function;Access node and device node have a wave point, if Slave node is communicated with access node by wave point, synchronization, and device node can only be carried out with an access node Communication, the access node are referred to as the association access node of device node;Internet of Things is made up of more than two subnets, a subnet Associate comprising a couple in router, more than two interchangers, more than two access nodes and with the access node Device node form, subnet is connected by couple in router with internet;The topology knot of the infrastructure node of one subnet Structure is tree, and root node is couple in router, and intermediate node is interchanger, and leaf node is access node;Connect with one Into an Internet of Things cloud, cloud member's device build of ingress association in the Internet of Things cloud can cooperate with one another common produce and one The related multi-medium data in geographical position, equipment can either be used as cloud member to provide multi-medium data, and can be used as user please Seek acquisition multi-medium data;User obtains the multi-medium data related to a geographical position by cloud address and unicast address;Before cloud address is by network Sew, link prefix, data ID and cloud address designator composition, wherein one subnet of network prefix unique mark, link prefix Infrastructure node in one subnet of unique mark, a kind of multimedia data type of data ID unique marks;Network prefix, chain Road prefix and a kind of multi-medium data related to geographical position of data ID unique marks;Cloud address designator is used to identify the ground Location is cloud address or unicast address, if cloud address designator is 1, it is cloud address to show the address, if cloud address label It is 0 to know symbol, then it is unicast address to show the address;One cloud is by cloud address unique mark;Unicast address is made up of network prefix, link prefix, device id and cloud address designator, and wherein network prefix is uniquely marked Know a subnet, the infrastructure node in one subnet of link prefix unique mark, the device id of couple in router is 1, is handed over It is 0 to change planes with access node apparatus ID, and the device id of device node is hardware ID;Cloud address designator value is 0, shows the address For unicast address;Link prefix is divided intoIndividual level, wherein, parameter i is the bit length of link prefix, and parameter c is to represent a layer Secondary bit length;The link prefix of couple in router is 0, and network prefix is pre-set;The excessively following processes of one Ge Zi Netcoms are real Existing link prefix configuration:Step 101:Start;Step 102:Couple in router configures message from each eligible 1 interface f transmission links prefix, and the link prefix is matched somebody with somebody The source address for putting message is the unicast address of couple in router, destination address 0, is loaded as parameter c, parameter i, parameter f and ginseng Number h, parameter h initial value are 0;Condition 1:The interface is connected with an infrastructure node;Step 103:After the infrastructure node being connected with eligible 1 interface receives link prefix configuration message, structure The link prefix of one i bit, wherein, the preceding hc bit values of link prefix configure the chain of the source address of message for link prefix The preceding hc bit values of road prefix, ensuing c bit values are interface f, and last i- (h+1) c bit values are 0;Step 104:If the infrastructure node for receiving link prefix configuration message is interchanger, step 105 is performed, it is no Then perform step 106;Step 105:Parameter h value is incremented by 1 by the interchanger for receiving link prefix configuration message, from each eligible 1 Interface f transmission links prefix configure message, the link prefix configuration message source address be the interchanger unicast address, purpose Address is 0, is loaded as parameter c, parameter i and parameter h, execution step 103;Step 106:Terminate;After access node configuration link prefix, beacon message is periodically sent by wave point;Associated with the access node After device node receives beacon message, it preserves the link prefix of the access node.
- A kind of 2. Internet of Things multimedia data communication method based on cloud according to claim 1, it is characterised in that basis Infrastructure node safeguards that a concordance list is used for the information for recording cloud member, and an index list item includes interface domain and cloud address field;A kind of multi-medium data MD1 related to geographical position is by cloud address CA1 unique marks, in cloud address CA1, network prefix For GRP1, link prefix LRP2, data ID are CID1, and under conditions of cloud identifier is 1, link address is LRP2 access section Point AP2 creates multi-medium data MD1 by building cloud TC1, and process is as follows:Step 201:Start;Step 202:Access node AP2 creates a unicast address, and the network prefix of the unicast address is 0, and link prefix is LRP2, device id 0, cloud identifier are 0, and access node AP2 sends from wave point and creates multimedia data message, the message Source address for create unicast address, destination address CA1;Step 203:Received with the access node AP2 device nodes associated after creating multimedia data message, if number can be created According to MD1 partial data, then an establishment multi-medium data response message is sent, the establishment multi-medium data response message Source address to create the destination address of multimedia data message, to create the source address of multimedia data message bear by destination address Carry the multi-medium data for establishment;Step 204:After access node AP2 receives all establishment multi-medium data response messages, multi-medium data will be created and rung The multi-medium data in message is answered to be built into multi-medium data MD1, then sending multi-medium data from wave point shares message, The source address that the multi-medium data shares message is the unicast address created in step 202, destination address CA1, is loaded as number According to MD1;Step 205:Received with the access node AP2 device nodes associated after creating the shared message of multi-medium data, if foot Enough memory spaces preserve data MD1, then it preserves the cloud member that data MD1 oneself will be identified as cloud TC1 simultaneously;Step 206:Terminate;After access node AP2 creates data MD1, data MD1 is deleted;After device node becomes cloud TC1 cloud member, the beacon message load that it is broadcasted is cloud address CA1.
- A kind of 3. Internet of Things multimedia data communication method based on cloud according to claim 2, it is characterised in that if Cloudily whether access node is judged in the concordance list of oneself after interface f1 receives load as cloud address CA1 beacon message The index list item that location thresholding is CA1 and interface thresholding is f1, if it does not exist, then performing operations described below:Step 301:Start;Step 302:Access node creates the index list item that cloud address thresholding is CA1 and interface thresholding is f1 in concordance list, so The unicast address of the unicast address of establishment one oneself and father node afterwards, in the unicast address of oneself, network prefix 0, chain Road prefix is the link prefix of the access node, and device id 0, cloud identifier is 0, in the unicast address of father node, network Prefix is 0, and link prefix is the link prefix of father node, if father node is couple in router, device id 1, is otherwise set Standby ID is 0, and cloud identifier is 0, then sends beacon message from the interface being connected with father node, and the source address of the beacon message is The unicast address of oneself, destination address are the unicast address of father node, are loaded as cloud address CA1;Step 303:Father node is after interface f2 receives load as cloud address CA1 beacon message, in the concordance list for judging oneself The index list item that cloudily whether location thresholding is CA1 and interface thresholding is f2, if it is present performing step 306, otherwise perform Step 304;Step 304:Father node creates the index list item that cloud address thresholding is CA1 and interface thresholding is f2 in concordance list, if Father node is couple in router, then performs step 306, otherwise performs step 305;Step 305:Father node creates a unicast address of oneself and the unicast address of the father node of oneself, in the unicast of oneself In address, network prefix 0, link prefix is the link prefix of oneself, and device id 0, cloud identifier is 0, in the father of oneself In the unicast address of node, network prefix 0, link prefix is the link prefix of father node, if the father node of oneself is to connect Enter router, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, the interface being then connected from the father node with oneself Beacon message is sent, the source address of the beacon message is the unicast address of oneself, and destination address is the unicast of the father node of oneself Address, load as cloud address CA1, execution step 303;Step 306:Terminate.
- A kind of 4. Internet of Things multimedia data communication method based on cloud according to claim 3, it is characterised in that if Device node is invalid or departs from the communication range of the access node currently associated, then access node can not receive the equipment The beacon frame that node is sent;It is cloud address that if at the appointed time, access node does not receive any load from interface f1 CA1 beacon message, access node delete the index list item that cloud address thresholding is CA1 and interface thresholding is f1 from concordance list; If access node does not have the index list item that cloud address thresholding is CA1 in concordance list, perform following cloud retrieval list items and delete Process:Step 401:Start;Step 402:The unicast address of access node establishment one oneself and the unicast address of father node, in the unicast address of oneself In, network prefix 0, link prefix is the link prefix of the access node, and device id 0, cloud identifier is 0, in father node Unicast address in, network prefix 0, link prefix be father node link prefix, if father node is couple in router, Device id is 1, and otherwise device id is 0, and cloud identifier is 0, and then sending retrieval list item from the interface being connected with father node deletes Message, the source address that the retrieval list item deletes message are the unicast address of oneself, and destination address is the unicast address of father node, is born Carry as cloud address CA1;Step 403:Father node is after interface f2 receives load as cloud address CA1 retrieval list item deletion message, from concordance list The index list item that cloud address thresholding is CA1 and interface thresholding is f2 is deleted, whether is cloudily then judged in the concordance list of oneself Location thresholding is CA1 index list item, if it is present performing step 406, otherwise performs step 404;Step 404:If father node is couple in router, step 406 is performed, otherwise performs step 405;Step 405:Father node creates a unicast address of oneself and the unicast address of the father node of oneself, in the unicast of oneself In address, network prefix 0, link prefix is the link prefix of oneself, and device id 0, cloud identifier is 0, in the father of oneself In the unicast address of node, network prefix 0, link prefix is the link prefix of oneself father node, if the father node of oneself For couple in router, then device id is 1, and otherwise device id is 0, and cloud identifier is 0, is then connected from the father node with oneself Interface sends retrieval list item and deletes message, and the source address that the retrieval list item deletes message is the unicast address of oneself, destination address For the unicast address of oneself father node, load as cloud address CA1, execution step 403;Step 406:Terminate.
- A kind of 5. Internet of Things multimedia data communication method based on cloud according to claim 4, it is characterised in thatInfrastructure node safeguards that a required list is used to record unfinished multimedia data request information, a request list item Include interface domain and cloud address field;A kind of multi-medium data MD2 related to geographical position is by cloud address CA2 unique marks, and data MD2 is by building cloud TC2 Create;Device node D1 is located in subnet S1, and subnet S1 network prefix is that GRP1, device node D1 and access node AP1 are closed Connection;If meeting condition 2 or condition 3, device node D1 obtains data MD2 by following processes:Condition 2:Cloud address CA2 network prefix is the link prefix that GRP1 and link prefix are equal to access node AP2;Condition 3:Cloud address CA2 network prefix is not equal to GRP1, but at least exist in subnet S1 cloud TC2 cloud into Member;Step 501:Start;Step 502:Device node D1 creates a unicast address, and in the unicast address, network prefix 0, link prefix is connects Ingress AP1 link prefix, device id are device node D1 device id, then send multimedia data request message, should The source address of multimedia data request message is the unicast address of structure, and destination address is cloud address CA2;Step 503:Judgement is that infrastructure node or device node receive multimedia data request message from interface f3, if It is that infrastructure node receives multimedia data request message, then performs step 504, otherwise performs step 511;Step 504:If there is the required list that cloud address is CA2 and interface thresholding is f3 in infrastructure node in required list , then step 514 is performed, otherwise performs step 505;Step 505:Infrastructure node creates the request list item that cloud address is CA2 and interface thresholding is f3 in required list, such as Fruit infrastructure node only has the request list item that a cloud address is CA2, then performs step 506, otherwise performs step 514;Step 506:If the infrastructure node index list item that at least a cloud address is CA2 in concordance list, is performed Step 507, step 508 is otherwise performed;Step 507:Infrastructure node randomly chooses the index list item that a cloud address is CA2, and connecing from the index list item The multimedia data request message that the forwarding of mouth domain receives, performs step 503;Step 508:If infrastructure node is access node AP2, step 509 is performed, otherwise performs step 510;Step 509:Access node AP2 performs step 201~206 and creates multi-medium data MD2, then builds a multimedia number According to response message, the load of the multi-medium data response message is data MD2, and source address is the multimedia data request received The destination address of message, destination address are the source address of the multimedia data request message received, perform step 514;Step 510:Infrastructure node checks all child nodes, if the link prefix of all child nodes is with cloud address CA2's Link prefix matching degree and oneself is identical with cloud address CA2 link prefix matching degree, then from what is be connected with father node Interface repeating multimedia data request information;Otherwise a child node is selected, the link prefix of the child node is with cloud address CA2's Link prefix matching degree is maximum, then from the interface repeating multimedia data request information being connected with the child node;Perform step Rapid 503;Matching degree is judged as comparing since first bit of link prefix, and consecutive identical number of bits is more, It is bigger with degree;Step 511:Data MD2 can be provided if receiving the device node of multimedia data request message, performs step 513, otherwise perform step 512;Step 512:The device node for receiving multimedia data request message abandons multimedia data request message, performs step 514;Step 513:The device node for receiving multimedia data request message sends a multi-medium data response message, and this is more The load of media data response message is data MD2, and source address is the destination address of the multimedia data request message received, Destination address is the source address of the multimedia data request message received;Step 514:If infrastructure node builds or received multi-medium data response message, step 515 is performed, it is no Then perform step 516;Step 515:Infrastructure node checks required list, and operations described below is performed for the request list item that each cloud address is CA2: Then infrastructure node is deleted the request list item, performed from the interface thresholding repeating multimedia data response message of the list item Step 514;Step 516:After device node D1 receives multi-medium data response message, data MD2 is preserved, while oneself is identified as cloud TC2 cloud member;Step 517:Terminate;After device node D1 becomes cloud TC2 cloud member, the beacon message load that it is broadcasted is cloud address CA2.
- 6. a kind of Internet of Things multimedia data communication method based on cloud according to claim 5, it is characterised in that one The kind multi-medium data MD3 related to geographical position is created by cloud address CA3 unique marks, data MD3 by building cloud TC3 Building, device node D1 is located in subnet S1, and subnet S1 network prefix is GRP1, in couple in router AR1, subnet S2, net Network prefix is GRP2, in couple in router AR2, cloud address CA3, network prefix GRP2, link prefix domain access node AP4 Link prefix it is identical, access node AP4 is located in subnet S2, under conditions of device node D1 associates with access node AP1, such as Fruit meets condition 4, and device node D1 obtains data MD3 by following processes:Condition 4:Any cloud TC3 cloud member is not present in subnet S1;Step 601:Start;Step 602:Device node D1 creates a unicast address, and in the unicast address, network prefix 0, link prefix is connects Ingress AP1 link prefix, device id are device node D1 device id, then send multimedia data request message, should The source address of multimedia data request message is the unicast address of structure, and destination address is cloud address CA3;Step 603:Judgement is that infrastructure node or device node receive multimedia data request message from interface f4, if It is that infrastructure node receives multimedia data request message, then performs step 604, otherwise performs step 614;Step 604:If meeting condition 5 or meeting condition 6 and 7 simultaneously, step 615 is performed, otherwise performs step 605;Condition 5:The request list item that cloud address is CA3 and interface thresholding is f4 in required list be present in infrastructure node;Condition 6:Infrastructure node is couple in router AR2 and interface f4 is connected with internet;Condition 7:The request list item that a cloud address is CA3 in required list at least be present in infrastructure node;Condition 8:The request list item that any one cloud address is CA3 is not present in infrastructure node in required list;Step 605:If meeting condition 6 and 8, step 607 is performed, otherwise performs step 606;Step 606:Infrastructure node creates the request list item that cloud address is CA3 and interface thresholding is f4 in required list, such as Fruit infrastructure node only has the request list item that a cloud address is CA3, then performs step 607, otherwise performs step 615;Step 607:If infrastructure node is located in subnet S1, step 608 is performed, otherwise performs step 609;Step 608:If infrastructure node is couple in router AR1, by the source address in multimedia data request message Network prefix be updated to GRP1, multimedia data request message is then sent to internet, passes through internet multimedia number Couple in router AR2 is finally reached according to request message;Otherwise, infrastructure node forwards more matchmakers from the interface being connected with father node Volume data request message;Perform step 603;Step 609:If the infrastructure node index list item that at least a cloud address is CA3 in concordance list, is performed Step 610, step 611 is otherwise performed;Step 610:Infrastructure node randomly chooses the index list item that a cloud address is CA3, and connecing from the index list item The multimedia data request message that the forwarding of mouth domain receives, performs step 603;Step 611:If infrastructure node is access node AP4, step 612 is performed, otherwise performs step 613;Step 612:Access node AP4 performs step 201~206 and creates multi-medium data MD3, then builds a multimedia number According to response message, the load of the multi-medium data response message is data MD3, and source address is the multimedia data request received The destination address of message, destination address are the source address of the multimedia data request message received, perform step 615;Step 613:Infrastructure node checks all child nodes, if the link prefix of all child nodes is with cloud address CA2's Link prefix matching degree and oneself is identical with cloud address CA2 link prefix matching degree, then from what is be connected with father node Interface repeating multimedia data request information;Otherwise a child node is selected, the link prefix of the child node is with cloud address CA2's Link prefix matching degree is maximum, then from the interface repeating multimedia data request information being connected with the child node;Perform step Rapid 603;Matching degree is judged as comparing since first bit of link prefix, and consecutive identical number of bits is more, It is bigger with degree;Step 614:If data MD3 can be provided by receiving the device node of multimedia data request message, one is sent Multi-medium data response message, the load of the multi-medium data response message is data MD3, and source address is the multimedia received The destination address of data request information, destination address are the source address of the multimedia data request message received;Otherwise, receive Device node to multimedia data request message abandons multimedia data request message;Step 615:If infrastructure node builds or received multi-medium data response message, step 616 is performed, it is no Then perform step 617;Step 616:If infrastructure node is couple in router AR2, multi-medium data response message is forwarded to interconnection Net, couple in router AR1 is eventually arrived at by Internet multi-media data response message, otherwise, infrastructure node is checked please Table is sought, operations described below is performed for the request list item that each cloud address is CA3:Interface thresholding of the infrastructure node from the list item Repeating multimedia data response message, the request list item is then deleted, perform step 615;Step 617:After device node D1 receives multi-medium data response message, data MD2 is preserved, while oneself is identified as cloud TC3 cloud member;Step 618:Terminate;After device node D1 becomes cloud TC3 cloud member, the beacon message load that it is broadcasted is cloud address CA3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710750761.2A CN107547173B (en) | 2017-08-28 | 2017-08-28 | Cloud-based internet of things multimedia data communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710750761.2A CN107547173B (en) | 2017-08-28 | 2017-08-28 | Cloud-based internet of things multimedia data communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107547173A true CN107547173A (en) | 2018-01-05 |
CN107547173B CN107547173B (en) | 2020-03-24 |
Family
ID=60958809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710750761.2A Active CN107547173B (en) | 2017-08-28 | 2017-08-28 | Cloud-based internet of things multimedia data communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107547173B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645809A (en) * | 2004-01-19 | 2005-07-27 | 威达电股份有限公司 | Method for accelerating packing filter |
CN102571599A (en) * | 2012-02-08 | 2012-07-11 | 福建三元达通讯股份有限公司 | Rapid storage method of routing table entry |
CN103634415A (en) * | 2012-08-22 | 2014-03-12 | 国基电子(上海)有限公司 | System, device and method for reducing network address header number |
US20150373061A1 (en) * | 2006-06-30 | 2015-12-24 | Centurylink Intellectual Property Llc | Managing Voice over Internet Protocol (VoIP) Communications |
-
2017
- 2017-08-28 CN CN201710750761.2A patent/CN107547173B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645809A (en) * | 2004-01-19 | 2005-07-27 | 威达电股份有限公司 | Method for accelerating packing filter |
US20150373061A1 (en) * | 2006-06-30 | 2015-12-24 | Centurylink Intellectual Property Llc | Managing Voice over Internet Protocol (VoIP) Communications |
CN102571599A (en) * | 2012-02-08 | 2012-07-11 | 福建三元达通讯股份有限公司 | Rapid storage method of routing table entry |
CN103634415A (en) * | 2012-08-22 | 2014-03-12 | 国基电子(上海)有限公司 | System, device and method for reducing network address header number |
Non-Patent Citations (1)
Title |
---|
续晓燕等: ""浅谈云计算与物联网的融合发展"", 《电脑知识与技术》 * |
Also Published As
Publication number | Publication date |
---|---|
CN107547173B (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105812259B (en) | A kind of message forwarding method and equipment | |
CN106603413B (en) | Method and device for transmitting flow through designated path | |
MX2021009585A (en) | A central unit (cu), a distributed unit (du) and methods therein for forwarding of data in an integrated access backhaul (iab) network. | |
WO2017113238A1 (en) | Method for establishing routing table, electronic device and network | |
CN104092576B (en) | A kind of network topology computational methods and device | |
US10419342B2 (en) | Gateways for sensor data packets in cellular networks | |
CN106412996B (en) | The method and device to E-Packet | |
CN104065571B (en) | A kind of broadcasting packet processing method, apparatus and system | |
CN109660460A (en) | Processing method, server and the storage medium of BIER-TE information | |
CN105874756B (en) | The transmission method and equipment of control signaling | |
CN1964360A (en) | A method and device for MAC frame forwarding | |
CN108243123A (en) | Processing method, device, controller and the interchanger of broadcasting packet | |
CN103023773A (en) | Method, device and system for forwarding message in multi-topology network | |
CN103200100A (en) | Method and device for packet transmitting | |
CN106161053A (en) | A kind of SDN controller QoS manages system and method | |
CN104539545A (en) | Multicast message forwarding method and device of TRILL network | |
CN103200107B (en) | Message transmitting method and message transmitting equipment | |
CN107666686A (en) | Transmit the method and via node of data | |
CN103532858B (en) | Treating method and apparatus based on the data message in TRILL network | |
CN110855464A (en) | Network topology structure adjusting method and device | |
CN103152265B (en) | Message forwarding method and equipment in SPB (Shortest Path Bridge) network | |
US8175106B2 (en) | Fast and automatic self-forming meshing topology to integrate with wired networks | |
CN101262448A (en) | IP data packet transmission method and system | |
CN106657362B (en) | A kind of terminal content dispatching method of New Virtual multipath TCP | |
WO2017215383A1 (en) | Network element configuration method and device, and network element management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |