Big data network communication implementation method
Technical Field
The invention relates to a communication implementation method, in particular to a big data network communication implementation method.
Background
The communication between nodes in the big data network is realized by forwarding and routing of intermediate nodes, so one of the key technologies to be solved for realizing the big data network is to reduce data transmission delay so as to enable users to quickly acquire network services. With the development of network technology, big data networks will become a mode for providing services in the future.
At present, the implementation mode of the big data network is realized through broadcasting, so that both delay and cost are large, and the network service performance is reduced. Therefore, how to reduce the delay and cost of providing services by a big data network becomes a hot issue of research in recent years.
Disclosure of Invention
The purpose of the invention is as follows: the technical problem to be solved by the invention is to provide a method for realizing big data network communication aiming at the defects of the prior art.
The technical scheme is as follows: the invention discloses a big data network communication realization method, wherein the network comprises a router, a basic equipment node and a mobile node; the router is divided into a core router, an access router and a mobile router; the network comprises only one core router;
the core router is provided with an upstream wired interface and more than two downstream wired interfaces, and the upstream wired interface is connected with a backbone network of the Internet; the access router is provided with an upstream wired interface and more than two downstream wired interfaces;
the network supports more than two basic equipment nodes, such as base stations or access nodes, the same basic equipment node supports one protocol, and different types of basic equipment nodes support different protocols; each base equipment node comprises an upstream wired interface and a downstream wireless interface;
the mobile router comprises more than two upstream wireless interfaces and a downstream wireless interface, wherein each upstream wireless interface supports one protocol, and different upstream wireless interfaces support different protocols; a mobile node comprising a radio interface;
each downstream interface of the core router is connected with an upstream interface of an access router; the downstream interface of each access router is connected with the upstream interface of a basic equipment node, and the basic equipment nodes connected with all the downstream interfaces of one access router belong to the same type and support the same protocol;
a downstream interface of a base equipment node is connected to an upstream interface of a mobile router, the downstream interface and the upstream interface supporting the same protocol; a downstream interface of a mobile router is connected to an interface of a mobile node;
each interface of a router or a mobile node is configured with an IPv6 address, one IPv6 address is composed of a network prefix and a node ID, and the bit length of the network prefix and the bit length of the node ID are 128;
the bit length of the network prefix of the IPv6 address of the upstream interface of the core router is x bits, for example, x is 32, the bit length of the network prefix of the address of each downstream interface of the core router is x + e bits, for example, e is 16, the value of the first x bits of the network prefix of the addresses of all the downstream interfaces of the core router is equal to the value of the first x bits of the network prefix of the address of the upstream interface of the core router, and the rear e bit values of the network prefix of the address of each downstream interface of the core router are different;
the bit length of the network prefix of the IPv6 address of the upstream interface of the access router is x + e bits, the bit length of the network prefix of the address of each downstream interface of the access router is x +2e bits, the network prefix of the upstream interface of the access router is equal to the network prefix of the downstream interface of the core router connected with the upstream interface, the values of the first x + e bits of the network prefixes of the addresses of all the downstream interfaces of the access router are equal to the values of the first x + e bits of the network prefix of the address of the upstream interface of the access router, and the last e bit values of the network prefixes of the addresses of each downstream interface of the access router are different;
the length of the address of all the upstream interfaces and the downstream interfaces of the mobile router is x +2e bits, and the network prefix of each upstream interface of the mobile router is equal to the network prefix of the downstream interface of the access router connected with the upstream interface; the network prefix length of the address of the interface of the mobile node is x +2e bits;
IPv6 addresses of each interface of the core router and each access router are preset, for example, the address of an upstream interface of the core router is 3fe8:1: 1/32, the address of a downstream interface is 3fe8:1:1: 1/48, the address of an upstream interface of one access router is 3fe8:1:1: 2/48, and the address of a downstream interface is 3fe8:1:1: 1/64;
each mobile router stores an interface table, and each interface table item comprises an upstream interface domain and an address domain;
after the access router is started, a beacon message is broadcasted through each downstream interface, and the source address of the beacon message is the address of the downstream interface; after receiving the beacon message of the access router through an upstream interface, the basic equipment node directly forwards the beacon message through a downstream interface; after receiving a beacon message from an upstream interface u, the mobile router creates an interface table entry, wherein the upstream interface domain value of the interface table entry is u, and the address domain value is the source address of the beacon message;
each access router stores a distribution list, and one distribution list comprises an interface domain and a node ID set domain; after the access router is started, a distribution table entry is established for each downstream interface f, the interface domain value of the distribution table entry is f, and the node ID set domain value is null;
n upstream interfaces u in the mobile router MR1jJ is more than or equal to 1 and less than or equal to N, and the upstream interface ujSupporting N protocols pjAnd with a supporting protocol pjN basic device nodes IjAre connected to the downstream interface links of the base equipment node IjUnder the condition that the upstream interface of the access router AR1 is connected with the downstream interface f1 of the access router AR1, the mobile router MR1 is used for each upstream interface ujPerforms the following operation as the upstream interface ujConfiguring an address:
step 101: starting;
step 102: the mobile router MR1 creates a random number, the length of the random number is 128- (x +2e) bits, the mobile router MR1 constructs a temporary address, the network prefix of the temporary address is 0, and the node ID is a random number; the mobile router MR1 looks at the interface table and selects the interface domain value as ujCreating a request address message, wherein the source address of the request address message is a constructed temporary address, the destination address is an address field value of the selected interface table entry, and the load is null; the mobile router MR1 then follows the interface ujSending the request address message;
step 103: infrastructure node IjAfter receiving the request address message from the downstream interface, directly forwarding the request address message from the upstream interface; after receiving the request address message from the downstream interface f1, the access router AR1 checks the allocation table, selects an allocation table entry with an interface domain value equal to f1, selects a minimum integer in the node ID set which is not included in the allocation table entry, and sends a response address message from the interface f1, in which the source address is the destination address of the received request address message, the destination address is the source address of the received request address message, and the load is the selected minimum integer; the access router AR1 adds the selected minimum integer to the node ID set of the distribution list item;
step 104: infrastructure node IjAfter receiving the response address message from the upstream interface, the slaveIts downstream interface directly forwards the response address message;
step 105: the mobile router MR1 receives the upstream interface u from the upstream interfacejAfter receiving the response address message, constructing an address, wherein the node ID of the address is an integer in the load of the response address message, the network prefix is the network prefix of the source address of the response address message, and then marking the address as an interface ujThe address of (a);
step 106: finishing;
the mobile router MR1 configures an address for each upstream interface through the above process;
if the upstream interface of the mobile router acquires the address for the first time, the address is called as the home address of the upstream interface, otherwise, the address is called as the care-of address of the upstream interface; the mobile router maintains the home address and the latest care-of address for each upstream interface.
The mobile router can rapidly configure the address for the interface through the above process so as to ensure the correctness of data communication.
In the method of the invention, a mobile router and all mobile nodes connected with the mobile router link form a cluster, the mobile router is a cluster head node, and the mobile nodes are cluster members;
each mobile router stores an allocated ID set, and the initial value of the allocated ID set is null; after the mobile router is started, generating a random number with the bit length of x +2e, and then constructing an address for a downstream interface of the mobile router, wherein the network prefix of the address is the generated random number, and the node ID is 1;
after configuring an address for a downstream interface, a mobile router starts to broadcast a beacon message through the downstream interface, wherein the source address of the beacon message is the address of the downstream interface, and the load is an allocated ID set;
the mobile node MN1 is connected with the link of the mobile router MR1, and after the mobile node MN1 receives the beacon message of the mobile router MR1, the mobile node MN1 executes the following operations to obtain the address:
step 201: starting;
step 202: the mobile node MN1 generates a random number of bit length e which is not in the assigned ID set of the received beacon message payload; the mobile node MN1 creates an address, the network prefix of the address is the network prefix of the source address of the received beacon message, and the node ID is the created random number; the mobile node MN1 sends an address request message with the source address of the created address and the destination address of the received beacon message;
step 203: after the mobile router MR1 receives the address request message, it checks whether the node ID of the source address of the address request message is in its own allocated ID set, if so, executes step 204, otherwise, executes step 205;
step 204: the mobile router MR1 sends an address repeat message, the source address of the address repeat message is the destination address of the received address request message, the destination address of the address repeat message is the source address of the received address request message, and the load is empty, execute step 206;
step 205: the mobile router MR1 sends an address confirmation message, the source address of the address confirmation message is the destination address of the received address request message, the destination address of the address confirmation message is the source address of the received address request message, the load is empty, and the mobile router MR1 adds the node ID of the source address of the received address request message into the allocated ID set;
step 206: if the mobile node MN1 received the address repeat message, step 202 is performed, otherwise step 207 is performed:
step 207: the mobile node MN1 identifies the destination address of the received address confirmation message as its own address;
step 208: and (6) ending.
The mobile node can rapidly configure the address for the interface through the above process so as to ensure the correctness of data communication.
In the method of the invention, a core router stores a binding table, and one binding table item comprises a home address field and a care-of address field;
on N mobile routers MR1Trip interface ujJ is more than or equal to 1 and less than or equal to N, and the upstream interface ujSupporting N protocols pjAnd with a supporting protocol pjN basic device nodes IjAre connected to the downstream interface links of the base equipment node IjUnder the condition that the upstream interface of the access router AR1 is connected with the downstream interface of the access router AR1, after the mobile router MR1 configures the address for each upstream interface, the address is configured for each upstream interface ujThe mobile router MR1 performs the following registration operations:
step 301: starting;
step 302: mobile router MR1 slave interface ujSending a registration message with the source address of interface ujThe destination address is null;
step 303: infrastructure node IjAfter receiving the registration message from the downstream interface, directly forwarding the registration message from the upstream interface; after receiving the registration message from the downstream interface, the access router AR1 directly forwards the registration message from its upstream interface;
step 304: after receiving the registration message from the downstream interface, the core router creates a binding table entry, and the home address and the care-of address field value of the binding table entry are both the source address of the registration message;
step 305: and (6) ending.
In the method of the invention, a core router maintains a switching table, and a switching table item comprises a home address field, an invalid care-of address field and an effective care-of address field;
under the condition that the upstream interface u1 of the mobile router MR1 is connected to the base device node I1, and the upstream interfaces of the base device node I1 and the base device node I2 are connected to one downstream interface of the access router AR1, respectively, if the mobile router MR1 detects that the interface u1 can receive the beacon messages of the base device node I1 and the base device node I2 at the same time and the signal strength of the beacon message from the base device node I2 is greater than that of the beacon message from the base device node I1, the following switching operation is performed:
step 401: starting;
step 402: the mobile router MR1 selects an upstream interface u2, the upstream interface u2 can only receive the beacon message of the currently connected basic equipment node, the mobile router MR1 sends a switching message from the upstream interface u1, the source address of the switching message is the address of the interface u1, the destination address is null, and the load is the home address of the upstream interface u1 and the care-of address of the upstream interface u 2;
step 403: after receiving the handover message from the downstream interface, the infrastructure node I1 forwards the handover message directly from the upstream interface thereof, and after receiving the handover message from the downstream interface, the access router AR1 forwards the handover message from the upstream interface thereof;
step 404: after receiving the switching message from the downstream interface, the core router creates a switching table entry, wherein the home address of the switching table entry is the home address of the interface u1 in the switching message load, the invalid care-of address is the source address of the switching message, and the valid care-of address is the care-of address of the interface u2 in the switching message load;
step 405: and (6) ending.
The above-described handover procedure can ensure the correctness of data communication.
In the method, after an upstream interface u1 link of a mobile router MR1 is switched to a basic equipment node I2, steps 101-106 are executed to acquire a new care-of address for the upstream interface u 1; after the mobile router MR1 obtains the new care-of address Addr1 for the interface u1, the following address binding operations are performed:
step 501: starting;
step 502: the mobile router MR1 sends an address update message from the interface u1, wherein the source address of the address update message is Addr1, the destination address is null, and the load is the home address of the interface u 1;
step 503: after receiving the address update message from the downstream interface, the infrastructure node I2 directly forwards the address update message from the upstream interface thereof, and after receiving the address update message from the downstream interface, the access router AR1 forwards the address update message from the upstream interface thereof;
step 504: after receiving the address updating message from the downstream interface, the core router checks the switching table, selects the switching table item of which the home address domain value is equal to the home address in the address updating message load, and deletes the switching table item; the core router checks the binding table, selects the binding table item whose home address domain value is equal to the home address in the address updating message load, and updates the care-of address of the binding table item to the source address of the address updating message;
step 505: and (6) ending.
The switching process can ensure the correctness of data communication in the moving process.
In the method of the invention, a mobile router stores a mapping table, and a mapping table item comprises a source address domain, a source port domain, a destination address domain and a destination port domain;
the cluster head node of the cluster member CM1 is a mobile router MR1, the node CN1 is an IPv6 node, the core router of the network where the mobile router MR1 is located is CR1, and the cluster member CM1 realizes the communication with the node CN1 through the following processes:
step 601: starting;
step 602: the CM1 sends a request message, the destination port of the request message is DP1, the destination address is the address of the CN1, the source port is SP1, and the source address is the address of the CM 1;
step 603: after receiving the request message, the mobile router MR1 creates a mapping table entry, where the source address, the source port, the destination address and the destination port of the mapping table entry are the source address, the source port, the destination address and the destination port of the request message, respectively; the mobile router MR1 selects an interface u3, the interface u3 can only receive the request message from the currently connected basic equipment node, updates the source address of the request message to the care-of address of the interface u3, and then sends the request message from the interface u 3;
step 604: after receiving the request message from the downstream interface, the basic device node connected with the interface u3 directly forwards the request message from the upstream interface; after receiving the request message from the downstream interface, the access router connected to the upstream interface of the infrastructure node forwards the request message from the upstream interface; after receiving the request message from the downstream interface, the core router CR1 forwards the request message from the upstream interface, and the request message finally reaches the node CN1 through the internet;
step 605: after receiving the request message, the node CN1 sends a response message, where the destination port and the destination address of the response message are the source port and the source address of the received request message, respectively, the source port and the source address of the response message are the destination port and the destination address of the received request message, respectively, the load is response data, and the response message reaches the core router CR1 through the internet;
step 606: after receiving the response message, the core router CR1 checks the switching table, if there is a switching table entry E1, the invalid care-of address of the switching table entry is equal to the destination address of the response message, then step 607 is executed, otherwise step 608 is executed;
step 607: the core router CR1 updates the destination address of the response message to the effective care-of address field value of the switching table entry E1;
step 608: the core router CR1 forwards the response message from the downstream interface meeting condition 1;
condition 1: the first x + e bit value of the network prefix of the address of the downstream interface is equal to the first x + e bit value of the network prefix of the destination address of the received response message;
step 609: after receiving the response message from the upstream interface, the access router connected to the condition 1-compliant downstream interface of the core router CR1 forwards the response message from the condition 2-compliant downstream interface;
condition 2: the first x +2e bit value of the network prefix of the address of the downstream interface is equal to the first x +2e bit value of the network prefix of the destination address of the received response message;
step 610: after receiving the response message from the upstream interface, the basic equipment node connected with the downstream interface of which the access router meets the condition 2 forwards the response message from the downstream interface;
step 611: the mobile router MR1 receives the response message from the upstream interface, then the mobile router MR1 checks the mapping table, selects a mapping table entry, the source port domain value of the mapping table entry is equal to the destination port of the response message, the destination port and the destination address of the mapping table entry are respectively equal to the source port and the source address of the response message, then updates the destination address of the response message to the source address of the mapping table entry, and forwards the response message from the downstream interface;
step 612: after cluster member CM1 receives the response message, it stores the response data in the response message;
step 613: and (6) ending.
The node can acquire data rapidly through the process.
In the method of the invention, a node CN1 is an IPv6 node, a core router of a network where a mobile router MR1 is located is CR1, and the node CN realizes the communication with the mobile router MR1 through the following processes:
step 701: starting;
step 702: the node CN1 sends a request message, the destination address of the request message is the home address of the upstream interface u4 of the mobile router MR1, the source address is the address of the node, and the request message firstly reaches the core router CR1 through the Internet;
step 703: after receiving the request message, the core router CR1 checks the switching table, if there is a switching table entry E2 and the invalid care-of address of the switching table entry E2 is equal to the destination address of the request message, then step 704 is executed, otherwise step 705 is executed;
step 704: the core router CR1 updates the destination address of the request message to the effective care-of address field value of the switch table entry E2, and executes step 706;
step 705: the core router CR1 checks the binding table, selects the binding table item whose home address domain value is equal to the destination address of the received request message, and updates the destination address of the received request message to the care-of address domain value of the binding table item;
step 706: the core router CR1 forwards the response message from the downstream interface that meets condition 3;
condition 3: the first x + e bit value of the network prefix of the address of the downstream interface is equal to the first x + e bit value of the network prefix of the destination address of the received request message;
step 707: after receiving the request message from the upstream interface, the access router connected to the condition 3 compliant downstream interface of the core router CR1 forwards the request message from the condition 4 compliant downstream interface;
condition 4: the first x +2e bit value of the network prefix of the address of the downstream interface is equal to the first x +2e bit value of the network prefix of the destination address of the received request message;
step 708: after receiving the request message from the upstream interface, the basic equipment node connected with the downstream interface of which the access router meets the condition 4 forwards the request message from the downstream interface;
step 709: the mobile router MR1 receives the request message from the upstream interface u5 and then forwards the request message from the downstream interface; after the cluster member receives the request message, if the cluster member can provide corresponding data, a response message is returned, the source address of the response message is the destination address of the received request message, the destination address of the response message is the source address of the received request message, and the load is response data; after receiving all the response messages returned by the cluster members, the mobile router MR1 arranges the data in the load of the response messages into complete response data, and sends a response message from the upstream interface u5, wherein the source address of the response message is the destination address of the received request message, the destination address of the response message is the source address of the received request message, and the load is the arranged response data;
step 710: after receiving the response message from the downstream interface, the basic equipment node connected with the upstream interface u5 of the mobile router MR1 directly forwards the response message from the upstream interface; after receiving the response message from the downstream interface, the access router connected to the upstream interface of the infrastructure node forwards the response message from the upstream interface; after receiving the response message from the downstream interface, the core router CR1 forwards the response message from the upstream interface, and the response message finally reaches the node CN1 through the internet;
step 711: after receiving the response message, the node CN1 stores the response data in the response message;
step 712: and (6) ending.
The node can acquire data rapidly through the process.
Has the advantages that: the invention provides a method for realizing big data network communication, and a user can acquire big data in parallel by the communication realization method provided by the invention, thereby reducing data acquisition delay and improving service quality. The invention can be applied to various fields such as traffic road condition detection and control, agricultural engineering and the like, and has wide application prospect.
Drawings
The foregoing and/or other advantages of the invention will become further apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic diagram illustrating an address configuration process of a mobile router according to the present invention.
Fig. 2 is a schematic diagram illustrating a mobile node address configuration process according to the present invention.
Fig. 3 is a schematic diagram of a registration process according to the present invention.
Fig. 4 is a schematic diagram of a handover procedure according to the present invention.
Fig. 5 is a schematic diagram of an address binding process according to the present invention.
Fig. 6 is a schematic diagram of a data communication process according to the present invention.
Fig. 7 is a schematic diagram of a network communication flow according to the present invention.
The specific implementation mode is as follows:
the invention provides a method for realizing big data network communication, and a user can acquire big data in parallel by the communication realization method provided by the invention, thereby reducing data acquisition delay and improving service quality. The invention can be applied to various fields such as traffic road condition detection and control, agricultural engineering and the like, and has wide application prospect.
Fig. 1 is a schematic diagram illustrating an address configuration process of a mobile router according to the present invention. The network comprises a router, a basic equipment node and a mobile node; the router is divided into a core router, an access router and a mobile router; the network comprises only one core router;
the core router is provided with an upstream wired interface and more than two downstream wired interfaces, and the upstream wired interface is connected with a backbone network of the Internet; the access router is provided with an upstream wired interface and more than two downstream wired interfaces;
the network supports more than two basic equipment nodes, such as base stations or access nodes, the same basic equipment node supports one protocol, and different types of basic equipment nodes support different protocols; each base equipment node comprises an upstream wired interface and a downstream wireless interface;
the mobile router comprises more than two upstream wireless interfaces and a downstream wireless interface, wherein each upstream wireless interface supports one protocol, and different upstream wireless interfaces support different protocols; a mobile node comprising a radio interface;
each downstream interface of the core router is connected with an upstream interface of an access router; the downstream interface of each access router is connected with the upstream interface of a basic equipment node, and the basic equipment nodes connected with all the downstream interfaces of one access router belong to the same type and support the same protocol;
a downstream interface of a base equipment node is connected to an upstream interface of a mobile router, the downstream interface and the upstream interface supporting the same protocol; a downstream interface of a mobile router is connected to an interface of a mobile node;
each interface of a router or a mobile node is configured with an IPv6 address, one IPv6 address is composed of a network prefix and a node ID, and the bit length of the network prefix and the bit length of the node ID are 128;
the bit length of the network prefix of the IPv6 address of the upstream interface of the core router is x bits, for example, x is 32, the bit length of the network prefix of the address of each downstream interface of the core router is x + e bits, for example, e is 16, the value of the first x bits of the network prefix of the addresses of all the downstream interfaces of the core router is equal to the value of the first x bits of the network prefix of the address of the upstream interface of the core router, and the rear e bit values of the network prefix of the address of each downstream interface of the core router are different;
the bit length of the network prefix of the IPv6 address of the upstream interface of the access router is x + e bits, the bit length of the network prefix of the address of each downstream interface of the access router is x +2e bits, the network prefix of the upstream interface of the access router is equal to the network prefix of the downstream interface of the core router connected with the upstream interface, the values of the first x + e bits of the network prefixes of the addresses of all the downstream interfaces of the access router are equal to the values of the first x + e bits of the network prefix of the address of the upstream interface of the access router, and the last e bit values of the network prefixes of the addresses of each downstream interface of the access router are different;
the length of the address of all the upstream interfaces and the downstream interfaces of the mobile router is x +2e bits, and the network prefix of each upstream interface of the mobile router is equal to the network prefix of the downstream interface of the access router connected with the upstream interface; the network prefix length of the address of the interface of the mobile node is x +2e bits;
IPv6 addresses of each interface of the core router and each access router are preset, for example, the address of an upstream interface of the core router is 3fe8:1: 1/32, the address of a downstream interface is 3fe8:1:1: 1/48, the address of an upstream interface of one access router is 3fe8:1:1: 2/48, and the address of a downstream interface is 3fe8:1:1: 1/64;
each mobile router stores an interface table, and each interface table item comprises an upstream interface domain and an address domain;
after the access router is started, a beacon message is broadcasted through each downstream interface, and the source address of the beacon message is the address of the downstream interface; after receiving the beacon message of the access router through an upstream interface, the basic equipment node directly forwards the beacon message through a downstream interface; after receiving a beacon message from an upstream interface u, the mobile router creates an interface table entry, wherein the upstream interface domain value of the interface table entry is u, and the address domain value is the source address of the beacon message;
each access router stores a distribution list, and one distribution list comprises an interface domain and a node ID set domain; after the access router is started, a distribution table entry is established for each downstream interface f, the interface domain value of the distribution table entry is f, and the node ID set domain value is null;
n upstream interfaces u in the mobile router MR1jJ is more than or equal to 1 and less than or equal to N, and the upstream interface ujSupporting N protocols pjAnd with a supporting protocol pjN basic device nodes IjAre connected to the downstream interface links of the base equipment node IjUnder the condition that the upstream interface of the access router AR1 is connected with the downstream interface f1 of the access router AR1, the mobile router MR1 is used for each upstream interface ujPerforms the following operation as the upstream interface ujConfiguring an address:
step 101: starting;
step 102: the mobile router MR1 creates a random number, the length of the random number is 128- (x +2e) bits, the mobile router MR1 constructs a temporary address, the network prefix of the temporary address is 0, and the node ID is a random number; the mobile router MR1 looks at the interface table and selects the interface domain value as ujCreating a request address message, wherein the source address of the request address message is a constructed temporary address, the destination address is an address field value of the selected interface table entry, and the load is null; the mobile router MR1 then follows the interface ujSending the request address message;
step 103: infrastructure node IjAfter receiving the request address message from the downstream interface, directly forwarding the request address message from the upstream interface; after receiving the request address message from the downstream interface f1, the access router AR1 checks the allocation table, selects an allocation table entry with an interface domain value equal to f1, selects a minimum integer in the node ID set which is not included in the allocation table entry, and sends a response address message from the interface f1, in which the source address is the destination address of the received request address message, the destination address is the source address of the received request address message, and the load is the selected minimum integer; the access router AR1 adds the selected minimum integer to the distribution list itemIn a node ID set;
step 104: infrastructure node IjAfter receiving the response address message from the upstream interface, directly forwarding the response address message from the downstream interface;
step 105: the mobile router MR1 receives the upstream interface u from the upstream interfacejAfter receiving the response address message, constructing an address, wherein the node ID of the address is an integer in the load of the response address message, the network prefix is the network prefix of the source address of the response address message, and then marking the address as an interface ujThe address of (a);
step 106: finishing;
the mobile router MR1 configures an address for each upstream interface through the above process;
if the upstream interface of the mobile router acquires the address for the first time, the address is called as the home address of the upstream interface, otherwise, the address is called as the care-of address of the upstream interface; the mobile router maintains the home address and the latest care-of address for each upstream interface.
Fig. 2 is a schematic diagram illustrating a mobile node address configuration process according to the present invention. A mobile router and all mobile nodes connected with the mobile router link form a cluster, the mobile router is a cluster head node, and the mobile nodes are cluster members;
each mobile router stores an allocated ID set, and the initial value of the allocated ID set is null; after the mobile router is started, generating a random number with the bit length of x +2e, and then constructing an address for a downstream interface of the mobile router, wherein the network prefix of the address is the generated random number, and the node ID is 1;
after configuring an address for a downstream interface, a mobile router starts to broadcast a beacon message through the downstream interface, wherein the source address of the beacon message is the address of the downstream interface, and the load is an allocated ID set;
the mobile node MN1 is connected with the link of the mobile router MR1, and after the mobile node MN1 receives the beacon message of the mobile router MR1, the mobile node MN1 executes the following operations to obtain the address:
step 201: starting;
step 202: the mobile node MN1 generates a random number of bit length e which is not in the assigned ID set of the received beacon message payload; the mobile node MN1 creates an address, the network prefix of the address is the network prefix of the source address of the received beacon message, and the node ID is the created random number; the mobile node MN1 sends an address request message with the source address of the created address and the destination address of the received beacon message;
step 203: after the mobile router MR1 receives the address request message, it checks whether the node ID of the source address of the address request message is in its own allocated ID set, if so, executes step 204, otherwise, executes step 205;
step 204: the mobile router MR1 sends an address repeat message, the source address of the address repeat message is the destination address of the received address request message, the destination address of the address repeat message is the source address of the received address request message, and the load is empty, execute step 206;
step 205: the mobile router MR1 sends an address confirmation message, the source address of the address confirmation message is the destination address of the received address request message, the destination address of the address confirmation message is the source address of the received address request message, the load is empty, and the mobile router MR1 adds the node ID of the source address of the received address request message into the allocated ID set;
step 206: if the mobile node MN1 received the address repeat message, step 202 is performed, otherwise step 207 is performed:
step 207: the mobile node MN1 identifies the destination address of the received address confirmation message as its own address;
step 208: and (6) ending.
Fig. 3 is a schematic diagram of a registration process according to the present invention. The core router stores a binding table, and one binding table item comprises a home address field and a care-of address field;
n upstream interfaces u in the mobile router MR1jJ is more than or equal to 1 and less than or equal to N, and the upstream interface ujSupporting N protocols pjAnd with a supporting protocol pjN basic device nodes IjAre connected to the downstream interface links of the base equipment node IjUnder the condition that the upstream interface of the access router AR1 is connected with the downstream interface of the access router AR1, after the mobile router MR1 configures the address for each upstream interface, the address is configured for each upstream interface ujThe mobile router MR1 performs the following registration operations:
step 301: starting;
step 302: mobile router MR1 slave interface ujSending a registration message with the source address of interface ujThe destination address is null;
step 303: infrastructure node IjAfter receiving the registration message from the downstream interface, directly forwarding the registration message from the upstream interface; after receiving the registration message from the downstream interface, the access router AR1 directly forwards the registration message from its upstream interface;
step 304: after receiving the registration message from the downstream interface, the core router creates a binding table entry, and the home address and the care-of address field value of the binding table entry are both the source address of the registration message;
step 305: and (6) ending.
Fig. 4 is a schematic diagram of a handover procedure according to the present invention. The core router maintains a switching table, and a switching table item comprises a home address field, an invalid care-of address field and an effective care-of address field;
under the condition that the upstream interface u1 of the mobile router MR1 is connected to the base device node I1, and the upstream interfaces of the base device node I1 and the base device node I2 are connected to one downstream interface of the access router AR1, respectively, if the mobile router MR1 detects that the interface u1 can receive the beacon messages of the base device node I1 and the base device node I2 at the same time and the signal strength of the beacon message from the base device node I2 is greater than that of the beacon message from the base device node I1, the following switching operation is performed:
step 401: starting;
step 402: the mobile router MR1 selects an upstream interface u2, the upstream interface u2 can only receive the beacon message of the currently connected basic equipment node, the mobile router MR1 sends a switching message from the upstream interface u1, the source address of the switching message is the address of the interface u1, the destination address is null, and the load is the home address of the upstream interface u1 and the care-of address of the upstream interface u 2;
step 403: after receiving the handover message from the downstream interface, the infrastructure node I1 forwards the handover message directly from the upstream interface thereof, and after receiving the handover message from the downstream interface, the access router AR1 forwards the handover message from the upstream interface thereof;
step 404: after receiving the switching message from the downstream interface, the core router creates a switching table entry, wherein the home address of the switching table entry is the home address of the interface u1 in the switching message load, the invalid care-of address is the source address of the switching message, and the valid care-of address is the care-of address of the interface u2 in the switching message load;
step 405: and (6) ending.
Fig. 5 is a schematic diagram of an address binding process according to the present invention. After an upstream interface u1 link of the mobile router MR1 is switched to a basic equipment node I2, executing steps 101-106 to acquire a new care-of address for the upstream interface u 1; after the mobile router MR1 obtains the new care-of address Addr1 for the interface u1, the following address binding operations are performed:
step 501: starting;
step 502: the mobile router MR1 sends an address update message from the interface u1, wherein the source address of the address update message is Addr1, the destination address is null, and the load is the home address of the interface u 1;
step 503: after receiving the address update message from the downstream interface, the infrastructure node I2 directly forwards the address update message from the upstream interface thereof, and after receiving the address update message from the downstream interface, the access router AR1 forwards the address update message from the upstream interface thereof;
step 504: after receiving the address updating message from the downstream interface, the core router checks the switching table, selects the switching table item of which the home address domain value is equal to the home address in the address updating message load, and deletes the switching table item; the core router checks the binding table, selects the binding table item whose home address domain value is equal to the home address in the address updating message load, and updates the care-of address of the binding table item to the source address of the address updating message;
step 505: and (6) ending.
Fig. 6 is a schematic diagram of a data communication process according to the present invention. The mobile router stores a mapping table, wherein one mapping table comprises a source address domain, a source port domain, a destination address domain and a destination port domain;
the cluster head node of the cluster member CM1 is a mobile router MR1, the node CN1 is an IPv6 node, the core router of the network where the mobile router MR1 is located is CR1, and the cluster member CM1 realizes the communication with the node CN1 through the following processes:
step 601: starting;
step 602: the CM1 sends a request message, the destination port of the request message is DP1, the destination address is the address of the CN1, the source port is SP1, and the source address is the address of the CM 1;
step 603: after receiving the request message, the mobile router MR1 creates a mapping table entry, where the source address, the source port, the destination address and the destination port of the mapping table entry are the source address, the source port, the destination address and the destination port of the request message, respectively; the mobile router MR1 selects an interface u3, the interface u3 can only receive the request message from the currently connected basic equipment node, updates the source address of the request message to the care-of address of the interface u3, and then sends the request message from the interface u 3;
step 604: after receiving the request message from the downstream interface, the basic device node connected with the interface u3 directly forwards the request message from the upstream interface; after receiving the request message from the downstream interface, the access router connected to the upstream interface of the infrastructure node forwards the request message from the upstream interface; after receiving the request message from the downstream interface, the core router CR1 forwards the request message from the upstream interface, and the request message finally reaches the node CN1 through the internet;
step 605: after receiving the request message, the node CN1 sends a response message, where the destination port and the destination address of the response message are the source port and the source address of the received request message, respectively, the source port and the source address of the response message are the destination port and the destination address of the received request message, respectively, the load is response data, and the response message reaches the core router CR1 through the internet;
step 606: after receiving the response message, the core router CR1 checks the switching table, if there is a switching table entry E1, the invalid care-of address of the switching table entry is equal to the destination address of the response message, then step 607 is executed, otherwise step 608 is executed;
step 607: the core router CR1 updates the destination address of the response message to the effective care-of address field value of the switching table entry E1;
step 608: the core router CR1 forwards the response message from the downstream interface meeting condition 1;
condition 1: the first x + e bit value of the network prefix of the address of the downstream interface is equal to the first x + e bit value of the network prefix of the destination address of the received response message;
step 609: after receiving the response message from the upstream interface, the access router connected to the condition 1-compliant downstream interface of the core router CR1 forwards the response message from the condition 2-compliant downstream interface;
condition 2: the first x +2e bit value of the network prefix of the address of the downstream interface is equal to the first x +2e bit value of the network prefix of the destination address of the received response message;
step 610: after receiving the response message from the upstream interface, the basic equipment node connected with the downstream interface of which the access router meets the condition 2 forwards the response message from the downstream interface;
step 611: the mobile router MR1 receives the response message from the upstream interface, then the mobile router MR1 checks the mapping table, selects a mapping table entry, the source port domain value of the mapping table entry is equal to the destination port of the response message, the destination port and the destination address of the mapping table entry are respectively equal to the source port and the source address of the response message, then updates the destination address of the response message to the source address of the mapping table entry, and forwards the response message from the downstream interface;
step 612: after cluster member CM1 receives the response message, it stores the response data in the response message;
step 613: and (6) ending.
Fig. 7 is a schematic diagram of a network communication flow according to the present invention. The node CN1 is an IPv6 node, the core router of the network in which the mobile router MR1 is located is CR1, and the node CN realizes the communication with the mobile router MR1 by the following processes:
step 701: starting;
step 702: the node CN1 sends a request message, the destination address of the request message is the home address of the upstream interface u4 of the mobile router MR1, the source address is the address of the node, and the request message firstly reaches the core router CR1 through the Internet;
step 703: after receiving the request message, the core router CR1 checks the switching table, if there is a switching table entry E2 and the invalid care-of address of the switching table entry E2 is equal to the destination address of the request message, then step 704 is executed, otherwise step 705 is executed;
step 704: the core router CR1 updates the destination address of the request message to the effective care-of address field value of the switch table entry E2, and executes step 706;
step 705: the core router CR1 checks the binding table, selects the binding table item whose home address domain value is equal to the destination address of the received request message, and updates the destination address of the received request message to the care-of address domain value of the binding table item;
step 706: the core router CR1 forwards the response message from the downstream interface that meets condition 3;
condition 3: the first x + e bit value of the network prefix of the address of the downstream interface is equal to the first x + e bit value of the network prefix of the destination address of the received request message;
step 707: after receiving the request message from the upstream interface, the access router connected to the condition 3 compliant downstream interface of the core router CR1 forwards the request message from the condition 4 compliant downstream interface;
condition 4: the first x +2e bit value of the network prefix of the address of the downstream interface is equal to the first x +2e bit value of the network prefix of the destination address of the received request message;
step 708: after receiving the request message from the upstream interface, the basic equipment node connected with the downstream interface of which the access router meets the condition 4 forwards the request message from the downstream interface;
step 709: the mobile router MR1 receives the request message from the upstream interface u5 and then forwards the request message from the downstream interface; after the cluster member receives the request message, if the cluster member can provide corresponding data, a response message is returned, the source address of the response message is the destination address of the received request message, the destination address of the response message is the source address of the received request message, and the load is response data; after receiving all the response messages returned by the cluster members, the mobile router MR1 arranges the data in the load of the response messages into complete response data, and sends a response message from the upstream interface u5, wherein the source address of the response message is the destination address of the received request message, the destination address of the response message is the source address of the received request message, and the load is the arranged response data;
step 710: after receiving the response message from the downstream interface, the basic equipment node connected with the upstream interface u5 of the mobile router MR1 directly forwards the response message from the upstream interface; after receiving the response message from the downstream interface, the access router connected to the upstream interface of the infrastructure node forwards the response message from the upstream interface; after receiving the response message from the downstream interface, the core router CR1 forwards the response message from the upstream interface, and the response message finally reaches the node CN1 through the internet;
step 711: after receiving the response message, the node CN1 stores the response data in the response message;
step 712: and (6) ending.
Example 1
Based on the simulation parameters in table 1, the present embodiment simulates the big data network communication implementation method in the present invention, and the performance analysis is as follows: when the moving speed of the node is increased, the packet loss rate is increased, the data communication delay is increased, when the moving speed of the node is decreased, the packet loss rate is decreased, the data communication delay is decreased, the average packet loss rate is 2.3%, and the average data communication delay is 630 ms.
TABLE 1 simulation parameters
The present invention provides a method for implementing big data network communication, and the method and the way for implementing the technical solution are many, and the above description is only the preferred embodiment of the present invention, it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention. The components not specified in this embodiment can be implemented by the prior art.