CN104518937B - The method and device of the more communication between devices of virtual LAN VLAN - Google Patents

The method and device of the more communication between devices of virtual LAN VLAN Download PDF

Info

Publication number
CN104518937B
CN104518937B CN201310465748.4A CN201310465748A CN104518937B CN 104518937 B CN104518937 B CN 104518937B CN 201310465748 A CN201310465748 A CN 201310465748A CN 104518937 B CN104518937 B CN 104518937B
Authority
CN
China
Prior art keywords
vlan
client
server
address
equipment
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
CN201310465748.4A
Other languages
Chinese (zh)
Other versions
CN104518937A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201310465748.4A priority Critical patent/CN104518937B/en
Publication of CN104518937A publication Critical patent/CN104518937A/en
Application granted granted Critical
Publication of CN104518937B publication Critical patent/CN104518937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of method and devices of the more communication between devices of virtual LAN VLAN, the equipment includes VLAN server, VLAN client, the method includes: that the VLAN server is located in local area network, the local area network is connected with internet, and VLAN client is also connected with the internet;The VLAN server distributes IP address of internal network for each VLAN client and saves in VLAN client terminal start-up and after being connected thereto successfully;IP address of internal network is sent other VLAN clients by the VLAN server, is also connected with each other between each VLAN client.The present invention is to realize exchanging for the data between VPN internal unit and external equipment.

Description

