CN110266589A - A kind of data communications method, device, electronic equipment and storage medium - Google Patents

A kind of data communications method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110266589A
CN110266589A CN201910550778.2A CN201910550778A CN110266589A CN 110266589 A CN110266589 A CN 110266589A CN 201910550778 A CN201910550778 A CN 201910550778A CN 110266589 A CN110266589 A CN 110266589A
Authority
CN
China
Prior art keywords
virtual machine
virtual
routing table
router
virtual router
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.)
Pending
Application number
CN201910550778.2A
Other languages
Chinese (zh)
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910550778.2A priority Critical patent/CN110266589A/en
Publication of CN110266589A publication Critical patent/CN110266589A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • 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/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

This application discloses a kind of data communications methods, the virtual router created using virtualization technology has been used to manage each virtual machine, compared to it is simple using entity router come by the way of managing each virtual machine, the virtual router created also with virtualization technology preferably can carry out information exchange with the virtual machine managed and other virtual routers, it can avoid the problem that the entity router as caused by agreement disunity between virtual machine and entity router can not help for the ARP request for answering virtual machine initiation to the full extent, it is the compromise of the influence performance uniformly made of reaching an agreement without virtual machine or entity router.Meanwhile under more cluster scenes, the virtual router of each cluster can also easily carry out information exchange.The application further simultaneously discloses a kind of data communication equipment, electronic equipment and computer readable storage medium, has above-mentioned beneficial effect.

Description

