CN108390953A - A kind of server discovery method and device - Google Patents

A kind of server discovery method and device Download PDF

Info

Publication number
CN108390953A
CN108390953A CN201810245668.0A CN201810245668A CN108390953A CN 108390953 A CN108390953 A CN 108390953A CN 201810245668 A CN201810245668 A CN 201810245668A CN 108390953 A CN108390953 A CN 108390953A
Authority
CN
China
Prior art keywords
isns
switching equipment
server
equipment
isns server
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.)
Granted
Application number
CN201810245668.0A
Other languages
Chinese (zh)
Other versions
CN108390953B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810245668.0A priority Critical patent/CN108390953B/en
Publication of CN108390953A publication Critical patent/CN108390953A/en
Application granted granted Critical
Publication of CN108390953B publication Critical patent/CN108390953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication

Landscapes

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

Abstract

The present invention provides a kind of server discovery method and device, the method includes:The switching equipment for deploying internet store name service agreement iSNS server Ss erver determines the iSNS Server for being used for equipment management;Edge switching equipment is by broadcasting packet to the IP address for the iSNS Server of equipment management described in the iSNS Client notices locally accessed.It can simplify network deployment, and realize the automatic discovery of iSNS Server to avoid independent application server is introduced using the present invention.

Description

A kind of server discovery method and device
Technical field
The present invention relates to network communication technology fields more particularly to a kind of server to find method and device.
Background technology
(Internet Small Computer System Interface, internet small computer system connect iSCSI Mouthful) it is the net developed by IETF (The Internet Engineering Task Force, Internet engineering task force) Network stores standard, in order to storage device are connected to one with IP (Internet Protocol, Internet protocol) agreement It rises.Due to the extensive use of IP network, iSCSI can be in LAN (Local Area Network, LAN), WAN Data transmission is carried out on (Wide Area Network, wide area network) or even Internet so that the storage of data is no longer by region Limitation.
ISCSI uses Client (client)/Server (server) operating mode.The side Client is used as Initiator (initiation) equipment initiates iSCSI sessions, corresponds to server.Server receives iSCSI sessions as Target (target) equipment Request corresponds to storage device.
ISNS (Internet Storage Name Service, internet store name service agreement) agreement is iSCSI Equipment provides a set of scheme for automatically configuring and managing.
In iSNS agreements, all Initiator equipment and Target equipment are as iSNS Client to iSNS Server is registered, and iSNS Server manage all iscsi devices (including Initiator equipment and Target equipment) concentratedly, carry For plant maintenance, facility information inquiry, find the functions such as domain division.
However practice is found, in existing iSNS agreements, iSNS Server are deployed in stand-alone application server, and are needed The IP address of manual configuration iSNS Server on all iSNS Client.
Invention content
The present invention provides a kind of server discovery method and device, to solve the iSCSI SAN of existing operation iSNS agreements ISNS Server need to be deployed in stand-alone application server in network, and need the manual configuration on all iSNS Client The problem of IP address of iSNS Server.
According to a first aspect of the embodiments of the present invention, a kind of server discovery method is provided, iSCSI SAN networks are applied to In switching equipment, the switching equipment in the network includes edge switching equipment and intermediate switching equipment, and the edge exchange is set It is standby to be local there are the switching equipment of iSNS Client accesses, the method includes:
The switching equipment for deploying iSNS Server determines the iSNS Server for being used for equipment management;
Edge switching equipment is used for equipment pipe by broadcasting packet to the iSNS Client notices locally accessed are described The IP address of the iSNS Server of reason.
According to a second aspect of the embodiments of the present invention, a kind of server discovery device is provided, iSCSI SAN networks are applied to In switching equipment, the switching equipment in the network includes edge switching equipment and intermediate switching equipment, and the edge exchange is set Standby is that locally there are the switching equipment of iSNS Client accesses, which is characterized in that the method includes:
Determination unit, for when the switching equipment deploys iSNS Server, determining the iSNS for equipment management Server;
Transmission unit, for when the switching equipment is edge switching equipment, by broadcasting packet to locally accessing The IP address of the iSNS Client notices iSNS Server for equipment management.
Using the embodiment of the present invention, the switching equipment for deploying iSNS Server determines the iSNS for being used for equipment management Server, iSNS of the edge switching equipment by broadcasting packet to the iSNS Client notices locally accessed for equipment management The IP address of Server, by disposing iSNS Server on switching equipment, can to avoid introducing independent application server, Simplify network deployment, reduces cost;In addition, the switching equipment of deployment iSNS Server can actively by broadcasting packet to IP address of the iSNS Client notices for the iSNS Server of equipment management, realizes the automatic discovery of iSNS Server, And the automatic discovery protocol component of iSNS Client deployment is not needed, reduce the complexity of iSNS Client.
Description of the drawings
Fig. 1 is a kind of configuration diagram of equipment management system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram that a kind of server provided in an embodiment of the present invention finds method;
Fig. 3 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram that a kind of server provided in an embodiment of the present invention finds device;
Fig. 5 is the structural schematic diagram that another server provided in an embodiment of the present invention finds device.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present invention, below first to this hair The applicable system architecture of bright embodiment is briefly described.
Fig. 1 is referred to, is a kind of configuration diagram of equipment management system provided in an embodiment of the present invention, as shown in Figure 1, In the equipment management system, the enabled iSCSI functions of each switching equipment, and support iSNS agreements;Wherein:
If a switching equipment deploys iSNS Server, and between the switching equipment and at least one iSNS Client not There are other switching equipment for deploying iSNS Server, then the switching equipment are known as edge switching equipment;
Wherein, which is properly termed as the iSNS that the edge switching equipment locally accesses Client;
If a switching equipment deploys iSNS Server, and exists between each iSNS Client of the switching equipment other The switching equipment of iSNS Server is deployed, then the switching equipment is known as intermediate switching equipment;
If a switching equipment does not dispose iSNS Server, which is known as common switching equipment.
Wherein, the type of iSNS Client includes initiator and target side, in order to subsequently facilitate description, by initiator ISNS Client are denoted as Initiator equipment, and target side iSNS Client are denoted as Target equipment.
In order to keep the above objects, features, and advantages of the embodiment of the present invention more obvious and easy to understand, below in conjunction with the accompanying drawings Technical solution in the embodiment of the present invention is described in further detail.
Fig. 2 is referred to, for a kind of flow diagram of server discovery method provided in an embodiment of the present invention, wherein should Server finds that method can be applied to the switching equipment in Fig. 1, as shown in Fig. 2, the server finds that method may include:
Step 201, the switching equipment for deploying iSNS Server determine the iSNS Server for equipment management.
Step 202, edge switching equipment are used for equipment pipe by broadcasting packet to the iSNS Client notices locally accessed The IP address of the iSNS Server of reason.
In the embodiment of the present invention, in order to simplify the networking deployment for the iSCSI SAN networks for supporting iSNS agreements, iSNS Server can be deployed on switching equipment, without disposing individual application server again as iSNS Server.
In addition, in order to realize the automatic discovery of iSNS Server, actively equipment can be used for iSNS Client notices The IP address of the iSNS Server of management.
Correspondingly, in embodiments of the present invention, when switching equipment deploys iSNS Server, which can be with Determine the iSNS Server for equipment management.
It is used to set in addition, edge switching equipment can notice this by broadcasting packet to the iSNS Client locally accessed The IP address of the iSNS Server of standby management.
It, can be according to the IP after iSNS Client have got the IP address for the iSNS Server of equipment management The iSNS Server that address is used for equipment management to this initiate registration.
The application in one embodiment, can be only on one of iSCSI SAN networks switching equipment top ISNS Server have been affixed one's name to, i.e., only there can be a switching equipment for deploying iSNS Server in iSCSI SAN networks.This When, which is edge switching equipment.
Correspondingly, in this embodiment, when switching equipment deploys iSNS Server, which can determine Itself it is the iSNS Server for carrying out equipment management.
In one example, this, which is deployed, is configured with service vlan (Virtual on the switching equipment of iSNS Server Local Area Network, virtual LAN), which is the iSNS Client that edge switching equipment locally accesses Place VLAN;
Correspondingly, edge switching equipment is used for equipment pipe by broadcasting packet to the iSNS Client notices locally accessed The IP address of the iSNS Server of reason, including:
The switching equipment for deploying iSNS Server broadcasts the iSNS Server for being used for equipment management in service vlan Notification packet, this is used in the iSNS Server notification packets of equipment management carry the iSNS Server for equipment management IP address.
Specifically, the switching equipment (i.e. edge switching equipment) for deploying iSNS Server can be wide in service vlan The iSNS Server notification packets for equipment management are broadcast, this is used in the iSNS Server notification packets of equipment management carry It is useful for the IP address of the iSNS Server of equipment management.
Wherein, the common switching equipment deployed between the switching equipment of iSNS Server and iSNS Client allows to take The broadcasting packet of business VLAN passes through.
For example, by taking scene shown in Fig. 3 as an example, it is assumed that Switch A deploy iSNS Server, then Switch A are Edge switching equipment, Switch B and Switch C are common switching equipment, and service vlan 10 and VLAN are configured on Switch A 20.Wherein, the port association of VLAN 10 and Switch A Connection Service device I1 and server I2, VLAN 20 and Switch A connect Connect the port association of Switch B.
It, can be in 10 Hes of VLAN after it is the iSNS Server for equipment management that Switch A, which determine itself, ISNS Server notification packet of the broadcast for equipment management in VLAN 20.
Server I 1 and server I2 receive the iSNS for equipment management that Switch A are broadcasted in VLAN 10 The notification packet of Server, so as to know the IP address of the iSNS Server for equipment management;
Switch B receive the logical of the iSNS Server for equipment management that Switch A are broadcasted in VLAN 20 Message is accused, the broadcasting packet of VLAN 20 is allowed to pass through;Similarly, Switch C also allow the broadcasting packet of VLAN 20 to pass through, into And storage device T1 and storage device T2 can receive the notification packet of the iSNS Server for being used for equipment management, to It can know the IP address of the iSNS Server for equipment management.
Again for example, still by taking scene shown in Fig. 3 as an example, it is assumed that Switch B deploy iSNS Server, then Switch B is edge switching equipment, and Switch A and Switch C are common switching equipment, and 10 He of service vlan is configured on Switch B VLAN 20.Wherein, VLAN 10 connect the port association of Switch A with Switch B, and VLAN 20 is connect with Switch B The port association of Switch C.
It, can be in 10 Hes of VLAN after it is the iSNS Server for equipment management that Switch B, which determine itself, ISNS Server notification packet of the broadcast for equipment management in VLAN 20.
Switch A receive the logical of the iSNS Server for equipment management that Switch B are broadcasted in VLAN 10 Message is accused, allows the broadcasting packet of VLAN 10 to pass through, in turn, server I 1 and server I2 can receive Switch B and exist The notification packet of the iSNS Server for equipment management broadcasted in VLAN 10, so as to know for equipment management The IP address of iSNS Server;
Switch C receive the logical of the iSNS Server for equipment management that Switch B are broadcasted in VLAN 20 Message is accused, allows the broadcasting packet of VLAN 20 to pass through, in turn, storage device T1 and storage device T2 can receive this and be used for The notification packet of the iSNS Server of equipment management, so as to know the IP of iSNS Server for equipment management Location.
Wherein, for deploying the switching equipment of iSNS Server, the IP got when network can be directly added into Address is set as the IP address of iSNS Server, can also in addition be the IP that the switching equipment configures dedicated iSNS Server Address.
In the application another embodiment, iSNS can be deployed on multiple switching equipment of iSCSI SAN networks Server may exist multiple switching equipment for deploying iSNS Server that is, in iSCSI SAN networks.
Correspondingly, in this embodiment, above-mentioned determination is used for the iSNS Server of equipment management, may include:
Main iSNS Server elections are carried out, and main iSNS Server are determined as to the iSNS for equipment management Server。
In this embodiment, when switching equipment deploys iSNS Server, which needs to carry out main iSNS Server is elected, and main iSNS Server are determined as the iSNS Server for equipment management.
It is above-mentioned to carry out main iSNS Server elections in a kind of embodiment of the embodiment, may include:
EB packet is sent in preconfigured control VLAN;
When receiving the EB packet that other switching equipment are sent, according to the priority of itself and the election received The switching equipment of highest priority is determined to be main iSNS Server, by main iSNS by the precedence information carried in message Server is determined as the iSNS Server for equipment management.
In this embodiment, control VLAN can be configured on the switching equipment for deploying iSNS Server.
Preferably, the quantity of control VLAN is one, i.e., the switching equipment configuration for respectively deploying iSNS Server is identical Control VLAN.
Correspondingly, in this embodiment, when switching equipment deploys iSNS Server, which can be EB packet is sent in preconfigured control VLAN, and receives the EB packet that other switching equipment are sent.
In this embodiment, when the switching equipment for deploying iSNS Server receives what other switching equipment were sent When EB packet, according to the precedence information carried in the priority of itself and the EB packet received, most by priority High switching equipment determines to be main iSNS Server.
For example, the preferential of each switching equipment can be determined according to the IP address of the iSNS Server of each switching equipment Grade, for example, the IP address of iSNS Server is bigger, priority is higher;Or, the IP address of iSNS Server is smaller, priority It is higher.
As it can be seen that in this embodiment, after the completion of election, respectively deploying the switching equipment of iSNS Server can obtain Know the IP address of main iSNS Server.
In one example, which is Layer 2 Multicast message, and message format may be used defined in RFC4171 Heartbeat (heartbeat) message format.Wherein, the interchanger for respectively deploying iSNS Server passes through control between each other Bis- layers of VLAN is reachable;If there is the interchanger for not disposing iSNS Server between respectively deploying the interchanger of iSNS Server (referred to herein as general switch), then the general switch allows the two layer message for controlling VLAN to pass through.
It in this example, can be true according to the destination address of the message when switching equipment receives the Layer 2 Multicast message It is fixed whether to need to handle the message.
Wherein, the switching equipment for deploying iSNS Server needs to be handled (i.e. participation choosing to the Layer 2 Multicast message Lift), do not dispose the switching equipment of iSNS Server only can carry out transparent transmission to the message.
It should be noted that the sending method of EB packet is not limited to Layer 2 Multicast, broadcast or unicast can also be passed through Mode send, specific implementation do not repeat herein.
Further, in this embodiment, main iSNS Server need periodically to send notification packet, standby iSNS Server is then by monitoring the notification packet of main iSNS Server, using the main iSNS Server of determination as available mode.
Preferably, the format of the notification packet can be identical as the format of above-mentioned EB packet, and is Layer 2 Multicast report Text.
Correspondingly, it in a kind of embodiment of the embodiment, when switching equipment is main iSNS Server, can control Periodicity sending notification packet in VLAN processed;
When switching equipment is standby iSNS Server, and continuous preset quantity (can be set according to actual scene) is in the period When not receiving the notification packet that main iSNS Server are sent, main iSNS Server elections are re-started.
For example, work as switching equipment for standby iSNS Server, and continuous 3 periods do not receive main iSNS Server and send Notification packet when, switching equipment can determine main iSNS Server unavailable (such as breaking down, power down), re-start Main iSNS Server.
Wherein, switching equipment re-starts the specific implementation that main iSNS Server are elected and is led with above-mentioned switching equipment The realization of iSNS Server elections is identical, and details are not described herein for the embodiment of the present invention.
In addition, after having re-elected new main iSNS Server, it is also necessary to iSNS of the notice for equipment management again The IP address (IP address of the main iSNS Server newly elected) of Server, so that iSNS Client updates are used for equipment The IP address of the iSNS Server of management, and re-initiate registration.
It in this embodiment, can be by edge switching equipment after determining for the iSNS Server of equipment management IP address by broadcasting packet to the iSNS Client notices locally accessed for the iSNS Server of equipment management.
Correspondingly, in this embodiment, it needs to dispose iSNS Server on each edge switching equipment.
In the one of embodiment of the embodiment, above by broadcasting packet to the iSNS Client locally accessed Notice is used for the IP address of the iSNS Server of equipment management, may include:
ISNS Server notification packet of the broadcast for equipment management in service vlan, this is used for equipment management The IP address of the iSNS Server for equipment management is carried in iSNS Server notification packets.
In this embodiment, it in order to avoid iSNS Client protocol layers make larger modification, reduces to iSNS Client Requirement, edge switching equipment can be used for equipment by way of broadcasting packet to the iSNS Client notice locally accessed The IP address of the main iSNS Server of management.
It, can be by iSNS Client that the edge switching equipment locally accesses accordingly for any edge switching equipment Place VLAN is determined as service vlan, and broadcast carries the IP of the iSNS Server for equipment management in service vlan The iSNS Server notification packets for equipment management of address;The iSNS Client that edge switching equipment locally accesses are received When being used for the iSNS Server notification packets of equipment management to this, it is logical that the iSNS Server for being used for equipment management can be obtained The IP address of the iSNS Server for equipment management carried in message is accused, and according to the IP address to for equipment management ISNS Server initiate registration.
It should be noted that in embodiments of the present invention, for any edge switching equipment, the quantity of service vlan can be with For one or more, when the quantity of service vlan is multiple, which can be wide in each service vlan respectively The above-mentioned iSNS Server notification packets for equipment management are broadcast, specific implementation does not repeat herein.
In the embodiment of the present invention, when switching equipment is the iSNS Server for equipment management, for example, only existing In the case of deploying iSNS Server on one of iSCSI SAN networks switching equipment, which deploys iSNS Server;Or, in the case where deploying iSNS Server on iSCSI SAN network one or more switching equipment, The switching equipment deploys iSNS Server, and is elected as main iSNS Server, and switching equipment can be to the iSNS of registration Client is managed comprising but be not limited to plant maintenance, facility information inquiry, find that domain divides.
It should be noted that in embodiments of the present invention, iSNS Client are according to the iSNS for equipment management The specific implementation flow that the IP address of Server is initiated to register to the iSNS Server for equipment management may refer to existing ISNS Client initiate the related realization stream of registration according to the IP address of iSNS Server to iSNS Server in iSNS agreements Journey, this will not be repeated here for the embodiment of the present invention.
In addition, the specific implementation flow that the iSNS Server for equipment management manage the iSNS Client of registration It may refer to the related realization flow of iSNS Client management of the existing iSNS Server to registration.
It, can be to avoid drawing by disposing iSNS Server on switching equipment as it can be seen that in method flow shown in Fig. 2 Enter independent application server, network deployment can be simplified, reduce cost;In addition, the switching equipment of deployment iSNS Server can IP address with active by broadcasting packet to iSNS Client notices for the iSNS Server of equipment management, realizes The automatic discovery of iSNS Server, and the automatic discovery protocol component of iSNS Client deployment is not needed, reduce iSNS The complexity of Client;Furthermore by disposing iSNS Server on multiple switching equipment, each iSNS Server carry out active and standby ISNS Server elections, carry out equipment management, and when main iSNS Server are unavailable by main iSNS Server, standby iSNS Server re-elects new main iSNS Server for equipment management, avoids single point failure problem, it is reliable to improve system Property.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, with reference to specific Application scenarios illustrate technical solution provided in an embodiment of the present invention.
Fig. 3 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, as shown in figure 3, In the application scenarios, Switch (interchanger) A and Switch C are edge switching equipment, and Switch B are that intermediate exchange is set Standby, Switch A are the gateway of server I 1 and server I2, and Switch C are the gateway of storage device T1 and storage device T2. Server I 1 and server I2 are VLAN 10 in VLAN where the registered port of Switch A;Storage device T1 and storage device T2 is VLAN 20 in VLAN where the registered port of Switch B.Wherein:
Switch (interchanger) A, Switch B and Switch C deploy iSNS Server, and configured with control VLAN;
Respectively there are one the IP address as iSNS Server (assuming that dividing for configuration by Switch A, Switch B and Switch C It Wei IP1, IP2 and IP3).
Three-layer routing is reachable between Switch A, Switch B and Switch C, and reachable by controlling bis- layers of VLAN.
It should be noted that general switch (i.e. non-portion can be connected between Switch A, Switch B and Switch C The interchanger for affixing one's name to iSNS Server, is not shown in figure), or/and, gateway (Switch A or Switch C) and iSNS Client Between can connect general switch (not shown), and each general switch (if present) allows two layers of report for controlling VLAN Text passes through.
Based on application scenarios shown in Fig. 3, equipment management scheme provided in an embodiment of the present invention is realized as follows:
Switch A (or Switch B or Switch C) send EB packet in controlling VLAN.
Wherein, which is Layer 2 Multicast message, and message format is using the Heartbeat defined in RFC4171 Message format.
Switch A (or Switch B or Switch C) receive the EB packet that other switching equipment are sent, and compare itself Priority and the EB packet that receives in the precedence information that carries.If the priority carried in the EB packet received Higher than own priority, then become standby iSNS Server;If the priority for not receiving carrying is higher than the election of own priority Message then becomes main iSNS Server.
In this embodiment, smaller with IP address, for priority is higher, and assume IP1 > IP3 > IP2, then Switch B is elected as main iSNS Server, i.e. Switch B are iSNS Server, the Switch A and Switch for equipment management C is standby iSNS Server.
Wherein, Switch B are elected as after main iSNS Server, can be with periodicity sending notification packet;Switch A and Switch C monitor the notification packet that Switch B are sent, if continuous 3 periods do not receive the notice that Switch B are sent Message then re-starts main iSNS Server elections.
Switch A broadcast the iSNS Server notification packets for equipment management in VLAN10, and Switch C exist ISNS Server notification packet of the broadcast for equipment management in VLAN20.
Wherein, this is used in the iSNS Server notification packets of equipment management carry the iSNS for equipment management The IP address (i.e. IP2) of Server.
ISNS Client (server I 1, server I 2, storage device T1 or storage device T2) are received for equipment pipe When the iSNS Server notification packets of reason, the IP address of the iSNS Server for equipment management wherein carried is obtained (IP2), and according to the IP address (IP2) of the iSNS Server for equipment management to the iSNS Server for equipment management (Switch B) initiates registration.
Switch B are managed the iSNS Client of registration.
By above description as can be seen that in the embodiment of the present application, the switching equipment for deploying iSNS Server determines For the iSNS Server of equipment management, edge switching equipment is noticed by broadcasting packet to the iSNS Client locally accessed The IP address of iSNS Server for equipment management can be to avoid drawing by disposing iSNS Server on switching equipment Enter independent application server, simplifies network deployment, reduce cost;In addition, edge switching equipment can be reported actively by broadcasting IP address of the text to iSNS Client notices for the iSNS Server of equipment management, realizes the automatic of iSNS Server It was found that and do not need that iSNS Client deployment is automatic to find protocol component, reduce the complexity of iSNS Client.
Fig. 4 is referred to, for a kind of structural schematic diagram of server discovery device provided in an embodiment of the present invention, wherein institute The switching equipment that device can be applied in above method embodiment is stated, as shown in figure 4, the server finds that device can wrap It includes:
Determination unit 410, for when the switching equipment deploys iSNS Server, determining for equipment management iSNS Server;
Transmission unit 420, for when the switching equipment is edge switching equipment, by broadcasting packet to local access The iSNS Client notices iSNS Server for equipment management IP address.
In an alternative embodiment, the iSCSI SAN networks include that an exchange for deploying iSNS Server is set Standby, which is edge switching equipment.
In an alternative embodiment, the iSCSI SAN networks include that multiple exchanges for deploying iSNS Server are set Standby, multiple switching equipment includes all edge switching equipments of the iSCSI SAN networks, alternatively, multiple switching equipment Including all edge switching equipments of the iSCSI SAN networks and at least one intermediate switching equipment.
In an alternative embodiment, it is disposed on the iSNS Server switching equipment for equipment management iSNS Server。
In an alternative embodiment, service virtual local area networks are configured on the switching equipment for deploying iSNS Server VLAN;The service vlan is VLAN where the iSNS Client that edge switching equipment locally accesses;
The transmission unit 420, specifically for being the switching equipment for deploying iSNS Server when the switching equipment When, iSNS Server notification packet of the broadcast for equipment management, the iSNS for equipment management in service vlan The IP address of the iSNS Server for equipment management is carried in Server notification packets;Wherein, described to deploy iSNS Common switching equipment between the switching equipment and iSNS Client of Server allows the broadcasting packet of service vlan to pass through.
In an alternative embodiment, it respectively deploys in the iSCSI SAN networks and is configured on the switching equipment of iSNS Server Control VLAN;
Please also refer to Fig. 5, the structural schematic diagram of device is found for another server provided in an embodiment of the present invention, such as Shown in Fig. 5, on the basis of server shown in Fig. 4 finds device, server shown in Fig. 5 finds that device further includes:
Unit 430 is elected, deploys iSNS Server for working as the switching equipment, and in the iSCSI SAN networks There are when multiple switching equipment for deploying iSNS Server, EB packet is sent in control VLAN;When receiving other friendships When the EB packet that exchange device is sent, believed according to the priority carried in the priority of itself and the EB packet received The switching equipment of highest priority is determined to be main iSNS Server by breath;
The determination unit 410, specifically for the main iSNS Server are determined as the iSNS for equipment management Server。
In an alternative embodiment, the transmission unit 420 is to deploy iSNS specifically for working as the switching equipment When the edge switching equipment of Server, equipment pipe is used for the iSNS Client notices locally accessed are described by broadcasting packet The IP address of the iSNS Server of reason.
In an alternative embodiment, the transmission unit 420 is specifically used for the broadcast in service vlan and is used for equipment management ISNS Server notification packets are carried for equipment management in the iSNS Server notification packets for equipment management ISNS Server IP address;Wherein, where service vlan is the iSNS Client that edge switching equipment locally accesses VLAN, the common switching equipment between edge switching equipment and iSNS Client allow the broadcasting packet of service vlan to pass through.
The function of each unit and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of module therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, the switching equipment for deploying iSNS Server determines the iSNS for being used for equipment management Server, iSNS of the edge switching equipment by broadcasting packet to the iSNS Client notices locally accessed for equipment management The IP address of Server, by disposing iSNS Server on switching equipment, can to avoid introducing independent application server, Simplify network deployment, reduces cost;In addition, the switching equipment of deployment iSNS Server can actively by broadcasting packet to IP address of the iSNS Client notices for the iSNS Server of equipment management, realizes the automatic discovery of iSNS Server, And the automatic discovery protocol component of iSNS Client deployment is not needed, reduce the complexity of iSNS Client.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and includes undocumented common knowledge in the art of the invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (16)

1. a kind of server finds method, it is applied to Internet Small Computer Systems Interface iSCSI storage area network SAN nets Switching equipment in network, the switching equipment in the network include edge switching equipment and intermediate switching equipment, and the edge exchanges Equipment is that locally there are the switching equipment of iSNS clients Client accesses, which is characterized in that the method includes:
The switching equipment for deploying internet store name service agreement iSNS server Ss erver is determined for equipment pipe The iSNS Server of reason;
Edge switching equipment is used for equipment management by broadcasting packet to described in the iSNS Client notices locally accessed The IP address of iSNS Server.
2. according to the method described in claim 1, it is characterized in that,
The iSCSI SAN networks include a switching equipment for deploying iSNS Server, which is side Edge switching equipment.
3. according to the method described in claim 1, it is characterized in that,
The iSCSI SAN networks include multiple switching equipment for deploying iSNS Server, and multiple switching equipment includes All edge switching equipments of the iSCSI SAN networks, alternatively, multiple switching equipment includes the iSCSI SAN networks All edge switching equipments and at least one intermediate switching equipment.
4. according to the method described in claim 2, it is characterized in that, the iSNS Server for equipment management are described The iSNS Server disposed on switching equipment.
5. according to the method described in claim 4, it is characterized in that, matching on the switching equipment for deploying iSNS Server It is equipped with service virtual local area networks VLAN;Where the service vlan is the iSNS Client that edge switching equipment locally accesses VLAN;
The edge switching equipment is used for equipment pipe by broadcasting packet to the iSNS Client notices locally accessed are described The IP address of the iSNS Server of reason, including:
The switching equipment for deploying iSNS Server broadcasts the iSNS Server for equipment management in service vlan Notification packet carries the iSNS for equipment management in the iSNS Server notification packets for equipment management The IP address of Server;Wherein, the common friendship between the switching equipment for deploying iSNS Server and iSNS Client Exchange device allows the broadcasting packet of service vlan to pass through.
6. according to the method described in claim 3, it is characterized in that, respectively deploying iSNS in the iSCSI SAN networks Control VLAN is configured on the switching equipment of Server;
The determination is used for the iSNS Server of equipment management, including:
The multiple switching equipment for deploying iSNS Server send EB packet in control VLAN;
When receiving the EB packet that other switching equipment are sent, according to the priority of itself and the EB packet received The switching equipment of highest priority is determined to be main iSNS Server, by the main iSNS by the precedence information of middle carrying Server is determined as the iSNS Server for equipment management.
7. according to the method described in claim 6, it is characterized in that, the edge switching equipment is connect by broadcasting packet to local The IP address of the iSNS Client notices iSNS Server for equipment management entered, including:
Each edge switching equipment in the multiple switching equipment for deploying iSNS Server, by broadcasting packet to originally The IP address of the iSNS Client notices iSNS Server for equipment management of ground access.
8. the method described according to claim 6 or 7, which is characterized in that it is described by broadcasting packet to the iSNS locally accessed IP address of the Client notices for the iSNS Server of equipment management, including:
ISNS Server notification packet of the broadcast for equipment management, the iSNS for equipment management in service vlan The IP address of the iSNS Server for equipment management is carried in Server notification packets;Wherein, service vlan is handed over for edge VLAN where the iSNS Client that exchange device locally accesses;Common exchange between edge switching equipment and iSNS Client sets The standby broadcasting packet for allowing service vlan passes through.
9. a kind of server finds device, it is applied to Internet Small Computer Systems Interface iSCSI storage area network SAN nets Switching equipment in network, the switching equipment in the network include edge switching equipment and intermediate switching equipment, and the edge exchanges Equipment is that locally there are the switching equipment of iSNS clients Client accesses, which is characterized in that the method includes:
Determination unit deploys internet store name service agreement iSNS server Ss erver for working as the switching equipment When, determine the iSNS Server for equipment management;
Transmission unit, for when the switching equipment is edge switching equipment, by broadcasting packet to described in locally accessing The IP address of the iSNS Client notices iSNS Server for equipment management.
10. device according to claim 9, which is characterized in that
The iSCSI SAN networks include a switching equipment for deploying iSNS Server, which is side Edge switching equipment.
11. device according to claim 9, which is characterized in that
The iSCSI SAN networks include multiple switching equipment for deploying iSNS Server, and multiple switching equipment includes All edge switching equipments of the iSCSI SAN networks, alternatively, multiple switching equipment includes the iSCSI SAN networks All edge switching equipments and at least one intermediate switching equipment.
12. device according to claim 10, which is characterized in that the iSNS Server for equipment management are institute State the iSNS Server disposed on switching equipment.
13. device according to claim 12, which is characterized in that on the switching equipment for deploying iSNS Server Configured with service virtual local area networks VLAN;Where the service vlan is the iSNS Client that edge switching equipment locally accesses VLAN;
The transmission unit, specifically for when the switching equipment is to deploy the switching equipment of iSNS Server, servicing ISNS Server notification packet of the broadcast for equipment management in VLAN, the iSNS Server notices for equipment management The IP address of the iSNS Server for equipment management is carried in message;Wherein, the friendship for deploying iSNS Server Common switching equipment between exchange device and iSNS Client allows the broadcasting packet of service vlan to pass through.
14. according to the devices described in claim 11, which is characterized in that respectively deploy iSNS in the iSCSI SAN networks Control VLAN is configured on the switching equipment of Server;
Described device further includes:
Unit is elected, deploys iSNS Server for working as the switching equipment, and exist in the iSCSI SAN networks more When a switching equipment for deploying iSNS Server, EB packet is sent in control VLAN;When receiving other switching equipment It, will be excellent according to the precedence information carried in the priority of itself and the EB packet received when the EB packet of transmission The first highest switching equipment of grade determines to be main iSNS Server;
The determination unit, specifically for the main iSNS Server to be determined as to the iSNS Server for equipment management.
15. device according to claim 14, which is characterized in that
The transmission unit, specifically for when the switching equipment is to deploy the edge switching equipment of iSNS Server, leading to Cross IP address of the broadcasting packet to the iSNS Client notices iSNS Server for equipment management locally accessed.
16. the device according to claims 14 or 15, which is characterized in that
The transmission unit is specifically used for iSNS Server notification packet of the broadcast for equipment management, institute in service vlan State the IP address that the iSNS Server for equipment management are carried in the iSNS Server notification packets for equipment management; Wherein, service vlan is VLAN, edge switching equipment and iSNS where the iSNS Client that edge switching equipment locally accesses Common switching equipment between Client allows the broadcasting packet of service vlan to pass through.
CN201810245668.0A 2018-03-23 2018-03-23 Server discovery method and device Active CN108390953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810245668.0A CN108390953B (en) 2018-03-23 2018-03-23 Server discovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810245668.0A CN108390953B (en) 2018-03-23 2018-03-23 Server discovery method and device

Publications (2)

Publication Number Publication Date
CN108390953A true CN108390953A (en) 2018-08-10
CN108390953B CN108390953B (en) 2021-02-26

Family

ID=63068172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810245668.0A Active CN108390953B (en) 2018-03-23 2018-03-23 Server discovery method and device

Country Status (1)

Country Link
CN (1) CN108390953B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022400A (en) * 2007-03-16 2007-08-22 杭州华为三康技术有限公司 Method and device for realizing resource distribution of network stroage system
CN101188688A (en) * 2007-11-19 2008-05-28 新奥特(北京)视频技术有限公司 A video and audio editing method based on IP-SAN storage
CN101207617A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 Method for data transmission of network storing system
CN101500005A (en) * 2008-02-03 2009-08-05 北京艾德斯科技有限公司 Method for access to equipment on server based on iSCSI protocol
US8359379B1 (en) * 2008-04-30 2013-01-22 Netapp, Inc. Method of implementing IP-based proxy server for ISCSI services
US20160212013A1 (en) * 2015-01-20 2016-07-21 Dell Products, Lp Validation process for a storage array network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207617A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 Method for data transmission of network storing system
CN101022400A (en) * 2007-03-16 2007-08-22 杭州华为三康技术有限公司 Method and device for realizing resource distribution of network stroage system
CN101188688A (en) * 2007-11-19 2008-05-28 新奥特(北京)视频技术有限公司 A video and audio editing method based on IP-SAN storage
CN101500005A (en) * 2008-02-03 2009-08-05 北京艾德斯科技有限公司 Method for access to equipment on server based on iSCSI protocol
US8359379B1 (en) * 2008-04-30 2013-01-22 Netapp, Inc. Method of implementing IP-based proxy server for ISCSI services
US20160212013A1 (en) * 2015-01-20 2016-07-21 Dell Products, Lp Validation process for a storage array network

Also Published As

Publication number Publication date
CN108390953B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
US10601728B2 (en) Software-defined data center and service cluster scheduling and traffic monitoring method therefor
US11237858B2 (en) Software-defined data center, and deployment method for service cluster therein
CN107925681B (en) System and method for load balancing in a distributed software defined network packet core system
EP2974139B1 (en) Allocating computing resources based upon geographic movement
JP5608794B2 (en) Hierarchical system, method, and computer program for managing a plurality of virtual machines
KR101989333B1 (en) Data forwarding method, device and system in software-defined networking
US20130232492A1 (en) Method and system for realizing virtual machine mobility
CN109561033B (en) Method and device for multicast replication in Overlay network
WO2014000292A1 (en) Migration method, serving control gateway and system for virtual machine across data centres
US9590824B1 (en) Signaling host move in dynamic fabric automation using multiprotocol BGP
EP2922246B1 (en) Method and data center network for cross-service zone communication
CN104584491A (en) System and method providing distributed virtual routing and switching (DVRS)
CN109587286A (en) A kind of equipment connection control method and device
EP2709405A1 (en) Method and system for mobility management in label switched networks
CN103986638A (en) Method and device for binding multiple public network links for ADVPN tunnel
CN105979202B (en) Data transmission method and device
CN102780701B (en) Access control method and equipment
CN107995124A (en) Traffic scheduling method and device
WO2014133025A1 (en) Communication system, host controller, network control method, and program
CN105591871B (en) A kind of method and apparatus of the automatic discovery Virtual Private Network branch node of configuration
WO2018113633A1 (en) Packet forwarding method, packet forwarding controller, bras, and computer storage medium
CN108390953A (en) A kind of server discovery method and device
WO2013170729A1 (en) Method and system for implementing virtual network layout
EP3562101A1 (en) Bras management method, packet forwarding method, packet forwarding controller, and bras
Xu et al. A SDN Based Scalable Network Across Data Centers

Legal Events

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