The method and device of the more communication between devices of virtual LAN VLAN
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of method of the more communication between devices of virtual LAN VLAN And device.
Background technique
With the development of network technology, the communication in enterprise network between external equipment is realized, it appears become more and more important.But it is existing The normal communication inside and outside enterprise network is realized in technology, the requirement to server is high, and it is excessive to directly result in server stress.
To realize VPN(Virtual Private Network, Virtual Private Network in company) it is said for communication It is bright, a vpn server is set up in intra-company, vpn server has two pieces of network interface cards, one piece of connection Intranet, another piece of connection public affairs Net.After nonlocal employee connects internet in locality, vpn server is found by internet, then using vpn server as in It rotates into corporate intranet, to realize the normal communication of equipment room, the condition generally required includes: outside 1, vpn server has Portion's public network IP address just can guarantee that external equipment can be by internet and in-company network device communications;2, VPN is serviced Device will have the hardware of double netcard, just can guarantee and carry out isolation between Intranet and mutually turn;3, each branch outside Intranet and Communication must increase vpn server pressure by vpn server transfer between the VPN client of employee.It can thus be seen that if The normal communication for realizing the equipment room inside and outside enterprises lan, has higher requirements to server.
Therefore, those skilled in the art's one of problem in the urgent need to address is, proposes a kind of virtual LAN VLAN The method and device of more communication between devices, to realize exchanging for the data between VPN internal unit and external equipment.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of method of the more communication between devices of virtual LAN VLAN and Device, to realize exchanging for the data between VPN internal unit and external equipment.
To solve the above-mentioned problems, the invention discloses a kind of method of the more communication between devices of virtual LAN VLAN, institutes Stating equipment includes VLAN server, VLAN client, and the method includes:
The VLAN server is located in local area network, and the local area network is connected with internet, VLAN client also with it is described Internet is connected;
The VLAN server is in VLAN client terminal start-up and after being connected thereto successfully, in the distribution of each VLAN client Net IP address simultaneously saves;
IP address of internal network is sent other VLAN clients by the VLAN server, also phase between each VLAN client It connects.
Preferably, the equipment further includes the network equipment being in same local area network with the VLAN server,
When the network equipment sends data to the VLAN client, the network equipment sends data to described VLAN server, the VLAN server are forwarded the data on again to the VLAN client;
Alternatively,
When the VLAN client sends data to the network equipment, the VLAN client sends data to institute VLAN server is stated, the VLAN server is forwarded the data on again to the network equipment.
Preferably, when the VLAN client sends data to other VLAN clients, the VLAN client is direct Send data to other VLAN clients;Alternatively, when other VLAN clients send data to the VLAN client, Other described VLAN clients directly send data to VLAN client.
Preferably, the VLAN client have client identification, the VLAN server VLAN client terminal start-up simultaneously After being connected thereto successfully, IP address of internal network is distributed for each VLAN client and saves step are as follows:
The VLAN server is corresponding for each client identification in VLAN client terminal start-up and after being connected thereto successfully The distribution of VLAN client IP address of internal network and save;
The VLAN server is corresponding for each client identification in VLAN client terminal start-up and after being connected thereto successfully VLAN client distribution IP address of internal network and the step of saving include:
The VLAN server is attached with the VLAN client by RIP communication mode;After successful connection, institute It states and establishes the channel RIP between VLAN server and the VLAN client;
The VLAN server uses dynamic host configuration protocol DHCP by the channel RIP for each VLAN client point With IP address of internal network;The VLAN client is for saving the IP address of internal network;
The VLAN server saves the client identification and IP address of internal network.
Preferably, the method further relates to one or more transit node equipment SE, and the RIP communication mode is described VLAN client is connect with the VLAN server using NAT communication mode, unsuccessful according to the connection of NAT communication mode, then It is separately connected transit node equipment SE;
When the VLAN client sends data packet to VLAN server, the VLAN client takes according to the VLAN The information of one or more transit node equipment SE of business device successful connection sends data packets to trochanter in wherein at least one Point device SE, the transit node equipment SE are used to the data packet being forwarded to the VLAN server,
Alternatively,
When the VLAN server sends data packet to VLAN client, the VLAN server is according to the VLAN visitor The information of one or more transit node equipment SE of family end successful connection sends data packets to trochanter in wherein at least one Point device SE, the transit node equipment SE are for being forwarded to the VLAN client for the data packet.
Preferably, it is also connected using RIP communication mode between the VLAN client.
Preferably, the step of IP address of internal network is sent other VLAN clients by the VLAN server are as follows:
The client identification and IP address of internal network are sent other VLAN clients by the VLAN server.
The embodiment of the invention also discloses a kind of device of the more communication between devices of virtual LAN VLAN, the equipment includes VLAN server, VLAN client, the device include:
Positioned at the link block of VLAN server, it to be used for the local when the VLAN server is located in local area network Net is connected with internet, and VLAN client is also connected with the internet;
Positioned at the IP address distribution module of VLAN server, in VLAN client terminal start-up and after being connected thereto successfully, IP address of internal network is distributed for each VLAN client and is saved;
It is each for sending other VLAN clients for IP address of internal network positioned at the sending module of VLAN server It is also connected with each other between VLAN client.
Preferably, the equipment further includes the network equipment being in same local area network with the VLAN server,
When the network equipment sends data to the VLAN client, the network equipment sends data to described VLAN server, the VLAN server are forwarded the data on again to the VLAN client;
Alternatively,
When the VLAN client sends data to the network equipment, the VLAN client sends data to institute VLAN server is stated, the VLAN server is forwarded the data on again to the network equipment.
Preferably, when the VLAN client sends data to other VLAN clients, the VLAN client is direct Send data to other VLAN clients;Alternatively, when other VLAN clients send data to the VLAN client, Other described VLAN clients directly send data to VLAN client.
Compared with prior art, the present invention includes the following advantages:
VLAN server and VLAN client are connected with each other in the embodiment of the present invention, are realized in VPN internal unit and outside The exchange of data between equipment, also, the forwarding by then passing through third-party equipment progress data packet, can effectively keep away Exempt from the attack from network-external, hides and protect the information of network internal.In addition, also mutually being connected between VLAN client It connects, if needing exchange data between VLAN client, can directly carry out the exchange of data therebetween, it is high-efficient, it is mentioned to user For better experience sense, the service quality of service provider network is improved.
VLAN server is communicated with VLAN client using RIP communication mode in embodiments of the present invention, works as VLAN When server cannot directly be connect by NAT communication mode with VLAN client, same transit node equipment can connect, when need When mutually transferring data packet, can first transmit packets to transit node equipment, then by transit node equipment by data packet into Row forwarding, in this way by third party device realization equipment between communication, network implementations communication between devices mode diversification, and High reliablity.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the embodiment of the method 1 of more communication between devices of the invention;
Fig. 2 is a kind of step flow chart of the embodiment of the method 2 of more communication between devices of the invention;
Fig. 3 is a kind of schematic diagram of more equipment room connection relationships of the invention;
Fig. 4 is that a kind of equipment room of the invention carries out the direct-connected schematic diagram of P2P;
Fig. 5 is a kind of schematic diagram of the connection relationship of more equipment of the invention;
Fig. 6 is a kind of structural block diagram of the Installation practice of more communication between devices of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
One of the core concepts of the embodiments of the present invention is that VLAN server is mutually attached with VLAN client, with It realizes the exchange of the data between equipment, also, carries out the forwarding of data packet by then passing through third-party equipment, it can be effective Ground avoids the attack from network-external, hides and protect the information of network internal.In addition, between VLAN client also mutually into Row connection can directly carry out the exchange of data if needing exchange data between VLAN client therebetween, high-efficient, to use Family provides better experience sense, improves the service quality of service provider network.
Referring to Fig.1, a kind of step flow chart of the embodiment of the method 1 of more communication between devices of the invention is shown, it is described Equipment may include virtual LAN VLAN server, VLAN client, and the method may include steps of:
Step 101, the VLAN server is located in local area network, and the local area network is connected with internet, VLAN client Also it is connected with the internet;
Step 102, the VLAN server is each VLAN client in VLAN client terminal start-up and after being connected thereto successfully End distribution IP address of internal network simultaneously saves;
Step 103, IP address of internal network is sent other VLAN clients by the VLAN server, other VLAN clients Between be also connected with each other.
VLAN(Virtual Local Area Network, virtual LAN) be it is a kind of by lan device logically It is divided into network segment one by one, to realize the emerging data switching technology of virtual workgroup.
VLAN server in a local network is connected with the local area network, and the local area network is then connected with external internet. There may also be there is one or more VLAN clients from anywhere in except the local area network, and also with the internet phase Even.
After VLAN client terminal start-up, it is connect at once with VLAN server.After successful connection, VLAN server is each VLAN client distributes IP address of internal network, and saves the corresponding IP address of internal network of each VLAN client.VLAN server will be interior Net IP address is sent to other VLAN clients.
It should be noted that being also connected with each other between other VLAN clients, in this way, other VLAN clients can be direct It is communicated, without saving the network bandwidth of the local area network by VLAN server.
Referring to Fig. 2, a kind of step flow chart of the embodiment of the method 2 of more communication between devices of the invention is shown, it is described Equipment may include virtual LAN VLAN server, VLAN client, and the VLAN client can have client identification, The method may include steps of:
Step 201, the VLAN server is located in local area network, and the local area network is connected with internet, VLAN client Also it is connected with the internet;
Step 202, the VLAN server is connect with the VLAN client using RIP communication mode;After successful connection, The channel RIP is established between the VLAN server and the VLAN client;
If VLAN server and the VLAN client use RIP communication mode, one or more transit nodes are further related to Equipment SE.The RIP communication mode can be connected for the VLAN client and the VLAN server using NAT communication mode It connects, it is unsuccessful according to the connection of NAT communication mode, then it is separately connected transit node equipment SE;
When the VLAN client sends data packet to VLAN server, the VLAN client takes according to the VLAN The information of one or more transit node equipment SE of business device successful connection sends data packets to trochanter in wherein at least one Point device SE, the transit node equipment SE are used to the data packet being forwarded to the VLAN server,
Alternatively,
When the VLAN server sends data packet to VLAN client, the VLAN server is according to the VLAN visitor The information of one or more transit node equipment SE of family end successful connection sends data packets to trochanter in wherein at least one Point device SE, the transit node equipment SE are for being forwarded to the VLAN client for the data packet.
Specifically, VLAN client first attempts to directly connect with VLAN server, and if connection failure, VLAN client After the information for receiving one or more transit node equipment SE of server PS transmission, and respectively with transit node equipment SE's The corresponding transit node equipment SE connection of information, if successful connection, server PS will receive VLAN client and send its connection The information of successful transit node equipment SE is sent to VLAN server, the VLAN server letter with transit node equipment SE respectively Corresponding node device SE connection is ceased, and records the information of the transit node equipment SE of its successful connection.When VLAN client with When VLAN server sends data packets to each other, other side can be transmitted to respectively by the transit node equipment SE of both successful connections.Cause This can also be transmitted to other side by transit node equipment SE when VLAN client can not be directly connected to VLAN server, The diversification of communication between devices mode.
In a kind of preferable example of the invention, if some transit node equipment SE and VLAN client and VLAN are serviced Device has all reached P2P connection, then VLAN client is in internal routing table by trochanter in the routing direction for reaching VLAN server Point device SE;The routing for reaching VLAN client is directed toward transit node equipment in internal routing table by VLAN server in turn SE.Referring to a kind of schematic diagram of more equipment room connection relationships of the invention shown in Fig. 3, wherein equipment room can be logical for P2P Letter.When VLAN client needs to send data to VLAN server, final purpose address is filled in as VLAN service in data packet Device, and deliver a packet to transit node equipment SE;VLAN server is indicated for target when transit node equipment SE is received When the data packet of location, the data packet is transmitted to VLAN server automatically, conversely, when VLAN server needs to give VLAN client When sending data, filling in final purpose address in data packet is VLAN client, and delivers a packet to transit node equipment SE;When transit node equipment SE receives the data packet for indicating VLAN client as destination address, the data packet is forwarded automatically Give VLAN client.
Both in another preferable example of the invention, if VLAN client and the successful connection of VLAN server, Between directly can also mutually send out data, without passing through transit node equipment SE, specifically, what equipment room was directly connected to is to adopt With NAT communication mode.All users within the organization can be made to pass through by using NAT communication mode limited several (or 1) legitimate ip address accesses Internet, to save the legitimate ip address on Internet;On the other hand, pass through Address conversion, can hide the real IP address of interior online host, to improve the safety of network.Specifically it is referred to Fig. 4 Shown in a kind of equipment room of the invention carry out the schematic diagram of P2P connection, the VLAN client can have the first Intranet UDP Port and the first outer net udp port, the VLAN server can have the second Intranet udp port and the second outer net udp port, I.e. the step of VLAN client connection VLAN server, may include:
Step S1, the VLAN client are sent described in the first Intranet udp port and the first outer net udp port to institute State server PS;The server PS is used to for the first Intranet udp port and the first outer net udp port being sent to described VLAN server;The VLAN server is used for when receiving the first Intranet udp port and the first outer net udp port, The first Intranet udp port and the first outer net udp port are recorded, and sends the second Intranet udp port and the second outer net Udp port is to the server PS;
Step S2, the VLAN client receive the second Intranet udp port and second that the server PS is sent Outer net udp port simultaneously records;
Step S3, the VLAN client respectively from the first Intranet udp port and the first outer net udp port, Confirmation message is sent to the second Intranet udp port and the second outer net udp port;
Step S4, the VLAN client receive the confirmation success that the VLAN server is sent for the confirmation message Information.
In the concrete realization, if receiving confirmation message, then it represents that direct-connected success.Node device further includes TCP port, If using UDP(User Datagram Protocol, User Datagram Protocol) mode can not successful connection, then pass through TCP Port uses TCP(Transmission Control Protocol, transmission control protocol) mode connects.
Step 203, the VLAN server uses dynamic host configuration protocol DHCP by the channel RIP for each VLAN Client distributes IP address of internal network;The VLAN client is for saving the IP address of internal network;
Step 204, the VLAN server saves the client identification and IP address of internal network;
Step 205, the client identification and IP address of internal network are sent other VLAN clients by the VLAN server It holds, is also connected with each other between other VLAN clients.
After each VLAN client terminal start-up, be also directly connected between VLAN client terminal start-up, connection type with VLAN server is identical as the connection type of VLAN client, and therefore, not repeat them here.
After having VLAN client successful connection, VLAN server passes through internal DHCP(Dynamic host Configuration protocol, dynamic host configuration protocol) server or itself configuration IP address distributor to outer Portion's VLAN client distributes IP address of internal network, and VLAN server passes through the connection channel RIP again and is assigned to each VLAN client, will Client identification (i.e. ID number), the IP address of internal network of VLAN client are saved in VLAN server, and in local area network announcement Net IP address is directed toward on the MAC of VLAN server network interface card.
It should be noted that between VLAN client can also using RIP communication mode connect, due to VLAN client Identical using RIP communication mode connection procedure with VLAN server, therefore, not repeat them here.
In one preferred embodiment of the invention, the equipment can also include being in same with the VLAN server The network equipment in local area network, when the network equipment sends data to the VLAN client, the network equipment will be counted According to the VLAN server is sent to, the VLAN server is forwarded the data on again to the VLAN client;
A kind of schematic diagram of the connection relationship of more equipment of the invention referring to Figure 5 can specifically include VLAN clothes Business device, VLAN1 client and VLAN2 client.When the network that VLAN1 client needs to send data in corporate lan is set It is standby, such as can be the host computer or other equipment in corporate lan, VLAN1 first transmits data to VLAN service Device is forwarded in the network equipment being forwarded in the local area network again by VLAN server.
When the VLAN client sends data to the network equipment, the VLAN client sends data to institute VLAN server is stated, the VLAN server is forwarded the data on again to the network equipment.
Referring again to Fig. 5, when the network equipment of company needs to transmit data to external VLAN1 client, first will Data are sent to VLAN server, and the VLAN server data are sent to VLAN1 client by the channel RIP.
In another preferred embodiment of the invention, when the VLAN client sends data to other VLAN clients When, the VLAN client directly sends data to other VLAN clients;Alternatively, when other VLAN clients are to described When VLAN client sends data, the others VLAN client directly sends data to VLAN client.
Referring again to Fig. 5, when VLAN1 client needs to send data to VLAN2 client, the channel RIP can be passed through Data are directly sent to VLAN2 client.So there is no need to use the Internet resources in intra-company's local area network, and due to VLAN1 client is directly connected to VLAN2 client, and communication efficiency is high.
In the concrete realization, the communication of local area network internal network devices Yu outside VLAN client, VLAN usually to be realized Server needs the hardware of double netcard, and the equipment that can then do not need double netcard using the embodiment of the present invention, it is only necessary to pass through The equipment of Single NIC.Specifically, after the starting of VLAN server, the network interface card of VLAN server by DHCP or can pass through Directly specified mode obtains IP address of internal network, and by the IP address of internal network and server PS, external VLAN client into Row communication.After having the connection of VLAN client to come in, VLAN server passes through internal DHCP server or the IP of itself configuration Address distributor is registered in VLAN to the IP address of internal network used in external VLAN client distribution local area network, the IP address of internal network In server, and local area network is announced the interior IP address and is directed toward on the MAC of VLAN server network interface card.
When the IP address of internal network that internal network devices are represented to VLAN client sends data packet, can be published to first The network interface card of VLAN server after VLAN server receives packet, judges to receive address for the IP address of VLAN client, then passes through The channel RIP established with VLAN client is sent to VLAN server.An IP address of internal network is thus only needed to realize equipment Between communication, it can use Single NIC equipment, it is low for equipment requirements.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the application is not limited by the described action sequence, because according to this Shen Please, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, specification Described in embodiment belong to preferred embodiment, necessary to related movement not necessarily the application.
Referring to a kind of structure of the Installation practice of the more communication between devices of virtual LAN VLAN of the invention shown in fig. 6 Block diagram, the equipment may include VLAN server, and VLAN client, the device may include following module:
Positioned at the link block 301 of VLAN server, it to be used for the office when the VLAN server is located in local area network Domain net is connected with internet, and VLAN client is also connected with the internet;
Positioned at the IP address distribution module 302 of VLAN server, in VLAN client terminal start-up and being connected thereto success Afterwards, IP address of internal network is distributed for each VLAN client and save;
In one preferred embodiment of the invention, the VLAN client can have client identification, described to be located at The IP address distribution module 302 of VLAN server may include:
Positioned at the IP address distribution sub module of VLAN server, in VLAN client terminal start-up and being connected thereto success Afterwards, IP address of internal network is distributed for the corresponding VLAN client of each client identification and save;
The IP address distribution sub module positioned at VLAN server may include:
Positioned at the RIP Path Setup unit of VLAN server, for the VLAN server and the VLAN client into Row is directly connected to;After successful connection, the channel RIP is established between the VLAN server and the VLAN client;
The VLAN server has the first Intranet udp port and the first outer net udp port, and the VLAN client has Second Intranet udp port and the second outer net udp port, the RIP Path Setup unit positioned at VLAN server include:
The VLAN server is sent described in the first Intranet udp port and the first outer net udp port to the service Device PS;The server PS is used to the first Intranet udp port and the first outer net udp port being sent to the VLAN client End;The VLAN client is used for when receiving the first Intranet udp port and the first outer net udp port, described in record First Intranet udp port and the first outer net udp port, and send the second Intranet udp port and the second outer net udp port extremely The server PS;
The VLAN server receives the second Intranet udp port and the second outer net UDP that the server PS is sent Port simultaneously records;
The VLAN server from the first Intranet udp port and the first outer net udp port, sends confirmation respectively Information is to the second Intranet udp port and the second outer net udp port;
The VLAN server receives the VLAN client and is directed to the confirmation successful information that the confirmation message is sent.
Positioned at the IP address allocation unit of VLAN server, dynamic host configuration protocol is used for the VLAN server DHCP is that each VLAN client distributes IP address of internal network by the channel RIP;The VLAN client is for saving in described Net IP address;
Positioned at the preservation submodule of VLAN server, the VLAN server is with saving the client identification and Intranet IP Location.
Positioned at the sending module 303 of VLAN server, for sending the mark of VLAN client and IP address of internal network to Other VLAN clients are also connected with each other between each VLAN client.
Wherein, it is mutually directly connected between each VLAN client.
In one preferred embodiment of the invention, the sending module 303 positioned at VLAN server may include:
Positioned at the sending submodule of VLAN server, for sending other for the client identification and IP address of internal network VLAN client.
In one preferred embodiment of the invention, the equipment can also include being in same with the VLAN server The network equipment in local area network,
When the network equipment sends data to the VLAN client, the network equipment can be sent data to The VLAN server, the VLAN server are forwarded the data on again to the VLAN client;
Alternatively,
When the VLAN client sends data to the network equipment, the VLAN client can be sent data To the VLAN server, the VLAN server is forwarded the data on again to the network equipment.
In one preferred embodiment of the invention, when the VLAN client sends data to other VLAN clients When, the VLAN client directly sends data to other VLAN clients;Alternatively, when other VLAN clients are to described When VLAN client sends data, other described VLAN clients directly send data to VLAN client.
In one preferred embodiment of the invention, described device can also relate to one or more transit node equipment SE, the RIP communication mode can be connect with the VLAN server using NAT communication mode for the VLAN client, if It is unsuccessful using the connection of NAT communication mode, then it is separately connected transit node equipment SE;
When the VLAN client sends data packet to VLAN server, the VLAN client takes according to the VLAN The information of one or more transit node equipment SE of business device successful connection sends data packets to trochanter in wherein at least one Point device SE, the transit node equipment SE are used to the data packet being forwarded to the VLAN server,
Alternatively,
When the VLAN server sends data packet to VLAN client, the VLAN server is according to the VLAN visitor The information of one or more transit node equipment SE of family end successful connection sends data packets to trochanter in wherein at least one Point device SE, the transit node equipment SE are for being forwarded to the VLAN client for the data packet.
In one preferred embodiment of the invention, can also be connected using RIP communication mode between the VLAN client It connects.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, embodiments herein can provide as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Above to a kind of method and device of the more communication between devices of virtual LAN VLAN provided by the present invention, carry out It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments Illustrate to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to According to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification It should not be construed as limiting the invention.