A kind of data communications method, device, electronic equipment and storage medium
Technical field
This application involves field of communication technology, in particular to a kind of data communications method, device, electronic equipment and computer Readable storage medium storing program for executing.
Background technique
In a communication network, an equipment is wanted to be communicated with another equipment, often uses ARP (Address Resolution Protocol, address resolution protocol) each equipment being broadcast in network is requested, it is asked to receive this The target device asked returns to itself mailing address to the equipment for initiating request, to initiate the equipment of request according to this communicatedly Location is directly communicated with target device.
More virtual machines can be created that under the support of hardware resource using virtualization technology, the appearance of virtual machine also makes The performance for obtaining entity device is fully utilized, and the virtualization communication network obtained based on virtual machine creating thus occurs. With being continuously increased for the market demand, communication network is virtualized progressively towards extensive, more cluster mixing development, such as based on The virtualization communication network that VXLAN technology creates just often has biggish scale, if still using broadcast between virtual machine The mode of ARP request obtains the mode of target virtual machine mailing address, will not only waste more bandwidth, also can often generate Network blockage caused by spreading unchecked because of ARP request and Caton phenomenon cause great shadow to the efficient stable operation of virtualization network It rings.
Therefore, how to overcome above-mentioned technological deficiency, be those skilled in the art urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of data communications method, device, electronic equipment and computer readable storage medium, Router applied to the support EVPN being created that using virtualization technology, it is desirable to provide a kind of to be answered by virtual router in generation The mode of ARP request avoids for ARP being broadcast to adverse effect caused by all virtual machines.
To achieve the above object, the application provides a kind of data communications method, is applied to virtual router, the virtual road It is the router for the support EVPN being created that using virtualization technology by device, this method comprises:
Receive the ARP request that the first virtual machine is sent;
The mailing address of the second virtual machine corresponding with the ARP request is determined according to routing table;Wherein, the routing table Middle record has the corresponding relationship between each virtual machine and each mailing address under affiliated virtual router management;
The mailing address is back to first virtual machine, so that first virtual machine is according to the mailing address It is communicated with second virtual machine.
Optionally, the mailing address of the second virtual machine corresponding with the ARP request is determined according to routing table, comprising:
It is extracted from the ARP request and obtains the attribute information of second virtual machine;
The destination virtual router for managing second virtual machine is determined according to the attribute information;
When the destination virtual router is itself, second virtual machine is determined according to the routing table for being recorded in itself Mailing address;
When the destination virtual router is non-self other virtual routers, built with the destination virtual router Vertical peer relationship obtains the destination virtual road by the peer relationship if being successfully established the peer relationship By the routing table recorded in device, and the routing table by getting determines the mailing address of second virtual machine.
Optionally, the data communications method further include:
After success establishes the peer relationship with a non-self virtual router, records the peer-to-peer and close System, and corresponding routing table is stored in the data space of itself.
Optionally, the data communications method further include:
Determine the operating status of itself;
When the operating status of itself, which is unable to complete ARP request generation, to be answered, there is the peer relationship to establishing with itself The virtual router of opposite end sends business trustship request;
Trustship virtual router is determined according to the response message received;
Itself current routing table is sent to the trustship virtual router, and by the ARP of each virtual machine of self-management Request sends address and is revised as the hosts virtual machine.
Optionally, the data communications method further include:
The operating status of the virtual router of opposite end is determined according to established peer relationship;
Execute operation corresponding with the operating status.
Optionally, operation corresponding with the operating status is executed, comprising:
When the virtual router for determining opposite end, which is currently at, goes offline state, is sent to the SDN controller on upper layer and be in institute The virtual router for stating the state of going offline is currently at the notification information for the state of going offline.
Optionally, the data communications method further include:
According to the routing table of preset routing table update Policy Updates itself;Wherein, the routing table update rule includes The newly-increased virtual machine by self-management, the former virtual machine by self-management go offline, by the active and standby virtual machine of same business of self-management Switching, receive routing table update instruction in any one.
Optionally, after the routing table according to preset routing table update Policy Updates itself, further includes:
Traversal generates new routing table according to the parameter that traversal obtains currently by each virtual machine of self-management;
The new routing table is back to the SDN controller on upper layer.
To achieve the above object, present invention also provides a kind of data communication equipments, are applied to virtual router, the void Quasi- router is the router of the support EVPN based on virtualization technology creation, which includes:
ARP request receiving unit, the ARP request sent for receiving the first virtual machine;
Destinations traffic address determination unit, for determining the second virtual machine corresponding with the ARP request according to routing table Mailing address;Wherein, record has each virtual machine and each communication under affiliated virtual router management in the routing table Corresponding relationship between address;
Opposite end communication unit, for the mailing address to be back to first virtual machine, so that described first is virtual Machine is communicated according to the mailing address with second virtual machine.
Optionally, the destinations traffic address determination unit includes:
Attribute information obtains subelement, obtains the attribute letter of second virtual machine for extracting from the ARP request Breath;
Destination virtual router determines subelement, manages second virtual machine for determining according to the attribute information Destination virtual router;
Mailing address first determine subelement, for when the destination virtual router be itself when, according to be recorded in from The routing table of body determines the mailing address of second virtual machine;
Mailing address second determines subelement, for being non-self other virtual flow-lines when the destination virtual router When device, peer relationship is established with the destination virtual router, if being successfully established the peer relationship, by described right The routing table recorded in destination virtual router described in equal bodies Relation acquisition, and the routing table by getting determines described second The mailing address of virtual machine.
Optionally, the data communication equipment further include:
Peer relationship and opposite end routing table storage unit, for being established when success and a non-self virtual router After the peer relationship, the peer relationship is recorded, and corresponding routing table is stored in the data space of itself In.
Optionally, the data communication equipment further include:
Self-operating status determining unit, for determining itself operating status;
Business trustship request transmitting unit, for the operating status when itself be unable to complete ARP request generation answer when, to from Body, which is established, has the virtual router of the opposite end of the peer relationship to send business trustship request;
Trustship virtual router determination unit, for determining trustship virtual router according to the response message received;
Trustship operation execution unit, for sending itself current routing table to the trustship virtual router, and will be certainly The ARP request of each virtual machine of barrel reason sends address and is revised as the hosts virtual machine.
Optionally, the data communication equipment further include:
Opposite end virtual router operating status determination unit, for determining the void of opposite end according to established peer relationship The operating status of quasi- router;
Operation execution unit, for executing operation corresponding with the operating status.
Optionally, the operation execution unit includes:
The reply operation that goes offline executes subelement, for when the virtual router for determining opposite end is currently at and goes offline state, The notification information that the virtual router in the state that goes offline is currently at the state of going offline is sent to the SDN controller on upper layer.
Optionally, the data communication equipment further include:
Routing table update unit, for the routing table according to preset routing table update Policy Updates itself;Wherein, described Routing table update rule includes that the newly-increased virtual machine by self-management, the former virtual machine by self-management go offline, by self-management The active and standby virtual machine of same business switching, receive routing table update instruction in any one.
Optionally, the data communication equipment further include:
New routing table generation unit, for after the routing table according to preset routing table update Policy Updates itself, Traversal generates new routing table according to the parameter that traversal obtains currently by each virtual machine of self-management;
Upper layer feedback unit, for the new routing table to be back to the SDN controller on upper layer.
To achieve the above object, present invention also provides a kind of electronic equipment, virtual router is based on the electronic equipment Hardware resource create to obtain by virtualization technology, and operate in the electronic equipment, which includes:
Memory, for storing computer program;
Processor realizes the data communications method as described in above content when for executing the computer program.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium It is stored with computer program on storage media, the number as described in above content is realized when the computer program is executed by processor According to communication means.
It can be seen that the application according to data communications method provided by the present application and used and created using virtualization technology To virtual router manage each virtual machine, compared to it is simple using entity router come by the way of managing each virtual machine, together The virtual router that sample is created using virtualization technology can preferably with the virtual machine and other virtual flow-lines that are managed Device carries out information exchange, can avoid the entity road as caused by agreement disunity between virtual machine and entity router to the full extent The problem of can not being helped by device for the ARP request for answering virtual machine initiation, is system of reaching an agreement without virtual machine or entity router The compromise of the one influence performance made.Meanwhile under more cluster scenes, the virtual router of each cluster can also easily carry out letter Breath interaction.The application additionally provides a kind of data communication equipment, electronic equipment and computer readable storage medium simultaneously, has upper Beneficial effect is stated, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of data communications method provided by the embodiments of the present application;
Fig. 2 is structural schematic diagram corresponding with Fig. 1;
Fig. 3 is a kind of flow chart of the determination method of mailing address in data communications method provided by the embodiments of the present application;
Fig. 4 is and in Fig. 3 by establishing peer relationship by determining the knot of mailing address in the virtual router of opposite end Structure schematic diagram;
Fig. 5 is a kind of process of method that pick-up service trustship is carried out using peer relationship provided by the embodiments of the present application Figure;
Fig. 6 is a kind of structural block diagram of data communication equipment provided by the embodiments of the present application.
Specific embodiment
The purpose of the application is to provide a kind of data communications method, device, electronic equipment and computer readable storage medium, Router applied to the support EVPN being created that using virtualization technology, it is desirable to provide a kind of to be answered by virtual router in generation The mode of ARP request avoids for ARP being broadcast to adverse effect caused by all virtual machines.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Embodiment one
Referring to Figure 1, Fig. 1 is a kind of flow chart of data communications method provided by the embodiments of the present application comprising following Step, the executing subjects of following steps are virtual router, the virtual router be created that using virtualization technology come The router for supporting EVPN, relies on certain hardware resource to establish:
S101: the ARP request that the first virtual machine is sent is received;
Current virtual router receives the ARP request sent by self-administered first virtual machine.
The ARP request be the first virtual machine needs communicated and generated and issued with another virtual machine because To carry out communicating with another virtual machine must it is to be understood that another virtual machine mailing address, but due on each virtual machine not It is stored with the mailing address of other virtual machines, therefore an important step is exactly the mailing address for first getting target virtual machine.
Traditional approach is broadcast in network by the way of all devices using by the ARP request, is asked to receive the ARP The mailing address of itself is back to ARP request after confirmation has equipment needs to be communicated with itself by the target device asked Issue equipment.But under virtualized network environment, virtual machine is instead of original entity device, and quantity is not by entity device Limitation, not only scale is big and complicated for this network, and traditional broadcast mode not only results in the waste of bandwidth, also can be with virtual Machine quantity increases the amount shipped out sharp increase for leading to ARP request, causes large effect to normal business.
For this problem, the application provides a kind of method for answering ARP request using virtual router come generation, i.e., virtual road It first passes through study in advance by device and establishes the routing table of each virtual machine that it is managed, record has each virtual machine and every in the routing table Corresponding relationship between a mailing address.That is the routing table is generated by being located at the virtual router on each virtual machine upper layer, Whenever have virtual machine it needs to be determined that target virtual machine mailing address when, all only need to send corresponding ARP request to virtual road By device, so that it may substitute the operation that target virtual machine makes feedback communication address, therefore this mistake by the virtual router Journey be referred to alternatively as generation answer.For the virtual machine for issuing ARP request, do not need ARP being broadcast to each other virtual machine, It only needs to be sent to virtual router;For target virtual machine, eliminate receive ARP request judge whether it is itself with And the operation of return communication address;It is not in that a large amount of ARP request blocking is normal for entire virtualized network environment Business processing, effect are more preferable.
Further, increased due to virtual machine convenient for the variation with actual conditions, deleted, adjusted, in virtualization network rings Under border, virtual machine and its mailing address may be frequently found to change, therefore the update of routing table is also one in this scenario Key point.Specifically, the update operation of routing table can perceive that there are triggerings when following situations in virtual router: it is newly-increased by The virtual machine of self-management is adjusted by the former virtual machine of self-management or is gone offline, by the active and standby virtual machine of same business of self-management Switching, receive routing table update instruction in any one.Certainly, actual conditions are complex, can not enumerate, But it is all to will affect the operation communicated with target virtual machine and all trigger the update of routing table, because only that correctly routing Table just can guarantee effective progress of communication.
Further, after the completion of routing table update, for the ease of this information of the SDN controller timely learning on upper layer, New routing table can also be back to the SDN controller on upper layer.That is the SDN control on upper layer is stored with what each virtual router was sent Newest routing table can control all information from the overall situation.
S102: the mailing address of the second virtual machine corresponding with ARP request is determined according to routing table;
On the basis of S101, current virtual router determines and ARP request pair in conjunction with the routing table that can be got The mailing address for the second virtual machine (i.e. target virtual machine) answered.
Wherein, routing table described in this step and not merely refer to the virtual machine that current virtual router is managed according to itself Obtained routing table is established, can also include its routing table got from other virtual routers.Supporting EVPN A kind of (Ethernet Virtual Private Network is VPN technologies for realizing network double layer intercommunication) technology In the case of, different virtual routers can establish relationship between the two by way of establishing peer relationship, successfully build After erecting peer relationship, the information recorded in the available virtual router to opposite end of the virtual router of local terminal, not only It can also include such as information such as the network topology structures that is constituted between virtual machine including routing table.Therefore, either using current The routing table recorded in virtual router still passes through the routing table that peer relationship is got from opposite end virtual router, To realize the purpose for determining the second virtual machine mailing address by routing table.It should also be noted that, different virtual routers A cluster can be belonged to, different clusters can also be adhered to separately.
Further, some other function can also be realized according to established peer relationship between different virtual routers Can, such as peer relationship maintain verifying, the transmitting of information, the verifying of information security, opposite end current operating conditions really Fixed, abnormal discovery, master-slave redundancy etc. and some according to particular/special requirement institutes that may be present all under practical application scene The function of exploitation herein and is not specifically limited.
S103: being back to the first virtual machine for mailing address, so that the first virtual machine is virtual according to mailing address and second Machine is communicated.
On the basis of S102, this step is intended to substitute the second virtual machine (destination virtual by current virtual router Machine), the mailing address of second virtual machine (target virtual machine) is back to the first virtual machine, in order to receive this communicatedly First virtual machine of location carries out point-to-point communication according to the mailing address and the second virtual machine (target virtual machine).
Information makes the first virtual machine not receive the mailing address or not connect in transmittance process appearance exception in order to prevent Correct mailing address is received, result feedback can also be carried out from the first virtual machine to virtual router, i.e. the first virtual machine is such as Fruit has received correct mailing address, feeds back a signal to virtual router;If it is logical that the first virtual machine does not receive this Believe address, virtual router does not receive the signal from the first virtual machine within a certain period of time, will determine this communicatedly There is exception in the transmission of location, and then trigger and retransmit operation;If although the first virtual machine has received from virtual router Data, but mailing address therein is imperfect, and the signal of a mailing address mistake or exception can be also returned to virtual router, It is final to guarantee that the first virtual machine is allowed to be actually received effectively communicatedly to inform virtual router and trigger corresponding operation Location.
For ease of understanding, the present embodiment additionally provides a structural schematic diagram as shown in Figure 2 to describe stream shown in FIG. 1 Journey.Respectively 4 different virtual machines on the right side of Fig. 2, respectively virtual machine A, virtual machine B, virtual machine C and virtual machine D, this four Virtual machine respectively has data connection with the foundation of the virtual router at center, to be sent by the data connection to virtual router ARP request.Routing table positioned at left side is to be formed and stored in after learning in the virtual router in advance, record have this 4 A virtual machine and its respective corresponding relationship between mailing address.Fig. 2 by virtual machine A to virtual router send ARP request for, Virtual router determines that virtual machine A wants the target virtual machine communicated according to the parameter combination routing table in ARP request Mailing address, and the mailing address is finally back to virtual machine A, so that virtual machine A passes through the mailing address and destination virtual Machine is communicated.
Based on the above-mentioned technical proposal, the application has used the virtual router created using virtualization technology to manage Each virtual machine by the way of managing each virtual machine, is created compared to simple using entity router also with virtualization technology Obtained virtual router preferably can carry out information exchange with the virtual machine managed and other virtual routers, can be maximum Avoid the entity router as caused by agreement disunity between virtual machine and entity router that can not help in degree virtual for answering The problem of ARP request that machine is initiated, be the appropriate of the influence performance uniformly made of reaching an agreement without virtual machine or entity router Association.Meanwhile under more cluster scenes, the virtual router of each cluster can also easily carry out information exchange.
Embodiment two
Fig. 3 is referred to, Fig. 3 is a kind of determination method of mailing address in data communications method provided by the embodiments of the present application Flow chart, on the basis of example 1, the present embodiment specifically provides a kind of method of determining mailing address for S102, wraps The second virtual machine is included to belong to current virtual router administration or be not belonging to two kinds of situations of management of current virtual router, including with Lower step:
S201: it is extracted from ARP request and obtains the attribute information of the second virtual machine;
This step, which is intended to extract from ARP request, obtains the attribute information of the second virtual machine (target virtual machine), the attribute Information may include that the device name of target virtual machine, affiliated cluster, creation time, affiliated grouping, Permission Levels etc. can be helped Help the parameter that the second virtual machine is distinguished in multi-dummy machine of comforming.
S202: the destination virtual router of the second virtual machine of management is determined according to attribute information;
On the basis of S201, this step is intended to determine management come specific according to the attribute information got this is second virtual The destination virtual router of machine.
Determining the purpose of virtual router for managing second virtual machine is, if the second virtual machine be not with it is first virtual When machine is belonged under the management of identical virtual router, second not will record in the routing table of usually current virtual router The mailing address of virtual machine, therefore also just without normal direction the first virtual machine mailing address, it is also possible to by establishing peer-to-peer Mode and the second virtual machine of actual management virtual router foundation contact, and further therefrom get record have second void The routing table of quasi- machine mailing address.
S203: when destination virtual router is itself, the second virtual machine is determined according to the routing table for being recorded in itself Mailing address;
It is exactly the basis of current virtual router itself that this step, which is established in the destination virtual router that S202 is determined, On, illustrate management of second virtual machine with the first virtual machine by identical virtual router, i.e. the mailing address note of the second virtual machine Record directly can determine the logical of the second virtual machine according to the routing table of itself in the routing table of current virtual router Believe address.
S204: it when destination virtual router is non-self other virtual routers, is established with destination virtual router Peer relationship obtains the road recorded in destination virtual router by peer relationship if being successfully established peer relationship By table, and the routing table by getting determines the mailing address of the second virtual machine.
This step is established on other virtual roads that the destination virtual router that S202 is determined is non-present virtual router On the basis of device, illustrate that the first virtual machine is wanted to be communicated with a virtual machine by another virtual router management, For this purpose, it present embodiments provides and a kind of realizes two virtual roads of difference by way of establishing peer relationship By the method for device information interaction, after two different virtual routers are successfully established peer relationship, the virtual road of local terminal The information that can be stored in the virtual router of opposite end by the acquisition of the peer relationship of foundation by device, including routing table, The information such as network topology.Current virtual router is getting routing from destination virtual router belonging to the second virtual machine After table, so that it may obtain the mailing address of the second virtual machine according to the routing table, adhere to different virtual router management separately not Under the premise of not being isolated between virtual machine, the first virtual machine can be carried out directly by the mailing address and the second virtual machine Communication.
Further, subsequent for convenience to reuse, it can also be whenever success and a non-self virtual router After establishing the peer relationship, the peer relationship is just recorded, and corresponding routing table is stored in current virtual flow-line In the data space of device itself.
For convenience of understanding, the present embodiment also passes through Fig. 4 and is provided in the corresponding structural schematic diagram of above content, deposits in Fig. 4 In two different virtual routers, respectively virtual router X and virtual router Y, wherein virtual machine A, B, C, D are by void Quasi- router X-tube reason, virtual machine E, F, G, H are managed by virtual machine router Y, i.e. the routing table of virtual router X only records Virtual machine A, B, C, D communicate with the corresponding relationship between address, the routing table of virtual router Y only record virtual machine E, F, G, H communicates with the corresponding relationship between address.
For Fig. 4 by taking virtual machine A initiates ARP request to virtual router X as an example, target virtual machine is virtual machine F, therefore After virtual router X receives the ARP request, it is found that record does not have the mailing address of virtual machine F in target itself routing table, and Therewith discovery virtual machine F by virtual router Y management, therefore before not having etc. with virtual router Y foundation to body relationship It puts, will attempt to establish peer relationship with virtual router Y, after peer relationship is successfully established, the peer-to-peer will be passed through Relation acquisition is stored in the routing table in virtual router Y, and the mailing address of virtual machine F is checked in from the routing table, and most It is back to virtual machine A eventually.
Whether the present embodiment with the first virtual machine is in identical virtual on the basis of example 1, according to the second virtual machine The corresponding scheme for determining the second virtual machine mailing address is set forth in the management of router, is more in line with complicated journey now Degree height, the demand comprising more clusters, sweeping virtual network environment.
Embodiment three
Refer to Fig. 5, Fig. 5 is provided by the embodiments of the present application a kind of peer relationship to be utilized to carry out pick-up service trustship The flow chart of method, based on any of the above embodiments, the present embodiment are intended to set up using between different virtual routers Peer relationship, complete some operations in addition to obtaining routing table, make full use of the peer relationship, include the following steps:
S301: the operating status of itself is determined;
Current virtual router determines itself current operating status, according to what is divided under application scenarios to operating status Difference, there may be a variety of, multi-grade, etc. classifications operating status division mode, such as can simply be divided into just Often (online), abnormal (online), go offline three kinds of states, can also with according to whether the generation that ARP request can be completed answer and operate it Being divided into can be for answering and and can not be not specifically limited for answering two kinds, etc. herein.
S302: when the operating status of itself, which is unable to complete ARP request generation, to be answered, there is peer relationship to establishing with itself The virtual router of opposite end sends business trustship request;
This step is established in current virtual router according to the judgement to self-operating state, it is believed that itself is unable to complete In the generation of ARP request, answers operation, therefore is that generation is allowed to answer operation and continue, and the application, which provides, a kind of has equity to itself foundation The virtual router of the opposite end of body relationship sends business trustship request, i.e. the operating status to opposite end is good (at least extra In generation, answers operation processing ability) virtual router seek pick-up service trustship, or agency can be become.
It should be noted that in order to be reduced as far as possible on the influence of the performance of the virtual router of opposite end, the business trustship Request can be to it is all with itself establish peer relationship opposite end virtual router transmission, to seek most to close wherein Suitable opposite end virtual router is as trustship virtual router.
S303: trustship virtual router is determined according to the response message received;
On the basis of S302, this step is intended to by current virtual router according to each response message received come really Determine trustship virtual router, wherein can wrap in the response message and self-operating state is retouched containing each opposite end virtual router It states, to determine preferred trustship virtual router based on this.
S304: sending itself current routing table to trustship virtual router, and by the ARP of each virtual machine of self-management Request sends address and is revised as hosts virtual machine.
On the basis of S303, current virtual router can send itself current routing to trustship virtual router Table, and hosts virtual machine is revised as in the ARP request of each virtual machine of self-management transmission address, so that trustship virtual flow-line Device helps oneself completion subsequent ARP request generation to answer operation.
Above describe current virtual router oneself active completed according to self-operating state it is some Corrective operation, but if current virtual router is because failure goes offline or when delay machine, will be unable to execute this operation, therefore may be used also To judge its operating status by the opposite end virtual router that peer relationship has been established, i.e., according to established peer-to-peer Relationship determines the operating status of the virtual router of opposite end, and executes operation corresponding with operating status.
Just by taking opposite end virtual router is in the state that goes offline as an example, when the virtual router of local terminal is this case that determination, The executable operation of one of which are as follows: send the virtual router in the state that goes offline to the SDN controller on upper layer and be currently at The notification information for the state that goes offline, so that SDN controller proceeds from the situation as a whole to formulate subsequent solution.
On the basis of the above embodiments, the present embodiment provides a kind of determining local terminal using peer relationship or opposite end is empty Quasi- router operating status, and according to the different methods for executing operation of operating status, so that the peer relationship set up can It realizes richer function, is only to have carried out expansion description to one of achievable method herein, it is other same or like Scheme no longer repeat one by one.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works, It should within the scope of protection of this application.
Example IV
Fig. 6 is referred to below, and Fig. 6 is a kind of structural block diagram of data communication equipment provided by the embodiments of the present application, application In virtual router, the apparatus may include:
ARP request receiving unit 100, the ARP request sent for receiving the first virtual machine;
Destinations traffic address determination unit 200, for determining the second virtual machine corresponding with ARP request according to routing table Mailing address;Wherein, there is between each virtual machine and each mailing address under affiliated virtual router management record in routing table Corresponding relationship;
Opposite end communication unit 300, for mailing address to be back to the first virtual machine, so that the first virtual machine is according to communication Address is communicated with the second virtual machine.
Wherein, which may include:
Attribute information obtains subelement, obtains the attribute information of the second virtual machine for extracting from ARP request;
Destination virtual router determines subelement, for determining the destination virtual of the second virtual machine of management according to attribute information Router;
Mailing address first determines subelement, for when destination virtual router is itself, according to being recorded in itself Routing table determines the mailing address of the second virtual machine;
Mailing address second determines subelement, for being non-self other virtual routers when destination virtual router When, peer relationship is established with destination virtual router, if being successfully established peer relationship, mesh is obtained by peer relationship The routing table recorded in mark virtual router, and the routing table by getting determines the mailing address of the second virtual machine.
Further, which can also include:
Peer relationship and opposite end routing table storage unit, for being established when success and a non-self virtual router After peer relationship, peer relationship is recorded, and corresponding routing table is stored in the data space of itself.
Further, which can also include:
Self-operating status determining unit, for determining itself operating status;
Business trustship request transmitting unit, for the operating status when itself be unable to complete ARP request generation answer when, to from Body, which is established, has the virtual router of the opposite end of peer relationship to send business trustship request;
Trustship virtual router determination unit, for determining trustship virtual router according to the response message received;
Trustship operation execution unit, for sending itself current routing table to trustship virtual router, and will be from barrel The ARP request of each virtual machine of reason sends address and is revised as hosts virtual machine.
Further, which can also include:
Opposite end virtual router operating status determination unit, for determining the void of opposite end according to established peer relationship The operating status of quasi- router;
Operation execution unit, for executing operation corresponding with operating status.
Wherein, which may include:
The reply operation that goes offline executes subelement, for when the virtual router for determining opposite end is currently at and goes offline state, The notification information that the virtual router in the state that goes offline is currently at the state of going offline is sent to the SDN controller on upper layer.
Further, which can also include:
Routing table update unit, for the routing table according to preset routing table update Policy Updates itself;Wherein, it routes Table updates rule and goes offline, including the newly-increased virtual machine by self-management, the former virtual machine by self-management by the same of self-management The switching of the active and standby virtual machine of business, receive routing table update instruction in any one.
Further, which can also include:
New routing table generation unit, for after the routing table according to preset routing table update Policy Updates itself, Traversal generates new routing table according to the parameter that traversal obtains currently by each virtual machine of self-management;
Upper layer feedback unit, for new routing table to be back to the SDN controller on upper layer.
The present embodiment exists as the Installation practice for corresponding to above method embodiment, the whole with embodiment of the method Beneficial effect, this is no longer going to repeat them.
Based on the above embodiment, present invention also provides a kind of electronic equipment, and virtual router is based on the electronic equipment Hardware resource creates to obtain by virtualization technology, and operates in the electronic equipment.The electronic equipment may include memory And processor, wherein there is computer program in the memory, when which calls the computer program in the memory, Step provided by above-described embodiment may be implemented.Certainly, which can also include various necessary network interfaces, electricity Source and other components etc..
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program Step provided by above-described embodiment may be implemented when being performed terminal or processor execution.The storage medium may include: U Disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various media that can store program code such as magnetic or disk.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and above embodiments are said It is bright to be merely used to help understand the present processes and its core concept.For those skilled in the art, Under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improvement and modification It falls into the protection scope of the claim of this application.
It should also be noted that, in the present specification, 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 other elements including being 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 equipment for including element.

