CN109040334B - Static intranet mapping method, extranet server, intranet communication equipment and system - Google Patents

Static intranet mapping method, extranet server, intranet communication equipment and system Download PDF

Info

Publication number
CN109040334B
CN109040334B CN201810764141.9A CN201810764141A CN109040334B CN 109040334 B CN109040334 B CN 109040334B CN 201810764141 A CN201810764141 A CN 201810764141A CN 109040334 B CN109040334 B CN 109040334B
Authority
CN
China
Prior art keywords
communication equipment
server
extranet
character string
external network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810764141.9A
Other languages
Chinese (zh)
Other versions
CN109040334A (en
Inventor
陈建欣
燕小成
徐杲旭
杜萍
李焱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Data Trading Co ltd
Original Assignee
Shandong Normal University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Normal University filed Critical Shandong Normal University
Priority to CN201810764141.9A priority Critical patent/CN109040334B/en
Publication of CN109040334A publication Critical patent/CN109040334A/en
Application granted granted Critical
Publication of CN109040334B publication Critical patent/CN109040334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a static intranet mapping method, an extranet server, intranet communication equipment and a system, wherein the extranet server receives a connection request sent by the intranet communication equipment; the connection request includes: the unique identification number of the intranet communication equipment; after receiving the connection request, the extranet server sends a request reply to the intranet communication equipment, wherein the request reply comprises: a confirmation number of the unique identification number; the outer net server receives the Mac address of the inner net communication equipment sent by the inner net communication equipment, and the outer net server establishes TCP connection with the inner net communication equipment; and the outer network server establishes a mapping relation table of the Mac address and the logic address and allocates a unique logic address for the inner network communication equipment. The public access of the intranet equipment is realized by adopting a mapping relation of multi-layer tree-level nesting; the static logic mapping address is adopted to ensure the address invariance of each device; and the reliability of data transmission is ensured by adopting a TCP protocol.

Description

Static intranet mapping method, extranet server, intranet communication equipment and system
Technical Field
The invention relates to the technical field of computer network communication, in particular to a static intranet mapping method, an extranet server, intranet communication equipment and a system.
Background
In the field of computer network technology, in order to implement communication between computers, it is necessary to connect the computers. It is known in telephony that telephone subscribers are identified by means of telephone numbers. Similarly, in order to distinguish between different computers in a network, it is also necessary to assign a computer a networking private number, which is called an IP address. The IP address is a uniform address format, which allocates a logical address to each network and each host on the internet, so as to mask the difference of physical addresses.
Since the address of the IPv4 protocol is 32 bits, the IPv4 protocol can be used for realizing the address of the IPvProvision of 232An address. Therefore, the number of address resources is very limited; on the other hand, with the popularization of internet technology, more intelligent terminals are required to be connected to the internet, and therefore originally limited address resources are more visible. In order to solve the problem of insufficient IP address resources, the current solution is built by using the IPv6 protocol and an intranet (local area network).
However, the IPv6 protocol is still not uniformly applied due to the problems of hardware compatibility, software compatibility, revenue effect, and the like. The intranet construction is an IP address allocation technology which is commonly used at present, and the problems of insufficient resources of IP addresses, redundancy of IP address routing tables and the like are solved.
However, when a device in the intranet is accessed by another device on the internet, there is a problem that the other device on the internet cannot access the device except the own intranet device. However, the current intranet penetration technology, such as a port mapping technology of a one-to-many C/S structure, has the problems of slow access speed, variability of access addresses, unstable UDP data transmission, high packet loss rate, and the like.
In summary, an effective solution is still lacking for how to solve the public access problem of the intranet device by using the existing IPv4 protocol address on the premise of ensuring the transmission speed and reliability.
Disclosure of Invention
In order to solve the above problems, the present invention provides a static intranet mapping method, an extranet server, an intranet communication device and a system. The public access of the intranet equipment is realized by adopting a mapping relation of multi-layer tree-level nesting; the static logic mapping address is adopted to ensure the address invariance of each device; and the reliability of data transmission is ensured by adopting a TCP protocol.
In order to achieve the purpose, the invention provides the following technical scheme:
as a first aspect of the present invention, a static intranet mapping method is provided,
a static intranet mapping method comprises the following steps:
step (a 1): the extranet server receives a connection request sent by the intranet communication equipment; the connection request includes: the unique identification number of the intranet communication equipment;
step (a 2): after receiving the connection request, the extranet server sends a request reply to the intranet communication equipment, wherein the request reply comprises: a confirmation number of the unique identification number;
step (a 3): the outer net server receives the Mac address of the inner net communication equipment sent by the inner net communication equipment, and the outer net server establishes TCP connection with the inner net communication equipment;
step (a 4): and the outer network server establishes a mapping relation table of the Mac address and the logic address and allocates a unique logic address for the inner network communication equipment.
As a further improvement of the invention, the confirmation number of the unique identification number is the character string of the unique identification number plus one.
As a further improvement of the present invention, the step of allocating a unique logical address to the intranet communication device comprises:
the external network server randomly generates a random character string, and compares the randomly generated character string with the existing logical address in the mapping relation table of the Mac address and the logical address:
if the randomly generated character string is not repeated with the existing logical address, the current randomly generated character string is taken as a unique logical address to be distributed to the intranet communication equipment;
if the randomly generated character string is overlapped with the logical address, the extranet server randomly generates the character string again until the randomly generated character string is not overlapped with the logical address, and distributes the non-overlapped character string as a unique logical address to the intranet communication equipment.
As a further improvement of the invention, if the random character string generated by the current extranet server is repeated with all the logical addresses in the mapping relation table, the random character string of the current extranet server is exhausted; the current extranet server is connected with the previous extranet server; the previous level of the external network server continues to provide random character strings for the current external network server, and the current external network server continues to provide a unique logical address for the intranet communication equipment; and by analogy, when the random character string of the previous-stage external network server is exhausted, the previous-stage external network server is connected with the previous-stage external network servers, the previous-stage external network servers provide the random character string for the previous-stage external network server, the previous-stage external network server continues to provide the random character string for the current external network server, and the current external network server continues to provide the unique logical address for the intranet communication equipment.
As a further improvement of the invention, after the external network server is disconnected from the intranet communication equipment, when the connection is carried out again, the external network server establishes TCP connection with the intranet communication equipment again, and the historical logical address is adopted by matching in the mapping relation table of the Mac address and the logical address according to the Mac address of the intranet communication equipment, so that the 8-bit logical address is not generated again.
As a further improvement of the present invention, the extranet server receives a request instruction of a third party communication device to access the intranet communication device, and the request instruction includes: a logical address of the accessed intranet communication equipment;
the outer network server matches in a mapping relation table of the Mac address and the logical address according to the logical address, and if the matching is successful, the outer network server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the intranet communication equipment; if the matching fails, the current external network server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the next-level external network server for continuous matching until the matching is successful.
As a second aspect of the present invention, a static intranet mapping method is provided, including:
step (b 1): the intranet communication equipment sends a connection request to an extranet server; the connection request includes: the unique identification number of the intranet communication equipment;
step (b 2): the intranet communication equipment receives a request reply sent by the extranet server; the request reply includes: a confirmation number of the unique identification number;
step (b 3): after receiving the request reply, the intranet communication equipment judges whether the confirmation number of the unique identification number is correct or not, and if the confirmation number of the unique identification number is correct, the intranet communication equipment sends the Mac address of the intranet communication equipment to the extranet server and establishes TCP connection with the extranet server;
step (b 4): and the intranet communication equipment receives the unique logical address distributed by the extranet server.
Further, the confirmation number of the unique identification number is the character string of the unique identification number plus one;
as a third aspect of the present invention, there is provided an extranet server;
an extranet server configured to:
receiving a connection request sent by intranet communication equipment; the connection request includes: the unique identification number of the intranet communication equipment;
after receiving the connection request, sending a request reply to the intranet communication equipment, wherein the request reply comprises: a confirmation number of the unique identification number;
receiving a Mac address of the intranet communication equipment sent by the intranet communication equipment, and establishing TCP connection between the extranet server and the intranet communication equipment;
and establishing a mapping relation table of the Mac address and the logic address, and allocating a unique logic address for the intranet communication equipment.
Further, the confirmation number of the unique identification number is the character string of the unique identification number plus one;
as a fourth aspect of the present invention, there is provided an intranet communication apparatus;
an intranet communication device configured to:
sending a connection request to an extranet server; the connection request includes: the unique identification number of the intranet communication equipment;
receiving a request reply sent by an external network server; the request reply includes: a confirmation number of the unique identification number;
after receiving the request reply, judging whether the confirmation number of the unique identification number is correct, if so, sending the Mac address of the intranet communication equipment to an extranet server by the intranet communication equipment, and establishing TCP connection with the extranet server;
a unique logical address assigned by the extranet server is received.
Further, the confirmation number of the unique identification number is the character string of the unique identification number plus one;
further, the intranet communication device includes: and computers, etc.
As a fifth aspect of the present invention, there is provided a static intranet mapping system,
a static intranet mapping system comprising: the intranet communication equipment and the extranet server as described above; the extranet server becomes arborescent connection, and first order extranet server is connected with a plurality of second level extranet server, and every second level extranet server all is connected with a plurality of third level extranet server, and every third level extranet server all is connected with a plurality of fourth level extranet server to this analogize, and each level extranet server all is connected with a plurality of intranet communication equipment through the switch.
The step of allocating the unique logic address for the intranet communication equipment comprises the following steps:
the external network server randomly generates a random character string, and compares the randomly generated character string with the existing logical address in the mapping relation table of the Mac address and the logical address:
if the randomly generated character string is not repeated with the existing logical address, the current randomly generated character string is taken as a unique logical address to be distributed to the intranet communication equipment;
if the randomly generated character string is repeated with the logic address, the outer network server randomly generates the character string again until the randomly generated character string is not repeated with the logic address, and distributes the non-repeated character string as a unique logic address to the inner network communication equipment;
if the random character string generated by the current extranet server is repeated with all the logic addresses in the mapping relation table, the random character string of the current extranet server is exhausted; the current extranet server is connected with the previous extranet server; the previous level of the external network server continues to provide random character strings for the current external network server, and the current external network server continues to provide a unique logical address for the intranet communication equipment; and by analogy, when the random character string of the previous-stage external network server is exhausted, the previous-stage external network server is connected with the previous-stage external network servers, the previous-stage external network servers provide the random character string for the previous-stage external network server, the previous-stage external network server continues to provide the random character string for the current external network server, and the current external network server continues to provide the unique logical address for the intranet communication equipment.
The intranet communication equipment is equipment waiting for being accessed by the Internet third-party equipment.
The switch is a network bridge for communication between the intranet communication equipment and the public network server.
And the extranet server provides public access service for the intranet communication equipment.
Compared with the prior art, the invention has the beneficial effects that:
compared with the current IPv4 full public network and the traditional internal network mapping technology of the C/S structure, the invention adopts the mapping relation of multi-layer tree level nesting to realize the public access of the internal network equipment and improve the speed of the internal network mapping public access; the static logic mapping address is adopted to ensure the address invariance of each device, and after the user disconnects and gets online again, the public access does not change the access address again; the TCP connection is established by adopting a request-reply authentication process, so that the reliability of data transmission is ensured; the problem of IPv4 resource shortage is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application.
FIG. 1 is a first-level tree formation diagram of a static intranet mapping system according to the present invention when 8-bit randomly generated access logical addresses are not exhausted;
FIG. 2 is a multi-level tree formation diagram of a static intranet mapping system according to the present invention when 8-bit randomly generated access logical addresses are exhausted;
fig. 3 is a schematic step diagram of providing an intranet mapping service by using a static intranet mapping method according to the present invention.
The reference signs are: 1: an intranet communication device; 2: an extranet server; 3: a switch.
Detailed Description
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
As a first embodiment of the present invention, a static intranet mapping method is provided,
as shown in fig. 3, a static intranet mapping method includes:
step (s 1): the extranet server receives a connection request sent by the intranet communication equipment; the connection request includes: the unique identification number of the intranet communication equipment; such as 269a18e12 w.
Step (s 2): after receiving the connection request, the extranet server sends a request reply to the intranet communication equipment, wherein the request reply comprises: a confirmation number of the unique identification number; the confirmation number of the unique identification number is the character string of the unique identification number plus one; such as 269a18e12w 1.
Step (s 3): the intranet communication equipment confirms whether the unique identification number is correct or not; if the address is correct, the internal network communication equipment sends the Mac address to an external network server;
step (s 4): the outer net server receives the Mac address of the inner net communication equipment sent by the inner net communication equipment, and the outer net server establishes TCP connection with the inner net communication equipment; the outer network server establishes a mapping relation table of Mac addresses and logic addresses and allocates a unique logic address for the inner network communication equipment;
step (s 5): the extranet server receives a request instruction of a third-party communication device for accessing the intranet communication device, wherein the request instruction comprises: a logical address of the accessed intranet communication equipment;
step (s 6): the external network server matches in the mapping relation table of the Mac address and the logical address according to the logical address,
step (s 7): if the matching is successful, the extranet server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the intranet communication equipment; if the matching fails, the current external network server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the next-level external network server for continuous matching until the matching is successful.
As a further improvement of the present invention, the step of allocating a unique logical address to the intranet communication device comprises:
the external network server randomly generates an 8-bit random character string, and compares the randomly generated character string with the existing logical address in the mapping relation table of the Mac address and the logical address:
if the randomly generated character string is not repeated with the existing logical address, the current randomly generated character string is taken as a unique logical address to be distributed to the intranet communication equipment;
if the randomly generated character string is overlapped with the logical address, the extranet server randomly generates the character string again until the randomly generated character string is not overlapped with the logical address, and distributes the non-overlapped character string as a unique logical address to the intranet communication equipment.
As a further improvement of the invention, if the random character string generated by the current extranet server is repeated with all the logical addresses in the mapping relation table, the random character string of the current extranet server is exhausted; the current extranet server is connected with the previous extranet server; the previous level of the external network server continues to provide random character strings for the current external network server, and the current external network server continues to provide a unique logical address for the intranet communication equipment; and by analogy, when the random character string of the previous-stage external network server is exhausted, the previous-stage external network server is connected with the previous-stage external network servers, the previous-stage external network servers provide the random character string for the previous-stage external network server, the previous-stage external network server continues to provide the random character string for the current external network server, and the current external network server continues to provide the unique logical address for the intranet communication equipment.
As a further improvement of the invention, after the external network server is disconnected from the intranet communication equipment, when the connection is carried out again, the external network server establishes TCP connection with the intranet communication equipment again, and the historical logical address is adopted by matching in the mapping relation table of the Mac address and the logical address according to the Mac address of the intranet communication equipment, so that the 8-bit logical address is not generated again.
As a further improvement of the present invention, as shown in fig. 3, the extranet server receives a request instruction for the third party communication device to access the intranet communication device, where the request instruction includes: a logical address of the accessed intranet communication equipment;
the outer network server matches in a mapping relation table of the Mac address and the logical address according to the logical address, and if the matching is successful, the outer network server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the intranet communication equipment; if the matching fails, the current external network server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the next-level external network server for continuous matching until the matching is successful.
As a second embodiment of the present invention, a static intranet mapping method is provided, including:
step (b 1): the intranet communication equipment sends a connection request to an extranet server; the connection request includes: the unique identification number of the intranet communication equipment;
step (b 2): the intranet communication equipment receives a request reply sent by the extranet server; the request reply includes: a confirmation number of the unique identification number; the confirmation number of the unique identification number is the character string of the unique identification number plus one;
step (b 3): after receiving the request reply, the intranet communication equipment judges whether the confirmation number of the unique identification number is correct or not, and if the confirmation number of the unique identification number is correct, the intranet communication equipment sends the Mac address of the intranet communication equipment to the extranet server and establishes TCP connection with the extranet server;
step (b 4): and the intranet communication equipment receives the unique logical address distributed by the extranet server.
As a third embodiment of the present invention, there is provided an extranet server;
an extranet server configured to:
receiving a connection request sent by intranet communication equipment; the connection request includes: the unique identification number of the intranet communication equipment;
after receiving the connection request, sending a request reply to the intranet communication equipment, wherein the request reply comprises: a confirmation number of the unique identification number; the confirmation number of the unique identification number is the character string of the unique identification number plus one;
receiving a Mac address of the intranet communication equipment sent by the intranet communication equipment, and establishing TCP connection between the extranet server and the intranet communication equipment;
and establishing a mapping relation table of the Mac address and the logic address, and allocating a unique logic address for the intranet communication equipment.
As a fourth embodiment of the present invention, there is provided an intranet communication apparatus;
an intranet communication device configured to:
sending a connection request to an extranet server; the connection request includes: the unique identification number of the intranet communication equipment;
receiving a request reply sent by an external network server; the request reply includes: a confirmation number of the unique identification number; the confirmation number of the unique identification number is the character string of the unique identification number plus one;
after receiving the request reply, judging whether the confirmation number of the unique identification number is correct, if so, sending the Mac address of the intranet communication equipment to an extranet server by the intranet communication equipment, and establishing TCP connection with the extranet server;
a unique logical address assigned by the extranet server is received.
Further, the intranet communication device includes: and computers, etc.
As a fifth embodiment of the present invention, there is provided
As shown in fig. 1, a static intranet mapping system includes: an intranet communication device 1 and an extranet server 2; the extranet servers are connected in a tree shape, as shown in fig. 2, the first level extranet server is connected with a plurality of second level extranet servers, each second level extranet server is connected with a plurality of third level extranet servers, each third level extranet server is connected with a plurality of fourth level extranet servers, and so on, the last level extranet server is connected with a plurality of intranet communication equipment through the switch 3.
The intranet communication equipment is equipment waiting for being accessed by the Internet third-party equipment.
The switch is a network bridge for communication between the intranet communication equipment and the public network server.
And the extranet server provides public access service for the intranet communication equipment.
Compared with the current IPv4 full public network and the traditional internal network mapping technology with the C/S structure, the embodiment of the invention adopts the mapping relation of multi-layer tree level nesting, realizes the public access of internal network equipment and improves the speed of internal network mapping public access; the static logic mapping address is adopted to ensure the address invariance of each device, and after the user disconnects and gets online again, the public access does not change the access address again; the TCP connection is established by adopting a request-reply authentication process, so that the reliability of data transmission is ensured; the problem of IPv4 resource shortage is solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (7)

1. A static intranet mapping method is characterized by comprising the following steps:
step (a 1): the extranet server receives a connection request sent by the intranet communication equipment; the connection request includes: the unique identification number of the intranet communication equipment;
step (a 2): after receiving the connection request, the extranet server sends a request reply to the intranet communication equipment, wherein the request reply comprises: a confirmation number of the unique identification number;
step (a 3): the outer net server receives the Mac address of the inner net communication equipment sent by the inner net communication equipment, and the outer net server establishes TCP connection with the inner net communication equipment;
step (a 4): the outer network server establishes a mapping relation table of Mac addresses and logic addresses and allocates a unique logic address for the inner network communication equipment;
the step of allocating the unique logic address for the intranet communication equipment comprises the following steps:
the external network server randomly generates a random character string, and compares the randomly generated character string with the existing logical address in the mapping relation table of the Mac address and the logical address:
if the randomly generated character string is not repeated with the existing logical address, the current randomly generated character string is taken as a unique logical address to be distributed to the intranet communication equipment;
if the randomly generated character string is repeated with the logic address, the outer network server randomly generates the character string again until the randomly generated character string is not repeated with the logic address, and distributes the non-repeated character string as a unique logic address to the inner network communication equipment;
the extranet servers are connected in a tree shape, the first-stage extranet server is connected with a plurality of second-stage extranet servers, each second-stage extranet server is connected with a plurality of third-stage extranet servers, each third-stage extranet server is connected with a plurality of fourth-stage extranet servers, and by analogy, each stage of extranet server is connected with a plurality of intranet communication devices through a switch;
if the random character string generated by the current extranet server is repeated with all the logic addresses in the mapping relation table, the random character string of the current extranet server is exhausted; the current extranet server is connected with the previous extranet server; the previous level of the external network server continues to provide random character strings for the current external network server, and the current external network server continues to provide a unique logical address for the intranet communication equipment; and by analogy, when the random character string of the previous-stage external network server is exhausted, the previous-stage external network server is connected with the previous-stage external network servers, the previous-stage external network servers provide the random character string for the previous-stage external network server, the previous-stage external network server continues to provide the random character string for the current external network server, and the current external network server continues to provide the unique logical address for the intranet communication equipment.
2. The static intranet mapping method according to claim 1, wherein after the extranet server is disconnected from the intranet communication device, when the extranet server is reconnected, the extranet server re-establishes TCP connection with the intranet communication device, and matches the Mac address of the intranet communication device in the mapping relationship table of Mac addresses and logical addresses to use the historical logical addresses, so that 8-bit logical addresses are not generated again.
3. The static intranet mapping method according to claim 1, wherein the extranet server receives a request instruction for a third party communication device to access the intranet communication device, and the request instruction includes: a logical address of the accessed intranet communication equipment;
the outer network server matches in a mapping relation table of the Mac address and the logical address according to the logical address, and if the matching is successful, the outer network server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the intranet communication equipment; if the matching fails, the current external network server forwards a request instruction of the third-party communication equipment for accessing the intranet communication equipment to the next-level external network server for continuous matching until the matching is successful.
4. A static intranet mapping method is characterized by comprising the following steps:
step (b 1): the intranet communication equipment sends a connection request to an extranet server; the connection request includes: the unique identification number of the intranet communication equipment;
step (b 2): the intranet communication equipment receives a request reply sent by the extranet server; the request reply includes: a confirmation number of the unique identification number;
step (b 3): after receiving the request reply, the intranet communication equipment judges whether the confirmation number of the unique identification number is correct or not, and if the confirmation number of the unique identification number is correct, the intranet communication equipment sends the Mac address of the intranet communication equipment to the extranet server and establishes TCP connection with the extranet server;
step (b 4): the intranet communication equipment receives the unique logic address distributed by the extranet server;
the step of allocating the unique logic address for the intranet communication equipment comprises the following steps:
the external network server randomly generates a random character string, and compares the randomly generated character string with the existing logical address in the mapping relation table of the Mac address and the logical address:
if the randomly generated character string is not repeated with the existing logical address, the current randomly generated character string is taken as a unique logical address to be distributed to the intranet communication equipment;
if the randomly generated character string is repeated with the logic address, the outer network server randomly generates the character string again until the randomly generated character string is not repeated with the logic address, and distributes the non-repeated character string as a unique logic address to the inner network communication equipment;
the extranet servers are connected in a tree shape, the first-stage extranet server is connected with a plurality of second-stage extranet servers, each second-stage extranet server is connected with a plurality of third-stage extranet servers, each third-stage extranet server is connected with a plurality of fourth-stage extranet servers, and by analogy, each stage of extranet server is connected with a plurality of intranet communication devices through a switch;
if the random character string generated by the current extranet server is repeated with all the logic addresses in the mapping relation table, the random character string of the current extranet server is exhausted; the current extranet server is connected with the previous extranet server; the previous level of the external network server continues to provide random character strings for the current external network server, and the current external network server continues to provide a unique logical address for the intranet communication equipment; and by analogy, when the random character string of the previous-stage external network server is exhausted, the previous-stage external network server is connected with the previous-stage external network servers, the previous-stage external network servers provide the random character string for the previous-stage external network server, the previous-stage external network server continues to provide the random character string for the current external network server, and the current external network server continues to provide the unique logical address for the intranet communication equipment.
5. An extranet server, configured to:
receiving a connection request sent by intranet communication equipment; the connection request includes: the unique identification number of the intranet communication equipment;
after receiving the connection request, sending a request reply to the intranet communication equipment, wherein the request reply comprises: a confirmation number of the unique identification number;
receiving a Mac address of the intranet communication equipment sent by the intranet communication equipment, and establishing TCP connection between the extranet server and the intranet communication equipment;
establishing a mapping relation table of the Mac address and the logic address, and allocating a unique logic address for the intranet communication equipment;
the step of allocating the unique logic address for the intranet communication equipment comprises the following steps:
the external network server randomly generates a random character string, and compares the randomly generated character string with the existing logical address in the mapping relation table of the Mac address and the logical address:
if the randomly generated character string is not repeated with the existing logical address, the current randomly generated character string is taken as a unique logical address to be distributed to the intranet communication equipment;
if the randomly generated character string is repeated with the logic address, the outer network server randomly generates the character string again until the randomly generated character string is not repeated with the logic address, and distributes the non-repeated character string as a unique logic address to the inner network communication equipment;
the extranet servers are connected in a tree shape, the first-stage extranet server is connected with a plurality of second-stage extranet servers, each second-stage extranet server is connected with a plurality of third-stage extranet servers, each third-stage extranet server is connected with a plurality of fourth-stage extranet servers, and by analogy, each stage of extranet server is connected with a plurality of intranet communication devices through a switch;
if the random character string generated by the current extranet server is repeated with all the logic addresses in the mapping relation table, the random character string of the current extranet server is exhausted; the current extranet server is connected with the previous extranet server; the previous level of the external network server continues to provide random character strings for the current external network server, and the current external network server continues to provide a unique logical address for the intranet communication equipment; and by analogy, when the random character string of the previous-stage external network server is exhausted, the previous-stage external network server is connected with the previous-stage external network servers, the previous-stage external network servers provide the random character string for the previous-stage external network server, the previous-stage external network server continues to provide the random character string for the current external network server, and the current external network server continues to provide the unique logical address for the intranet communication equipment.
6. An intranet communication device, configured to:
sending a connection request to an extranet server; the connection request includes: the unique identification number of the intranet communication equipment;
receiving a request reply sent by an external network server; the request reply includes: a confirmation number of the unique identification number;
after receiving the request reply, judging whether the confirmation number of the unique identification number is correct, if so, sending the Mac address of the intranet communication equipment to an extranet server by the intranet communication equipment, and establishing TCP connection with the extranet server;
receiving a unique logical address distributed by an external network server;
the step of allocating the unique logic address for the intranet communication equipment comprises the following steps:
the external network server randomly generates a random character string, and compares the randomly generated character string with the existing logical address in the mapping relation table of the Mac address and the logical address:
if the randomly generated character string is not repeated with the existing logical address, the current randomly generated character string is taken as a unique logical address to be distributed to the intranet communication equipment;
if the randomly generated character string is repeated with the logic address, the outer network server randomly generates the character string again until the randomly generated character string is not repeated with the logic address, and distributes the non-repeated character string as a unique logic address to the inner network communication equipment;
the extranet servers are connected in a tree shape, the first-stage extranet server is connected with a plurality of second-stage extranet servers, each second-stage extranet server is connected with a plurality of third-stage extranet servers, each third-stage extranet server is connected with a plurality of fourth-stage extranet servers, and by analogy, each stage of extranet server is connected with a plurality of intranet communication devices through a switch;
if the random character string generated by the current extranet server is repeated with all the logic addresses in the mapping relation table, the random character string of the current extranet server is exhausted; the current extranet server is connected with the previous extranet server; the previous level of the external network server continues to provide random character strings for the current external network server, and the current external network server continues to provide a unique logical address for the intranet communication equipment; and by analogy, when the random character string of the previous-stage external network server is exhausted, the previous-stage external network server is connected with the previous-stage external network servers, the previous-stage external network servers provide the random character string for the previous-stage external network server, the previous-stage external network server continues to provide the random character string for the current external network server, and the current external network server continues to provide the unique logical address for the intranet communication equipment.
7. A static intranet mapping system, comprising: the intranet communication device according to claim 6 and the extranet server according to claim 5.
CN201810764141.9A 2018-07-12 2018-07-12 Static intranet mapping method, extranet server, intranet communication equipment and system Active CN109040334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810764141.9A CN109040334B (en) 2018-07-12 2018-07-12 Static intranet mapping method, extranet server, intranet communication equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810764141.9A CN109040334B (en) 2018-07-12 2018-07-12 Static intranet mapping method, extranet server, intranet communication equipment and system

Publications (2)

Publication Number Publication Date
CN109040334A CN109040334A (en) 2018-12-18
CN109040334B true CN109040334B (en) 2021-05-11

Family

ID=64642094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810764141.9A Active CN109040334B (en) 2018-07-12 2018-07-12 Static intranet mapping method, extranet server, intranet communication equipment and system

Country Status (1)

Country Link
CN (1) CN109040334B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782322A (en) * 2020-06-28 2020-10-16 西安雷风电子科技有限公司 Intranet and extranet message communication server and system based on cloud desktop server
CN111913890B (en) * 2020-08-13 2024-06-11 北京万协通信息技术有限公司 Random read-write method of nonvolatile memory based on security module

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6611873B1 (en) * 1998-11-24 2003-08-26 Nec Corporation Address-based service request distributing method and address converter
CN101414998A (en) * 2007-10-15 2009-04-22 华为技术有限公司 Communication method, system and equipment based on authentication mechanism conversion
CN101483602A (en) * 2009-01-23 2009-07-15 清华大学 Method for IPv4 server access by IPv6 server based on quasi-static mapping
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN103647855A (en) * 2013-12-23 2014-03-19 成都西加云杉科技有限公司 IP (Internet Protocol) address distribution method, device and system in cross-network communication
CN104077152A (en) * 2013-03-27 2014-10-01 广东威创视讯科技股份有限公司 Batch upgrading method and batch upgrading device for embedded system
CN104468207A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Terminal management method, device and system
CN105553832A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Message sending and receiving method and device
CN106453678A (en) * 2016-09-29 2017-02-22 北京东土科技股份有限公司 IP address allocation method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321128B (en) * 2008-06-27 2011-10-05 中国科学院计算技术研究所 Communication equipment, communication network system and communication method
US8700747B2 (en) * 2011-04-19 2014-04-15 Schneider Electric It Corporation System and method for automatically addressing devices in a multi-drop network
CN105162787B (en) * 2015-09-17 2018-07-20 深信服科技股份有限公司 The method and apparatus of outer net terminal access vendor equipment or interior network termination

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6611873B1 (en) * 1998-11-24 2003-08-26 Nec Corporation Address-based service request distributing method and address converter
CN101414998A (en) * 2007-10-15 2009-04-22 华为技术有限公司 Communication method, system and equipment based on authentication mechanism conversion
CN101483602A (en) * 2009-01-23 2009-07-15 清华大学 Method for IPv4 server access by IPv6 server based on quasi-static mapping
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN104077152A (en) * 2013-03-27 2014-10-01 广东威创视讯科技股份有限公司 Batch upgrading method and batch upgrading device for embedded system
CN103647855A (en) * 2013-12-23 2014-03-19 成都西加云杉科技有限公司 IP (Internet Protocol) address distribution method, device and system in cross-network communication
CN104468207A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Terminal management method, device and system
CN105553832A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Message sending and receiving method and device
CN106453678A (en) * 2016-09-29 2017-02-22 北京东土科技股份有限公司 IP address allocation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于P2P网络应用的NAT穿越方案的分析与设计》;马义涛;《中国优秀硕士学位论文全文数据库 信息科技辑》;20080630;全文 *

Also Published As

Publication number Publication date
CN109040334A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
EP2645679B1 (en) Method and apparatus for message transmission
CN1123154C (en) System, device and method for routine selection dhcp configuration agreement packets
JP4917998B2 (en) Network equipment
CN110071984A (en) A kind of network identity mapping method and system and terminal, mark gateway
EP1535449A1 (en) System and method for dynamic simultaneous connection to multiple service providers
US8606937B2 (en) Information providing method, home gateway, and home network system
US8761156B2 (en) Socket-based internet protocol for wireless networks
US20130227155A1 (en) IPv4 ADDRESSING OVER NON-IPv4 SYSTEMS
US9319235B2 (en) Authentication, authorization, and accounting based on an automatically generated username
CN109040334B (en) Static intranet mapping method, extranet server, intranet communication equipment and system
CN105245629A (en) DHCP-based host communication method and device
CN108696601A (en) Detect the hardware address conflict in computer network
CN106453690A (en) IP address allocation method and apparatus
CN113014680B (en) Broadband access method, device, equipment and storage medium
CN106953849B (en) Data message matching method and device based on IPv6 address
CN102752266A (en) Access control method and equipment thereof
CN100479457C (en) Implementation method for transferring data in virtual private network
US5889962A (en) Method and system for providing an additional identifier for sessions in a file server
KR20020036165A (en) Method for data communications on Internet using NAT and apparatus thereof
JP2004527941A (en) Multi Internet service provider system and method for implementing the same
US12058104B2 (en) Remote controller source address verification and retention for access devices
KR100846536B1 (en) Virtual Private Network Using DHCP and Method of Security on the Same
CN112714133B (en) ND attack prevention method and device suitable for DHCPv6 server
JPH11355303A (en) Computer identification system and its method
CN100563250C (en) A kind of IPV6 interface identifier deriving means and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230112

Address after: 250000 room 1823, building A2-5, Hanyu Golden Valley, No. 7000, jingshidong Road, high tech Zone, Jinan, Shandong Province

Patentee after: Shandong Data Trading Co.,Ltd.

Address before: 250014 Shandong Normal University, 88 Wenhua East Road, Lixia District, Shandong, Ji'nan

Patentee before: SHANDONG NORMAL University