Claims (8)

1. a kind of method of the more communication between devices of virtual LAN VLAN, which is characterized in that the equipment includes VLAN server, VLAN client, the VLAN client have client identification, and the method includes:
The VLAN server is located in local area network, and the local area network is connected with internet, VLAN client also with the interconnection Net is connected;
The VLAN server is attached with the VLAN client by RIP communication mode;It is described after successful connection The channel RIP is established between VLAN server and the VLAN client;
The VLAN server uses dynamic host configuration protocol DHCP by the channel RIP in the distribution of each VLAN client Net IP address;The VLAN client is for saving the IP address of internal network;
The VLAN server saves the client identification and IP address of internal network;
If the VLAN server and the VLAN client use RIP communication mode, the method further relates to one or more Transit node equipment SE, the RIP communication mode are that the VLAN client and the VLAN server use NAT communication mode Connection, it is unsuccessful according to the connection of NAT communication mode, then it is separately connected transit node equipment SE;
When the VLAN client sends data packet to VLAN server, the VLAN client is according to the VLAN server The information of one or more transit node equipment SE of successful connection sends data packets to wherein at least one transit node and sets Standby SE, the transit node equipment SE are used to the data packet being forwarded to the VLAN server,
Alternatively,
When the VLAN server sends data packet to VLAN client, the VLAN server is according to the VLAN client The information of one or more transit node equipment SE of successful connection sends data packets to wherein at least one transit node and sets Standby SE, the transit node equipment SE are used to the data packet being forwarded to the VLAN client;
IP address of internal network is sent other VLAN clients by the VLAN server, also mutually interconnects between each VLAN client It connects.
2. the method according to claim 1, wherein the equipment further includes being in same with the VLAN server The network equipment in one local area network,
When the network equipment sends data to the VLAN client, the network equipment sends data to the VLAN Server, the VLAN server are forwarded the data on again to the VLAN client;
Alternatively,
When the VLAN client sends data to the network equipment, the VLAN client sends data to described VLAN server, the VLAN server are forwarded the data on again to the network equipment.
3. the method according to claim 1, wherein when the VLAN client is sent to other VLAN clients When data, the VLAN client directly sends data to other VLAN clients;Alternatively, when other VLAN clients to When the VLAN client sends data, other described VLAN clients directly send data to VLAN client.
4. the method according to claim 1, wherein also using RIP communication mode between the VLAN client Connection.
5. the method according to claim 1, wherein the VLAN server sends other for IP address of internal network The step of VLAN client are as follows:
The client identification and IP address of internal network are sent other VLAN clients by the VLAN server.
6. a kind of device of the more communication between devices of virtual LAN VLAN, which is characterized in that the equipment includes VLAN server, VLAN client, the VLAN client have client identification, and the device includes:
Positioned at the link block of VLAN server, for when the VLAN server is located in local area network, the local area network and Internet is connected, and VLAN client is also connected with the internet;
Positioned at the IP address distribution module of VLAN server, for being each in VLAN client terminal start-up and after being connected thereto successfully A VLAN client is distributed IP address of internal network and is saved;
Positioned at the sending module of VLAN server, for sending other VLAN clients, each VLAN visitor for IP address of internal network Family is also connected with each other between end;
Wherein, the IP address distribution module positioned at VLAN server includes:
Positioned at the IP address distribution sub module of VLAN server, in VLAN client terminal start-up and after being connected thereto successfully, needle VLAN client corresponding to each client identification is distributed IP address of internal network and is saved;
Wherein, the IP address distribution sub module positioned at VLAN server includes:
Positioned at the preservation submodule of VLAN server, the VLAN server saves the client identification and IP address of internal network;
Positioned at the RIP Path Setup unit of VLAN server, carried out for the VLAN server and the VLAN client straight It connects in succession;After successful connection, the channel RIP is established between the VLAN server and the VLAN client;
Positioned at the IP address allocation unit of VLAN server, dynamic host configuration protocol DHCP is used for the VLAN server It is that each VLAN client distributes IP address of internal network by the channel RIP;The VLAN client is for saving the Intranet IP Address;
If VLAN server and the VLAN client use RIP communication mode, the RIP communication mode is the VLAN client End is connect with the VLAN server using NAT communication mode, unsuccessful according to the connection of NAT communication mode, then is separately connected Transit node equipment SE;
When the VLAN client sends data packet to VLAN server, the VLAN client is according to the VLAN server The information of one or more transit node equipment SE of successful connection sends data packets to wherein at least one transit node and sets Standby SE, the transit node equipment SE are used to the data packet being forwarded to the VLAN server,
Alternatively,
When the VLAN server sends data packet to VLAN client, the VLAN server is according to the VLAN client The information of one or more transit node equipment SE of successful connection sends data packets to wherein at least one transit node and sets Standby SE, the transit node equipment SE are used to the data packet being forwarded to the VLAN client.
7. device according to claim 6, which is characterized in that the equipment further includes being in same with the VLAN server The network equipment in one local area network,
When the network equipment sends data to the VLAN client, the network equipment sends data to the VLAN Server, the VLAN server are forwarded the data on again to the VLAN client;
Alternatively,
When the VLAN client sends data to the network equipment, the VLAN client sends data to described VLAN server, the VLAN server are forwarded the data on again to the network equipment.
8. device according to claim 7, which is characterized in that when the VLAN client is sent to other VLAN clients When data, the VLAN client directly sends data to other VLAN clients;Alternatively, when other VLAN clients to When the VLAN client sends data, other described VLAN clients directly send data to VLAN client.
CN201310465748.4A 2013-09-30 2013-09-30 The method and device of the more communication between devices of virtual LAN VLAN Active CN104518937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310465748.4A CN104518937B (en) 2013-09-30 2013-09-30 The method and device of the more communication between devices of virtual LAN VLAN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310465748.4A CN104518937B (en) 2013-09-30 2013-09-30 The method and device of the more communication between devices of virtual LAN VLAN