Claims (11)

1. a kind of data communications method, which is characterized in that be applied to virtual router, comprising:
Receive the ARP request that the first virtual machine is sent;
The mailing address of the second virtual machine corresponding with the ARP request is determined according to routing table;Wherein, remember in the routing table Record has the corresponding relationship between each virtual machine and each mailing address under affiliated virtual router management;
The mailing address is back to first virtual machine, so that first virtual machine is according to the mailing address and institute The second virtual machine is stated to be communicated.
2. data communications method according to claim 1, which is characterized in that according to routing table determination and the ARP request The mailing address of corresponding second virtual machine, comprising:
It is extracted from the ARP request and obtains the attribute information of second virtual machine;
The destination virtual router for managing second virtual machine is determined according to the attribute information;
When the destination virtual router is itself, the logical of second virtual machine is determined according to the routing table for being recorded in itself Believe address;
When the destination virtual router is non-self other virtual routers, with destination virtual router foundation pair Equal bodies relationship obtains the destination virtual router by the peer relationship if being successfully established the peer relationship The routing table of middle record, and the routing table by getting determines the mailing address of second virtual machine.
3. data communications method according to claim 2, which is characterized in that further include:
After success establishes the peer relationship with a non-self virtual router, the peer relationship is recorded, and Corresponding routing table is stored in the data space of itself.
4. data communications method according to claim 2, which is characterized in that further include:
Determine the operating status of itself;
When the operating status of itself is unable to complete data communication, to the void for the opposite end for having the peer relationship with itself foundation Quasi- router sends business trustship request;
Trustship virtual router is determined according to the response message received;
Itself current routing table is sent to the trustship virtual router, and by the ARP request of each virtual machine of self-management It sends address and is revised as the hosts virtual machine.
5. data communications method according to claim 2, which is characterized in that further include:
The operating status of the virtual router of opposite end is determined according to established peer relationship;
Execute operation corresponding with the operating status.
6. data communications method according to claim 5, which is characterized in that execute behaviour corresponding with the operating status Make, comprising:
When the virtual router for determining opposite end, which is currently at, goes offline state, send to fall described in the SDN controller on upper layer The virtual router of linear state is currently at the notification information for the state of going offline.
7. data communications method according to any one of claims 1 to 6, which is characterized in that further include:
According to the routing table of preset routing table update Policy Updates itself;Wherein, the routing table update rule includes newly-increased Virtual machine by self-management, the former virtual machine by self-management go offline, is cut by the active and standby virtual machine of same business of self-management Change, receive routing table update instruction in any one.
8. data communications method according to claim 7, which is characterized in that according to preset routing table update rule more Newly after the routing table of itself, further includes:
Traversal generates new routing table according to the parameter that traversal obtains currently by each virtual machine of self-management;
The new routing table is back to the SDN controller on upper layer.
9. a kind of data communication equipment, which is characterized in that be applied to virtual router, comprising:
ARP request receiving unit, the ARP request sent for receiving the first virtual machine;
Destinations traffic address determination unit, for determining the logical of the second virtual machine corresponding with the ARP request according to routing table Believe address;Wherein, record has each virtual machine and each mailing address under affiliated virtual router management in the routing table Between corresponding relationship;
Opposite end communication unit, for the mailing address to be back to first virtual machine, so that the first virtual machine root It is communicated according to the mailing address with second virtual machine.
10. a kind of electronic equipment, which is characterized in that virtual router passes through virtualization based on the hardware resource of the electronic equipment Technology creates to obtain, and operates in the electronic equipment, and the electronic equipment includes:
Memory, for storing computer program;
Processor realizes data communication side as claimed in any one of claims 1 to 8 when for executing the computer program Method.
11. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize data communications method as claimed in any one of claims 1 to 8 when being executed by processor.
CN201910550778.2A 2019-06-24 2019-06-24 A kind of data communications method, device, electronic equipment and storage medium Pending CN110266589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910550778.2A CN110266589A (en) 2019-06-24 2019-06-24 A kind of data communications method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910550778.2A CN110266589A (en) 2019-06-24 2019-06-24 A kind of data communications method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110266589A true CN110266589A (en) 2019-09-20

Family

ID=67920955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910550778.2A Pending CN110266589A (en) 2019-06-24 2019-06-24 A kind of data communications method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110266589A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855488A (en) * 2019-11-13 2020-02-28 迈普通信技术股份有限公司 Virtual machine access method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924707A (en) * 2010-09-27 2010-12-22 杭州华三通信技术有限公司 Method and equipment for processing message of address resolution protocol (ARP)
CN102457583A (en) * 2010-10-19 2012-05-16 中兴通讯股份有限公司 Realization method of mobility of virtual machine and system thereof
CN109039790A (en) * 2018-10-24 2018-12-18 深信服科技股份有限公司 A kind of inter-cluster communication method and relevant apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924707A (en) * 2010-09-27 2010-12-22 杭州华三通信技术有限公司 Method and equipment for processing message of address resolution protocol (ARP)
CN102457583A (en) * 2010-10-19 2012-05-16 中兴通讯股份有限公司 Realization method of mobility of virtual machine and system thereof
CN109039790A (en) * 2018-10-24 2018-12-18 深信服科技股份有限公司 A kind of inter-cluster communication method and relevant apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855488A (en) * 2019-11-13 2020-02-28 迈普通信技术股份有限公司 Virtual machine access method and device

Similar Documents

Publication Publication Date Title
US20210152632A1 (en) Managing replication of computing nodes for provided computer networks
CN101442469B (en) Method, system and apparatus for down distributing configuration data
CN104158916A (en) Method and device for device accessing to network
CN101841409B (en) Method, server and domain name system for realizing purpose of creating synchronization in DNS region
CN100571191C (en) Keep the VRRP technology of VR confidentiality
CN109587286B (en) Equipment access control method and device
CN103026660A (en) Network policy configuration method, management device and network management centre device
CN107612834A (en) A kind of EVPN route renewing methods based on virtual unit migration
CN102148698A (en) Network configuration protocol-based network configuration management method, equipment and system
WO2018214817A1 (en) Packet forwarding method, device and apparatus, and storage medium
CN112698838B (en) Multi-cloud container deployment system and container deployment method thereof
US9985840B2 (en) Container tracer
CN114500523A (en) Fixed IP application release method based on container cloud platform
CN110266589A (en) A kind of data communications method, device, electronic equipment and storage medium
CN107547374B (en) Aggregation route processing method and device
CN101420327B (en) Method for avoiding routing oscillation in smooth restarting process and smooth restarting equipment
CN110753093B (en) Method and device for managing equipment in cloud computing system
CN116566830A (en) Network configuration method, device, system, edge equipment and storage medium
CN110661651A (en) SDN controller data management method, system, device and readable storage medium
CN106909322B (en) Routing method and device for supporting storage disaster recovery in virtualization system
Cheng et al. Reaching consensus with byzantine faulty controllers in software-defined networks
EP3188444A1 (en) Software defined network-based data management method and system, and storage medium
CN114338496B (en) Resource forwarding method, device, terminal and computer storage medium
CN103746817A (en) DNSSEC (Domain Name System Security Extensions) signature method and system thereof
CN108199870A (en) Conversation processing method, device and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190920

RJ01 Rejection of invention patent application after publication