CN107968846A - Networking processing method and processing device - Google Patents
Networking processing method and processing device Download PDFInfo
- Publication number
- CN107968846A CN107968846A CN201610912422.5A CN201610912422A CN107968846A CN 107968846 A CN107968846 A CN 107968846A CN 201610912422 A CN201610912422 A CN 201610912422A CN 107968846 A CN107968846 A CN 107968846A
- Authority
- CN
- China
- Prior art keywords
- node
- address
- nodes
- network
- network node
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of networking processing method and processing device, this method includes:First node in the network node for determining to be interconnected as Internet Protocol IP servers;The IP address of other nodes in network node in addition to first node is generated by first node;Interconnection networking is carried out to network node.By the invention it is possible to solve in correlation technique without introduce in the case where lacking Dynamic Host Configuration Protocol server, the Small-scale LAN more to network node carry out networking when, how to network node carry out IP distribution the problem of.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of networking processing method and processing device.
Background technology
In correlation technique, a computer adds eight customer headend equipments (Customer Premises Equipment, letter
Referred to as CPE), the small Internet Protocol of composition one (Internet Protocol, referred to as IP) LAN, the IP of every CPE
The random generation of address start.The random uniqueness for not guaranteeing that IP address, accordingly, there exist asking for the identical IP conflicts of certain probability
Topic.
Network-building method can use two ways in correlation technique:(1) if network node is less, and three-layer routing device is lacked
Set, can connect each node by the way of very simple hub adds manual configuration IP address.It is but such a
The mode of manual configuration is too cumbersome, if node more than one, easy mismatch, causes IP to conflict.(2) three-layer routing device is used, is established
Play dynamic host configuration protocol (Dynamic Host Configuration Protocol, referred to as DHCP) server.To every
The node of one access network, automatic IP address allocation.This kind of mode is common usage, still, it is desirable to must be deposited in LAN
It is used for networking in a special Dynamic Host Configuration Protocol server, cost is higher.
Therefore, without introducing in the case where lacking Dynamic Host Configuration Protocol server in correlation technique, more to network node is small-sized
When LAN carries out networking, how IP distribution is carried out to network node, to ensure the uniqueness of each IP address of equipment.
The content of the invention
An embodiment of the present invention provides a kind of networking processing method and processing device, at least to solve not introduce in correlation technique
In the case where lacking Dynamic Host Configuration Protocol server, when the Small-scale LAN more to network node carries out networking, how to network node
The problem of carrying out IP distribution.
According to one embodiment of present invention, there is provided a kind of networking processing method, including:Determine the network interconnected
First node in node as Internet Protocol IP servers;Generated by the first node in the network node and remove institute
State the IP address of other nodes outside first node;Interconnection networking is carried out to the network node.
Optionally it is determined that the first node bag in the network node interconnected as Internet Protocol IP servers
Include:In the case where physics access procedure is there are handshake mechanism, the network section interconnected in the physics access procedure is determined
The network node in point with network interconnection is the first node of the IP servers;Alternatively, in physics access procedure not
In the case of there are handshake mechanism, the section of first start in the network node that is interconnected in the physics access procedure is determined
Point is the first node of IP servers.
Optionally it is determined that the node of first start is IP in the network node interconnected in the physics access procedure
The first node of server includes:Detect in the network node after destined node start, based on open system interconnection
Double layer network agreement sends broadcasting packet in reference model;Other nodes in the network node are not received in the given time
Back message, broadcasting packet is sent based on double layer network agreement again;When the number for sending the broadcasting packet reaches predetermined
After number, the back message of other nodes in the network node is not received yet, and it is the network to determine the destined node
The node of first start and the definite first node of the destined node as IP servers in node.
Alternatively, other nodes in the network node in addition to the first node are generated by the first node
IP address include:Generate the IP address of the first node at random by the first node;Received in the first node
In the case of the request message of other nodes into the network node in addition to the first node, pass through the first IP
Address obtains the IP address of other nodes;The IP address obtained is sent to other nodes by the first node.
Alternatively, the IP address of other nodes is obtained by first IP address to be included:Pass through described
One IP address and predetermined value, obtain the IP address of other nodes;Alternatively, by first IP address and in advance
Determine function, obtain the IP address of other nodes;Alternatively, according to first IP address in preconfigured address table
The IP address of other nodes described in middle inquiry.
According to another embodiment of the invention, there is provided a kind of networking processing unit, including:Determining module, for true
Surely the first node in the network node interconnected as Internet Protocol IP servers;Generation module, for by described
First node generates the IP address of other nodes in addition to the first node in the network node;Networking module, is used for
Interconnection networking is carried out to the network node.
Alternatively, the determining module, is additionally operable in the case where physics access procedure is there are handshake mechanism, determines described
The network node in the network node interconnected in physics access procedure with network interconnection is the IP servers
First node;Alternatively, in the case where handshake mechanism is not present in physics access procedure, determine to carry out in the physics access procedure
The node of first start is the first node of IP servers in the network node of interconnection.
Alternatively, the determining module, is additionally operable to detect in the network node after destined node start, based on opening
Double layer network agreement sends broadcasting packet in Systems Interconnection Reference model;Do not receive in the network node in the given time
The back message of other nodes, broadcasting packet is sent based on double layer network agreement again;And when the transmission broadcasting packet
After number reaches pre-determined number, the back message of other nodes in the network node is not received yet, determines the predetermined section
Point is the node of first start and the definite first segment of the destined node as IP servers in the network node
Point.
Alternatively, the generation module, with being additionally operable to generate the IP of the first node at random by the first node
Location;And the request of other nodes in the first node receives the network node in addition to the first node disappears
In the case of breath, the IP address of other nodes is obtained by first IP address;By the first node to other
Node sends the IP address obtained.
Alternatively, the generation module, is additionally operable to by first IP address and predetermined value, obtains other described sections
The IP address of point;Alternatively, by first IP address and predefined function, the IP of other nodes described in acquisition
Location;Alternatively, the IP address of other nodes described in being inquired about according to first IP address in preconfigured address table.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and uses
In the program code for performing following steps:In the network node for determining to be interconnected as Internet Protocol IP servers first
Node;The IP address of other nodes in the network node in addition to the first node is generated by the first node;
Interconnection networking is carried out to the network node.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Determine what is interconnected
The first node in network node as Internet Protocol IP servers includes:In physics access procedure, there are handshake mechanism
In the case of, there is the network node of network interconnection in the network node for determining to be interconnected in the physics access procedure
For the first node of the IP servers;Alternatively, in the case where handshake mechanism is not present in physics access procedure, the thing is determined
The node of first start is the first node of IP servers in the network node interconnected in reason access procedure.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Determine that the physics connects
The node of first start includes for the first node of IP servers in the network node interconnected during entering:Detection
Into the network node after destined node start, broadcast is sent based on double layer network agreement in open system interconnection reference model
Message;The back message of other nodes in the network node is not received in the given time, based on double layer network agreement again
Secondary transmission broadcasting packet;After the number for sending the broadcasting packet reaches pre-determined number, the network node is not received yet
In other nodes back message, determine the destined node in the network node first start node and determine institute
State the first node of the destined node as IP servers.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Pass through the first segment
The IP address that point generates other nodes in addition to the first node in the network node includes:Pass through the first node
The IP address of the first node is generated at random;The first node is removed in the first node receives the network node
Outside other nodes request message in the case of, pass through the IP address that first IP address obtains other nodes;
The IP address obtained is sent to other nodes by the first node.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Pass through the first IP
The IP address that address obtains other nodes includes:By first IP address and predetermined value, obtain it is described its
The IP address of his node;Alternatively, by first IP address and predefined function, the described of other nodes is obtained
IP address;Alternatively, the IP of other nodes described in being inquired about according to first IP address in preconfigured address table
Location.
By the present invention, the first node in the network node for determining to be interconnected as Internet Protocol IP servers;
The IP address of other nodes in network node in addition to first node is generated by first node;Network node is interconnected
Networking.Since some node in the network node interconnected to be determined as to the first node of Internet Protocol IP servers,
By determining that IP servers generate the IP address of other nodes in addition to first node in network node so that during networking
Special DHCP protocol server is no longer needed, therefore, can solve lacking Dynamic Host Configuration Protocol server without introduction in correlation technique
In the case of, the Small-scale LAN more to network node carry out networking when, how to network node carry out IP distribution the problem of.
Also, by the present invention, IP servers and IP client can be dynamically determined, i.e. IP servers and IP are re-defined during networking
Client, it is possible to reduce networking cost, networking are more convenient.
Brief description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of networking processing method of the embodiment of the present invention;
Fig. 2 is the flow chart of networking processing method according to embodiments of the present invention;
Fig. 3 is network node frame composition exemplary plot according to embodiments of the present invention;
Fig. 4 is network node example states figure according to embodiments of the present invention;
Fig. 5 is the node initializing exemplary plot of networking processing method according to embodiments of the present invention;
Fig. 6 is the structure diagram of networking processing unit according to embodiments of the present invention.
Embodiment
Come that the present invention will be described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
It should be noted that the Internet of Things developed in correlation technique, smart home, two or more network equipments it
Between, the networking processing method fast assembling IP network of the invention referred to can also be used, to carry out data exchange.
Embodiment 1
The embodiment of the method that the embodiment of the present application 1 is provided can be in mobile terminal, terminal or similar fortune
Calculate and performed in device.Exemplified by running on mobile terminals, Fig. 1 is a kind of movement of networking processing method of the embodiment of the present invention
The hardware block diagram of terminal.Handled as shown in Figure 1, mobile terminal 10 can include one or more (one is only shown in figure)
Device 102 (processor 102 can include but is not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.),
For storing the memory 104 of data and transmitting device 106 for communication function.Those of ordinary skill in the art can be with
Understand, the structure shown in Fig. 1 is only to illustrate, it does not cause to limit to the structure of above-mentioned electronic device.For example, mobile terminal 10
It may also include more either less components than shown in Fig. 1 or there is the configuration different from shown in Fig. 1.
Memory 104 can be used for the software program and module of storage application software, such as the networking in the embodiment of the present invention
Corresponding programmed instruction/the module of processing method, processor 102 by operation be stored in software program in memory 104 and
Module, so as to perform various functions application and data processing, that is, realizes above-mentioned method.Memory 104 may include at a high speed with
Machine memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or other it is non-easily
The property lost solid-state memory.In some instances, memory 104 can further comprise depositing relative to processor 102 is remotely located
Reservoir, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network is including but not limited to mutual
Networking, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to it is mutual
Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, it is used
In wirelessly being communicated with internet.
A kind of networking processing method for running on above-mentioned mobile terminal is provided in the present embodiment, and Fig. 2 is according to this hair
The flow chart of the networking processing method of bright embodiment, as shown in Fig. 2, the flow includes the following steps:
Step S202, the first node in the network node for determining to be interconnected as Internet Protocol IP servers;
Step S204, the IP address of other nodes in network node in addition to first node is generated by first node;
Step S206, interconnection networking is carried out to network node.
By above-mentioned steps, since some node in the network node interconnected is determined as Internet Protocol IP clothes
It is engaged in the first node of device, by determining IP servers with generating in network node the IP of other nodes in addition to first node
Location so that special DHCP protocol server is no longer needed during networking, therefore, can solve not introduce in correlation technique
In the case where lacking Dynamic Host Configuration Protocol server, when the Small-scale LAN more to network node carries out networking, how to network node
The problem of carrying out IP distribution.Also, by the present invention, IP servers and IP client can be dynamically determined, i.e. during networking again
Define IP servers and IP client, it is possible to reduce networking cost, networking are more convenient.
Alternatively, the network node after networking needs the data transmitted, and can be existed by the transmission mode of the network provision
Transmitted between each network node of networking.
For example, two network roles defined in the network node interconnected:IP servers (i.e. above-mentioned first segment
Point), possess the ability to other equipment distribution IP address;IP client is (in i.e. above-mentioned network node in addition to first node
Other nodes), receive the IP address of IP server-assignments.Wherein, which role network node is operated in, can be by following proposal
Determine:
Alternatively, it is different according to the physics access medium of use, it is used as internet in the network node for determining to be interconnected
The first node of protocol IP server includes:In the case where physics access procedure is there are handshake mechanism, determine that physics accessed
The network node in the network node interconnected in journey with network interconnection is the first node of IP servers;Alternatively,
In the case where handshake mechanism is not present in physics access procedure, the is determined in the network node that is interconnected in physics access procedure
The node of one start is the first node of IP servers.By above-mentioned steps, IP servers can be more efficiently determined as
First node.Wherein, what handshake mechanism was said is:When client wants Connection Service device, request is sent to server first, this is
Shake hands for the first time, server all set thinks that client sends the response based on the request, this is second handshake, and client obtains
Need to send response to server after to response, this is that third time is shaken hands, and after the completion of three-way handshake, client and server is just calculated
Establish connection.
Optionally it is determined that the node of first start services for IP in the network node interconnected in physics access procedure
The first node of device includes:Detect in network node after destined node start, based on open system interconnection reference model (OSI
Reference model) in double layer network agreement send broadcasting packet;Other nodes in network node are not received in the given time
Back message, broadcasting packet is sent based on double layer network agreement again;After the number for sending broadcasting packet reaches pre-determined number,
The back message of other nodes in network node is not received yet, determines the section that destined node is first start in network node
Put and determine first node of the destined node as IP servers.
Alternatively, the above-mentioned physical medium used can include:The various access ways such as Ethernet, WiFi, bluetooth.
For example, for physics access, there are handshake mechanism, you can to distinguish access node and by access contact (i.e. with net
Network interconnection function node), such as WiFi, it is IP servers by access node work, access node work is IP client.
In another example for physical network access without handshake mechanism, such as Ethernet, by control the available machine time interval with
And broadcasting packet detection mechanism determines.
Below by taking physical medium is Ethernet as an example, the exemplary scenario based on the IP networkings on physical medium includes following
Step:
The first step:The start of first node, based on two layers of transmission broadcasting packet, message content using TLV (Tag,
Length, Value) form agreement, byte of label (Tag), such as 0x1, byte of length (Length), 0x0, value
(Value) determined by label, length and message purpose.Here message full content is two bytes, is 00000001
00000000.It is accumulative to send three times, time interval 0.3 second.If not receiving the back message of other nodes transmission three times,
Node work is IP servers, and generates the subnet mask (such as 255.255.0.0) of an IP address and agreement at random, is made
Used for itself.Transmission times and transmission interval are example, be can adjust in actual implementation;
Second step:Second node start, pays attention to needing to keep certain intervals, the interval with first node available machine time
Time is not less than the broadcasting packet arranged in the first step and sends interval, is here 0.3 second.The same first step, node send two layers wide
Text is reported, transmission times is consistent with interval and agreement in the first step;
3rd step:Node IP server receives L 2 broadcast message, and analytic message content, first character section 0x1, representing please
Seek IP address.IP servers add 1, then be encapsulated into response message together with subnet mask with own IP address.Response message is also adopted
Arranged with TLV forms.Label 0x2 represents response, and length 0x8,8 bytes, 4 bytes are IP address before value, rear 4 bytes
For subnet mask.Requesting node is sent to by unicast.Unicast can accurately find requesting node, reduce network load;
4th step:Requesting node receives back message, according to TLV format analysis message contents, extracts IP address and son
Net mask, completes configuration.
Subsequent node access procedure no longer limits available machine time interval, remaining is consistent with second node.
Below by taking physical medium is WiFi as an example, i.e., exemplified by band handshake mechanism, based on the IP networkings on physical medium
Exemplary scenario comprises the following steps:
The first step:IP servers and IP client are determined by request access node and to have network interconnection functional node
Distinguish.Receiving access request with network interconnection functional node and completing to shake hands after authentication, random one IP of self-contained
Location, configuration uses, and adds 1 with the IP, the IP address as request access node.
Second step:Request access node is shaken hands in completion after authentication, sends L 2 broadcast message request IP address, has net
Network interconnection function node is responded by unicast.This process is identical with the 3rd step, the 4th step in Ethernet example.
It should be noted that the same time only has a network node as IP servers, other nets in a system
Network node is IP client, and IP servers and IP client can be dynamically determined in the present invention, and above-mentioned IP distribution sides
Case is not unique selection.
Alternatively, the IP address bag of other nodes in network node in addition to first node is generated by first node
Include:Generate the IP address of first node at random by first node;First node is removed in first node receives network node
Outside other nodes request message in the case of, the IP address of other nodes is obtained by the first IP address;Pass through first
Node sends the IP address obtained to other nodes, and alternatively, first node can pass through the side such as WIFI or Ethernet
Formula to other nodes send obtain the IP address, for transmit other nodes IP address mode without limit.
Alternatively, the IP address of other nodes is obtained by the first IP address to be included:By the first IP address and make a reservation for
Value, obtains the IP address of other nodes;Alternatively, by first IP address and predefined function, other described nodes are obtained
The IP address;Alternatively, the institute of other nodes described in being inquired about according to first IP address in preconfigured address table
State IP address.
For example, first node work be IP servers when, firstly generate random first IP address, as itself
IP address uses.When receiving the request of IP client, the first IP address is added into 1 the second IP address of acquisition, is sent to request section
Point, and second IP address is preserved, distribute for next request, add up successively.
Alternatively, above-mentioned network node includes following base unit:State machine maintenance unit:The work shape of management node
State, determines network role;Two layer message Transmit-Receive Unit:Complete the communication function on basis;Message checking unit:Defining message has school
Form is simultaneously responsible for parsing;Address configuration unit:Configure IP address.
In order to facilitate above-described embodiment is understood, above-described embodiment is described in detail below.Fig. 3 is real according to the present invention
The network node frame composition exemplary plot of example is applied, as shown in figure 3, network node includes four units:State machine maintenance unit, two
Layer packet sending and receiving unit, message checking unit and address configuration unit.
State machine maintenance unit:Each node has 4 states, as shown in figure 4, be divided into original state, wait response status,
IP server states, IP client state.Start shooting as original state, after broadcasting packet is sent, into waiting response status, root
Response message is received according to being whether there is in the designated time, determines to enter IP server states or IP client state;
Two layer message Transmit-Receive Unit:Each node possesses the double layered communication ability on basis, is broadcasted based on two layers and single
Packet sending and receiving is broadcast, broadcast is used for the searching IP servers in network and whether there is, and unicast is used for IP server response IP clients;
Message verification unit:The TLV forms arranged according to table 1, parse message content.Table 1 only lists at present
Two TLV examples, can subsequently extend as needed.Label (Tag) and length (Length) are a byte.It is for example, as follows
Shown in table 1, label (Tag) can define two:0x01, represents broadcast request, for finding IP servers;0x02, unicast,
IP address and subnet mask are carried value (Value) is inner, for responding broadcast request;
1 meaning tag corresponding table of table
Address configuration unit:According to IP address, subnet mask information, Configuration network address.
Fig. 5 is the node initializing exemplary plot of networking processing method according to embodiments of the present invention, as shown in figure 5, with
Too exemplified by net networking, node initializing comprises the following steps:
Step S502, first node access networks network, powers on start;
Step S504, sends L 2 broadcast message,
Step S506, waits to be answered, and starts timing;After 0.3 second, response is not received go to step S504 and send two layers again
Broadcasting packet, receives response and goes to step S514;After 0.6 second, response do not received go to step S504 and send L 2 broadcast message again,
Receive response and go to step S514, receive response and go to step S514;After 0.9 second, response is not received, goes to step S508, receives response
Go to step S514;
Step S508, intra-node state are switched to IP server modes;
Step S510, generates an IP address and is configured to own IP address, subnet mask elects 255.255.0.0 as at random;
Step S512, listening broadcast request;
Step S514, determines whether message is effective, and S516 is gone to step when determining effective, and S506 is gone to step when determining invalid,
Continue waiting for response;
Step S516, parses data, extracts IP and subnet mask information and configures;
Flow terminates.
Further included after the flow, second node start access network;Second node sends L 2 broadcast message,
Etc. to be answered, and start timing;First node receives L 2 broadcast message, with own IP address plus 1, with generating a new IP
Location, and subnet mask encapsulate together, and requesting node is replied to by unicast;Second node receives response message, with extracting IP
Location and subnet mask information simultaneously configure.
The time interval and transmission times defined herein, simply example, can adjust as needed in actual implementation
It is whole.
Above-described embodiment, application range are wider.Node need not support complete ICP/IP protocol, it is only necessary to support basic
Double layer network agreement and IP network agreement, you can be automatically performed IP networkings.Improve producing line CPE production efficiencys.It can apply
Lightweight node in Internet of Things, smart home.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but very much
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
A kind of networking processing unit is additionally provided in the present embodiment, which is used for realization above-described embodiment and preferred reality
Mode is applied, had carried out repeating no more for explanation.As used below, term " module " can realize the soft of predetermined function
The combination of part and/or hardware.Although following embodiments described devices is preferably realized with software, hardware, or
The realization of the combination of software and hardware is also what may and be contemplated.
Fig. 6 is the structure diagram of networking processing unit according to embodiments of the present invention, as shown in fig. 6, the device includes:
Determining module 62, for the first segment in the network node that determines to be interconnected as Internet Protocol IP servers
Point;
Generation module 64, is connected to above-mentioned determining module 62, and first is removed in network node for being generated by first node
The IP address of other nodes outside node;
Networking module 66, is connected to above-mentioned generation module 64, for carrying out interconnection networking to network node.
Optionally it is determined that module 62, is additionally operable to, in the case where physics access procedure is there are handshake mechanism, determine that physics connects
The network node in the network node interconnected during entering with network interconnection is the first node of IP servers;Or
Person, in the case where handshake mechanism is not present in physics access procedure, determines the network node interconnected in physics access procedure
In first start node be IP servers first node.
Optionally it is determined that module 62, is additionally operable to detect in network node after destined node start, it is mutual based on open system
Even double layer network agreement sends broadcasting packet in reference model;Other nodes in network node are not received in the given time
Back message, broadcasting packet is sent based on double layer network agreement again;And when the number for sending broadcasting packet reaches predetermined time
After number, the back message of other nodes in network node is not received yet, determines that destined node is opened for first in network node
The node of machine simultaneously determines first node of the destined node as IP servers.
Alternatively, generation module 64, are additionally operable to generate the IP address of first node at random by first node;And
One node is received in network node in the case of the request message of other nodes in addition to first node, by the first IP
Location obtains the IP address of other nodes;The IP address obtained is sent to other nodes by the first node.
Alternatively, generation module 64, with being additionally operable to, by the first IP address and predetermined value, obtain the IP of other nodes
Location;Alternatively, pass through first IP address and predefined function, the IP address of acquisition other nodes;Alternatively, according to
First IP address inquires about the IP address of other nodes in preconfigured address table.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
In the following manner realization is crossed, but not limited to this:Above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 3
The embodiment of the present invention additionally provides a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:
S1, the first node in the network node for determining to be interconnected as Internet Protocol IP servers;
S2, the IP address of other nodes in network node in addition to first node is generated by first node;
S3, interconnection networking is carried out to network node.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Determine to be interconnected
Network node in include as the first nodes of Internet Protocol IP servers:
S1, in the case where physics access procedure is there are handshake mechanism, determines the net interconnected in physics access procedure
The network node in network node with network interconnection is the first node of IP servers;
S2, in the case where handshake mechanism is not present in physics access procedure, determines what is interconnected in physics access procedure
The node of first start is the first node of IP servers in network node.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Determine that physics accesses
During in the network node that is interconnected the node of first start include for the first node of IP servers:
S1, detects in network node after destined node start, based on double layer network in open system interconnection reference model
Agreement sends broadcasting packet;
S2, does not receive the back message of other nodes in network node in the given time, based on double layer network agreement
Broadcasting packet is sent again;
S3, after the number for sending broadcasting packet reaches pre-determined number, does not receive other nodes in network node yet
Back message, determines destined node as the node of first start in network node and determines destined node as IP servers
First node.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Pass through first node
The IP address of other nodes in generation network node in addition to first node includes:
S1, the IP address of first node is generated by first node at random;
S2, the situation of the request message of other nodes in first node receives network node in addition to first node
Under, the IP address of other nodes is obtained by the first IP address;
S3, the IP address obtained is sent by the first node to other nodes.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By the first IP
The IP address that location obtains other nodes includes:
S1, by the first IP address and predetermined value, obtains the IP address of other nodes;Alternatively, pass through the first IP
Address and predefined function, obtain the IP address of other nodes;Alternatively, matched somebody with somebody according to first IP address in advance
The IP address of other nodes is inquired about in the address table put.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor is performed according to stored program code in storage medium:Determine to carry out
First node in the network node of interconnection as Internet Protocol IP servers;Generated in network node and removed by first node
The IP address of other nodes outside first node;Interconnection networking is carried out to network node.
Alternatively, in the present embodiment, processor is performed according to stored program code in storage medium:Determine to carry out
First node in the network node of interconnection as Internet Protocol IP servers includes:There is machine of shaking hands in physics access procedure
In the case of system, the network node in the network node for determining to be interconnected in physics access procedure with network interconnection is
The first node of IP servers;Alternatively, in the case where handshake mechanism is not present in physics access procedure, physics access procedure is determined
The node of first start is the first node of IP servers in the middle network node interconnected.
Alternatively, in the present embodiment, processor is performed according to stored program code in storage medium:Determine physics
The node of first start includes for the first node of IP servers in the network node interconnected in access procedure:Detect
In network node after destined node start, broadcasting packet is sent based on double layer network agreement in open system interconnection reference model;
Do not receive the back message of other nodes in network node in the given time, broadcast is sent based on double layer network agreement again
Message;After the number for sending broadcasting packet reaches pre-determined number, the response report of other nodes in network node is not received yet
Text, it is the node of first start and definite first segment of the destined node as IP servers in network node to determine destined node
Point.
Alternatively, in the present embodiment, processor is performed according to stored program code in storage medium:Pass through first
The IP address of other nodes in node generation network node in addition to first node includes:Generate at random by first node
The IP address of one node;The request message of other nodes in first node receives network node in addition to first node
In the case of, the IP address of other nodes is obtained by the first IP address;Sent and obtained to other nodes by the first node
The IP address.
Alternatively, in the present embodiment, processor is performed according to stored program code in storage medium:Pass through first
The IP address that IP address obtains other nodes includes:By the first IP address and predetermined value, the IP address of other nodes is obtained;
Alternatively, pass through first IP address and predefined function, the IP address of acquisition other nodes;Alternatively, according to institute
State the IP address that the first IP address inquires about other nodes in preconfigured address table.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.Combined in this way, the present invention is not restricted to any specific hardware and software.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this area
For art personnel, the invention may be variously modified and varied.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.
Claims (12)
- A kind of 1. networking processing method, it is characterised in that including:First node in the network node for determining to be interconnected as Internet Protocol IP servers;The IP address of other nodes in the network node in addition to the first node is generated by the first node;Interconnection networking is carried out to the network node.
- 2. according to the method described in claim 1, it is characterized in that, it is used as internet protocol in the network node for determining to be interconnected The first node of view IP servers includes:The network node in the network node for determining to be interconnected with the network interconnection is the first segment of the IP servers Point.
- 3. according to the method described in claim 1, it is characterized in that, it is used as internet protocol in the network node for determining to be interconnected The first node of view IP servers includes:The node of first start is the first node of IP servers in the network node for determining to be interconnected.
- 4. according to the method described in claim 2, it is characterized in that, determine in the network node that is interconnected first start Node includes for the first node of IP servers:Detect in the network node after destined node start, based on double layer network agreement in open system interconnection reference model Send broadcasting packet;The back message of other nodes in the network node is not received in the given time, based on double layer network agreement again Send broadcasting packet;After the number for sending the broadcasting packet reaches pre-determined number, other nodes in the network node are not received yet Back message, it is the node of first start and the definite destined node work in the network node to determine the destined node For the first node of IP servers.
- 5. according to the method described in claim 1, removed it is characterized in that, being generated by the first node in the network node The IP address of other nodes outside the first node includes:Generate the IP address of the first node at random by the first node;The request message of other nodes in the first node receives the network node in addition to the first node In the case of, pass through the IP address of first IP address acquisition other nodes;The IP address obtained is sent to other nodes by the first node.
- 6. according to the method described in claim 5, it is characterized in that, other nodes are obtained by first IP address The IP address includes:By first IP address and predetermined value, the IP address of acquisition other nodes;Alternatively,By first IP address and predefined function, the IP address of acquisition other nodes;Alternatively,The IP address of other nodes described in being inquired about according to first IP address in preconfigured address table.
- A kind of 7. networking processing unit, it is characterised in that including:Determining module, for the first node in the network node that determines to be interconnected as Internet Protocol IP servers;Generation module, for generating other sections in the network node in addition to the first node by the first node The IP address of point;Networking module, for carrying out interconnection networking to the network node.
- 8. device according to claim 7, it is characterised in that the determining module, is additionally operable to determine the net interconnected The network node in network node with network interconnection is the first node of the IP servers.
- 9. device according to claim 7, it is characterised in that the determining module, is additionally operable to determine the net interconnected The node of first start is the first node of IP servers in network node.
- 10. device according to claim 8, it is characterised in that the determining module, is additionally operable to detect the network section In point after destined node start, broadcasting packet is sent based on double layer network agreement in open system interconnection reference model;Predetermined The back message of other nodes in the network node is not received in time, sends broadcast report again based on double layer network agreement Text;And after the number for sending the broadcasting packet reaches pre-determined number, other in the network node are not received yet and are saved The back message of point, it is the node of first start and the definite predetermined section in the network node to determine the destined node The first node of the point as IP servers.
- 11. device according to claim 7, it is characterised in that the generation module, is additionally operable to by the first node The IP address of the first node is generated at random;And described first is removed in the first node receives the network node In the case of the request message of other nodes outside node, the IP of other nodes is obtained by first IP address Location;And the IP address obtained is sent to other nodes by the first node.
- 12. according to the devices described in claim 11, it is characterised in that the generation module, is additionally operable to by the first IP Address and predetermined value, obtain the IP address of other nodes;Alternatively, pass through first IP address and predetermined letter Number, obtains the IP address of other nodes;Alternatively, looked into according to first IP address in preconfigured address table Ask the IP address of other nodes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610912422.5A CN107968846A (en) | 2016-10-19 | 2016-10-19 | Networking processing method and processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610912422.5A CN107968846A (en) | 2016-10-19 | 2016-10-19 | Networking processing method and processing device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107968846A true CN107968846A (en) | 2018-04-27 |
Family
ID=61996257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610912422.5A Withdrawn CN107968846A (en) | 2016-10-19 | 2016-10-19 | Networking processing method and processing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107968846A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020087405A1 (en) * | 2018-10-31 | 2020-05-07 | 深圳迈瑞生物医疗电子股份有限公司 | In vitro diagnostic device, in vitro diagnostic pipeline and networking method therefor |
CN115834394A (en) * | 2022-11-09 | 2023-03-21 | 云南电网有限责任公司 | Heterogeneous converged communication networking method for power transmission line |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009018835A1 (en) * | 2007-08-06 | 2009-02-12 | Nec Europe Ltd. | Method for automatic address configuration in a mobile ad hoc network (manet) |
CN104468869A (en) * | 2014-12-31 | 2015-03-25 | 杭州华三通信技术有限公司 | Method for allocating IP addresses to terminals and method and device for obtaining IP addresses |
CN105142118A (en) * | 2015-08-11 | 2015-12-09 | 电子科技大学 | Rapid random access method of TD-LTE cluster system user |
CN105227349A (en) * | 2015-08-27 | 2016-01-06 | 北京泰乐德信息技术有限公司 | Nomadic MANET dispatching patcher and dispatching method thereof |
CN105516384A (en) * | 2015-11-27 | 2016-04-20 | 上海中兴派能能源科技有限公司 | Method and system for allocating addresses to plurality of battery modules |
-
2016
- 2016-10-19 CN CN201610912422.5A patent/CN107968846A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009018835A1 (en) * | 2007-08-06 | 2009-02-12 | Nec Europe Ltd. | Method for automatic address configuration in a mobile ad hoc network (manet) |
CN104468869A (en) * | 2014-12-31 | 2015-03-25 | 杭州华三通信技术有限公司 | Method for allocating IP addresses to terminals and method and device for obtaining IP addresses |
CN105142118A (en) * | 2015-08-11 | 2015-12-09 | 电子科技大学 | Rapid random access method of TD-LTE cluster system user |
CN105227349A (en) * | 2015-08-27 | 2016-01-06 | 北京泰乐德信息技术有限公司 | Nomadic MANET dispatching patcher and dispatching method thereof |
CN105516384A (en) * | 2015-11-27 | 2016-04-20 | 上海中兴派能能源科技有限公司 | Method and system for allocating addresses to plurality of battery modules |
Non-Patent Citations (1)
Title |
---|
MARIA FAZIO等: "Automatic IP address configuration in VANETs", 《PROCEEDINGS OF THE THIRD INTERNATIONAL WORKSHOP ON VEHICULAR AD HOC NETWORKS, VANET 2006》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020087405A1 (en) * | 2018-10-31 | 2020-05-07 | 深圳迈瑞生物医疗电子股份有限公司 | In vitro diagnostic device, in vitro diagnostic pipeline and networking method therefor |
CN112840624A (en) * | 2018-10-31 | 2021-05-25 | 深圳迈瑞生物医疗电子股份有限公司 | In-vitro diagnosis equipment, in-vitro diagnosis assembly line and networking method thereof |
CN115834394A (en) * | 2022-11-09 | 2023-03-21 | 云南电网有限责任公司 | Heterogeneous converged communication networking method for power transmission line |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3836577B1 (en) | Session management method and device for user groups | |
CN106797377A (en) | The infrastructure access in networking data path is perceived via neighbours | |
WO2014189641A1 (en) | Mac layer transport for wi-fi direct services application service platform without internet protocol | |
US9119020B2 (en) | Method and apparatus for discovering wireless devices | |
CN106357542B (en) | The method and software defined network controller of multicast service are provided | |
CN114342332B (en) | Communication method, device and system | |
CN109672708A (en) | Communication means and device, system | |
WO2017020790A1 (en) | Multi-screen control method and device | |
CN107800597A (en) | Data transmission method, device and the computer-readable recording medium of home appliance | |
CN107509176A (en) | Method for building up and device, the computer-readable storage medium of a kind of group | |
CN102404616B (en) | Method and system for pushing data cloud based on digital television network | |
CN109561340A (en) | Multimedia service processing method, equipment, multimedia service group and storage medium | |
CN103561122B (en) | IPv6 address collocation method, IPv6 client and server | |
CN108207018A (en) | Wireless connection method and device | |
CN105991377B (en) | The method for finding and communicating between universal plug and play UPnP device | |
CN107968846A (en) | Networking processing method and processing device | |
CN102546225B (en) | Video resource sharing method and management platform | |
CN108702799A (en) | Method for merging mobile core and IOT data | |
CN113382065A (en) | File downloading method, device, system, equipment and storage medium | |
CN102006266B (en) | Method for configuring service quality parameter, remote access server and system | |
WO2017161866A1 (en) | Network connection method and device | |
CN111163463A (en) | Method, device, equipment and storage medium for accessing wireless equipment to router | |
CN108566441B (en) | Method for processing data by NAS device, NAS device and medium | |
CN111064825A (en) | Method and device for realizing DPI data acquisition and control based on ARP | |
CN108574637B (en) | Address self-learning method and device and switch |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180427 |
|
WW01 | Invention patent application withdrawn after publication |