Publications (2)

Publication Number Publication Date
CN104518937A CN104518937A (en) 2015-04-15
CN104518937B true CN104518937B (en) 2019-02-05

Family

ID=52793698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310465748.4A Active CN104518937B (en) 2013-09-30 2013-09-30 The method and device of the more communication between devices of virtual LAN VLAN

Country Status (1)

Country Link
CN (1) CN104518937B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787877B (en) * 2017-11-10 2020-12-25 智邦科技股份有限公司 Box type switch, network interface card and management method for packet transfer

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764752A (en) * 2009-12-25 2010-06-30 杭州华三通信技术有限公司 Method and system for managing remote concentrated image

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764752A (en) * 2009-12-25 2010-06-30 杭州华三通信技术有限公司 Method and system for managing remote concentrated image

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
利用ADSL组建基于VLAN远程办公网络的组网方案研究;张永;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20061231;1-46
基于VLAN的局域网和基于VPN的广域网的互连系统;周晓林;《计算机系统应用》;20061231;71-73

Also Published As

Publication number Publication date
CN104518937A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
CN110301126B (en) Conference server
CN107810627B (en) Method and apparatus for establishing a media session
EP3404878B1 (en) Virtual network apparatus, and related method
CN103580980B (en) The method and device thereof that virtual network finds and automatically configures automatically
CN106878253B (en) MAC (L2) layer authentication, security and policy control
CN114402574A (en) Methods, systems, and computer readable media for providing multi-tenant software defined wide area network (SD-WAN) nodes
JP2021530912A (en) Network slice control method and device, computer readable storage medium
EP2458782A1 (en) Method for multiplexing hot backup ports and network system thereof
US20120297087A1 (en) Method And Apparatus For Message Distribution In A Device Management System
CN106559292A (en) A kind of broad band access method and device
US10523464B2 (en) Multi-homed access
EP2439903B1 (en) Method for providing information, home gateway and home network system
CN100514929C (en) Method and device for message transfer of virtual private local area network
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
CN103716213A (en) Method for operation in fixed access network and method for operation in user equipment
CN102098278B (en) Subscriber access method and system as well as access server and device
EP3420687A1 (en) Addressing for customer premises lan expansion
CN104782105B (en) For restoring method, data routing means and the medium of the routing iinformation lost
CN103067411A (en) Method and device for preventing DoS (denial of service) attack in DS-Lite (dual stack-Lite) networking
CN102447703B (en) A kind of heat backup method and system, CGN equipment
CN104065688B (en) A kind of method and device for calling underlying services
CN104168302B (en) Equipment manipulation implementation method, system and proxy gateway
CN103141072B (en) IP address acquiring method and network access equipment
CN104518937B (en) The method and device of the more communication between devices of virtual LAN VLAN
CN101309154B (en) Datagram sending method, sending apparatus and transmission system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant