CN109347987A - Access request retransmission method and system - Google Patents

Access request retransmission method and system Download PDF

Info

Publication number
CN109347987A
CN109347987A CN201811493137.XA CN201811493137A CN109347987A CN 109347987 A CN109347987 A CN 109347987A CN 201811493137 A CN201811493137 A CN 201811493137A CN 109347987 A CN109347987 A CN 109347987A
Authority
CN
China
Prior art keywords
switching equipment
port
request
exit port
exit
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
CN201811493137.XA
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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201811493137.XA priority Critical patent/CN109347987A/en
Publication of CN109347987A publication Critical patent/CN109347987A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1014Server selection for load balancing based on the content of a request

Landscapes

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

Abstract

The invention discloses a kind of access request retransmission method and systems, it is related to data communication field, this method specifically includes: the first port of the first switching equipment receives the request of access server, and the request is sent to the first port of the second switching equipment by the second port of first switching equipment;Second switching equipment chooses corresponding exit port according to load balancing principle and forwards the request.The present invention realizes the load-balancing function of server cluster by two layers of vlan technology, configures simple and flexible, has good scalability and maintainability.

Description

Access request retransmission method and system
Technical field
The present invention relates to data communication field more particularly to a kind of access request retransmission method and systems.
Background technique
With the rapid development of scientific and technological productive forces and network, server application is in all trades and professions, and userbase, storage Data constantly expand, and the data of outside access are increasing, propose faster response, higher performance etc. to server and want It asks, the simple replacement upgrade server by hardware is only capable of solving the problems, such as in a short time, but can not thoroughly solve business Demand to server, and being lifted at for hardware performance is also rise exponentially times, server cluster technology in price The very good solution above problem.
Server cluster technology combines multiple servers, is externally rendered as a server, and server set The internal every server of group all has the status of equality, mutually backs up between server, not only has high scalability, high reliability simultaneously And it can be managed collectively.The high concurrent access and processing of business are largely realized using server cluster technology in production scene. The access request that client in network is initiated, by business can it is continuous in a manner of be transmitted to any clothes in server cluster Business device is handled and is responded, to ensure client to the smoothness and quickly access of specific implementation unaware.In consideration of it, how simple Singly, it efficiently realizes the load balancing retransmission technique to server cluster access request, and realizes the expansible of server cluster Property, it is those skilled in the art's urgent problem to be solved.
Summary of the invention
The present invention provides a kind of access request retransmission method and system, solves server cluster and realizes load-balancing function When configuration it is complicated, be not easy the problem of extending.
In a first aspect, the present invention provides a kind of access request retransmission method, comprising the following steps:
The first port of first switching equipment receives the request of access server, and the request is exchanged by described first The second port of equipment is sent to the first port of the second switching equipment;Wherein, the first port of first switching equipment and Second port and the first port of second switching equipment VLAN mark having the same;
Second switching equipment chooses corresponding exit port according to load balancing principle and forwards the request;Wherein, institute The exit port for stating the second switching equipment refers to the port of different server in connection server cluster, and each exit port has Different VLAN marks, and the VLAN mark of each exit port and the VLAN of the first port of second switching equipment are marked Know different.
Wherein, the second port of first switching equipment is Trunk type or Hybrid type;Second exchange The first port of equipment is Trunk type or Hybrid type;The exit port of second switching equipment be Trunk type or Person's Hybrid type.
Second switching equipment chooses corresponding exit port according to load balancing principle and forwards the request, comprising: such as The operating mode of server cluster described in fruit is unicast, and second switching equipment is calculated according to the five-tuple information of the request Cryptographic Hash, the cryptographic Hash instruction forward the exit port of the request;Wherein, the exit port is UP state;If the clothes The be engaged in operating mode of device cluster is multicast, and second switching equipment is by the request received from all outlets of UP state Mouth carries out multicast forwarding.
Second switching equipment is two-layer switching equipment or three-layer switching equipment.
The stacking system that second switching equipment is made of at least two member's switching equipment.
Second aspect, the present invention provide a kind of access request repeater system, specifically include: the first switching equipment and second is handed over Exchange device;
First switching equipment, for receiving asking for access server by the first port of first switching equipment It asks, and the request is sent to the first end of second switching equipment by the second port of first switching equipment Mouthful;Wherein, the first port and second port of first switching equipment and the first port of second switching equipment tool There is identical VLAN to identify;
Second switching equipment forwards the request for choosing corresponding exit port according to load balancing principle;Its In, the exit port refers to the port of different server in connection server cluster, and each exit port has different VLAN mark, and the VLAN mark of each exit port and the VLAN of the first port of second switching equipment are identified not Together.
Wherein, the second port of first switching equipment is Trunk type or Hybrid type;Second exchange The first port of equipment is Trunk type or Hybrid type;The exit port of second switching equipment be Trunk type or Person's Hybrid type.
Second switching equipment, is specifically used for: if the operating mode of the server cluster is unicast, according to described The five-tuple information of request calculates cryptographic Hash, and the cryptographic Hash instruction forwards the exit port of the request;Wherein, the exit port For UP state;If the operating mode of the server cluster is multicast, by the request received owning from UP state Exit port carries out multicast forwarding.
Second switching equipment is two-layer switching equipment or three-layer switching equipment.
The stacking system that second switching equipment is made of at least two member's switching equipment.
In conclusion the present invention by two layers of vlan technology, realizes and turns to the load balancing of server cluster access request Function is sent out, configuration simple and flexible is easy to extend and safeguard, is able to ascend the overall performance and response speed of server cluster.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of application scenarios schematic diagram of access request retransmission method provided in an embodiment of the present invention;
Fig. 2 shows a kind of flow charts of access request retransmission method provided in an embodiment of the present invention;
Fig. 3 shows a kind of schematic diagram of access request repeater system provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is right below The detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit the range of claimed invention, but It is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not making creativeness Every other embodiment obtained, shall fall within the protection scope of the present invention under the premise of labour.
Below by specific embodiment, it is described in detail respectively.
Embodiment one
The embodiment of the invention provides a kind of access request retransmission methods, are as shown in Figure 1 the application of the embodiment of the present invention Schematic diagram of a scenario, by network connection client, the port B of the first switching equipment and second is handed over the port A of the first switching equipment The port C of exchange device is connected.Exit port P11, P12 ... the P1N of second switching equipment is separately connected the clothes in server cluster Business device 1, server 2 ... server N, wherein N is positive integer, and exit port P11, P12 ... P1N is UP (connection) shape State.
As shown in Fig. 2, the access request retransmission method of the embodiment of the present invention, includes the following steps:
Step S201, the first port of the first switching equipment receive the request of access server, and the request is passed through institute The second port for stating the first switching equipment is sent to the first port of the second switching equipment.
Wherein, the first port and second port of first switching equipment and the first end of second switching equipment Mouth VLAN mark having the same.The second port of first switching equipment is Trunk type or Hybrid type;It is described The first port of second switching equipment is Trunk type or Hybrid type.This step is illustrated in conjunction with Fig. 1, in Fig. 1 The port A and port B of the first switching equipment and the port C VLAN having the same of the second switching equipment identify, such as VLAN100.The port B of first switching equipment can be Trunk type or Hybrid type;The port C of second switching equipment It can be Trunk type or Hybrid type.
Step S202, second switching equipment are asked according to the corresponding exit port forwarding of load balancing principle selection It asks.
Wherein, the exit port of second switching equipment refers to the port of different server in connection server cluster, often There is a exit port different VLAN to identify, and the VLAN mark of each exit port and second switching equipment The VLAN of first port identifies different.The exit port of second switching equipment is Trunk type or Hybrid type.It is described Second switching equipment can be two-layer switching equipment or three-layer switching equipment, be also possible to by least two member's switching equipment The stacking system of composition.As there is exit port P11, P12 ... the P1N of the second switching equipment different VLAN to identify;Second hands over Exit port P11, P12 ... the P1N of exchange device can be Trunk type or Hybrid type.
In the present embodiment, if the operating mode of the server cluster be unicast, second switching equipment according to The five-tuple information of the request calculates cryptographic Hash, and the cryptographic Hash instruction forwards the exit port of the request;Wherein, it is described go out Port is UP state.The five-tuple of the request refers to source IP address, purpose IP address, the source MAC, purpose of the request MAC Address and transport layer protocol.The calculation method of the cryptographic Hash can by calculating MD5 value to the five-tuple of the request, And modulus operation is carried out to the number of the MD5 value and exit port, enable cryptographic Hash to indicate to forward the outlet of the request Mouthful.For example, obtain the second switching equipment UP state exit port P11, P12 ... P1N, be respectively set exit port P11, The index value of P12 ... P1N is 0,1 ... N-1.After the port C of second switching equipment receives the request of access server, root MD5 value is calculated according to the five-tuple information of the request, and the exit port number N of the MD5 value and UP state is subjected to modulus fortune Calculation obtains cryptographic Hash, which is the outlet port index value for forwarding the request.If the work of the server cluster Mode is multicast, and the request received is carried out multicast from all exit ports of UP state and turned by second switching equipment Hair.
In the present embodiment, the second switching equipment as shown in Figure 1, in addition to port C and exit port P11, P12 ... P1N Outside, there can also be other ports.In practical applications, if you need to the server in expansion service device cluster, the service that will be newly increased Device is connected to other ports of the second switching equipment, and configures the VLAN mark of corresponding exit port.
Server is connected to the second switching equipment or stacks the exit port of exchange system by the present embodiment, passes through setting VLAN can realize the load balancing forwarding capability to server cluster access request.When server cluster is unicast mode When, identical server is requested assignment to by what hash algorithm can make same message flow, improves the processing effect of server Rate.This method configures simple and flexible, has good scalability and maintainability.
Embodiment two
The embodiment of the invention provides a kind of access request repeater systems 30, and schematic diagram is as shown in figure 3, specifically include: First switching equipment 301, the second switching equipment 302;
First switching equipment 301 receives access service for the first port by first switching equipment 301 The request of device, and the request is sent to second switching equipment by the second port of first switching equipment 301 302 first port.
Wherein, the first port and second port of first switching equipment 301 and second switching equipment 302 First port VLAN mark having the same.The second port is Trunk type or Hybrid type;Second exchange The first port of equipment 302 is Trunk type or Hybrid type.
Second switching equipment 302 forwards the request for choosing corresponding exit port according to load balancing principle.
Wherein, the exit port refers to the port of different server in connection server cluster, each exit port tool There are different VLAN marks, and the VLAN of the VLAN mark and the first port of second switching equipment of each exit port Mark is different.The exit port is Trunk type or Hybrid type.Second switching equipment 302 can be two layers of friendship Exchange device or three-layer switching equipment are also possible to the stacking system being made of at least two member's switching equipment.
In the present embodiment, second switching equipment 302, if the operating mode specifically for server cluster is single It broadcasts, cryptographic Hash is calculated according to the five-tuple information of the request, the cryptographic Hash instruction forwards the exit port of the request;Its In, the exit port is UP state.If the operating mode of the server cluster be multicast, by the request received from All exit ports of UP state carry out multicast forwarding.
Server is connected to the second switching equipment or stacks the exit port of exchange system by the present embodiment, passes through setting VLAN can realize the load balancing forwarding capability to server cluster access request.When server cluster is unicast mode When, identical server is requested assignment to by what hash algorithm can make same message flow, improves the processing effect of server Rate.This method configures simple and flexible, has good scalability and maintainability.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of access request retransmission method, which is characterized in that the described method includes:
The first port of first switching equipment receives the request of access server, and the request is passed through first switching equipment Second port be sent to the first port of the second switching equipment;Wherein, the first port and second of first switching equipment The first port of port and second switching equipment VLAN mark having the same;
Second switching equipment chooses corresponding exit port according to load balancing principle and forwards the request;Wherein, described The exit port of two switching equipment refers to the port of different server in connection server cluster, and each exit port has difference VLAN mark, and the VLAN mark of the VLAN mark of each exit port and the first port of second switching equipment is not Together.
2. the method as described in claim 1, which is characterized in that the second port of first switching equipment is Trunk type Or Hybrid type;The first port of second switching equipment is Trunk type or Hybrid type;Described second hands over The exit port of exchange device is Trunk type or Hybrid type.
3. the method as described in claim 1, which is characterized in that second switching equipment is according to the selection pair of load balancing principle The exit port answered forwards the request, comprising: if the operating mode of the server cluster is unicast, second exchange is set Standby to calculate cryptographic Hash according to the five-tuple information of the request, the cryptographic Hash instruction forwards the exit port of the request;Wherein, The exit port is UP state;If the operating mode of the server cluster is multicast, second switching equipment will be received The request arrived carries out multicast forwarding from all exit ports of UP state.
4. the method as described in claim 1, which is characterized in that second switching equipment is two-layer switching equipment or three layers Switching equipment.
5. the method as described in claim 1, which is characterized in that second switching equipment is set by least two member's exchanges The stacking system of standby composition.
6. a kind of access request repeater system, which is characterized in that the system comprises: the first switching equipment and the second exchange are set It is standby;
First switching equipment receives the request of access server for the first port by first switching equipment, And the request is sent to the first port of second switching equipment by the second port of first switching equipment;Its In, the first port and second port of first switching equipment and the first port of second switching equipment are with identical VLAN mark;
Second switching equipment forwards the request for choosing corresponding exit port according to load balancing principle;Wherein, institute The port that exit port refers to different server in connection server cluster is stated, there is each exit port different VLAN to mark Know, and the VLAN mark of each exit port is different from the VLAN of the first port of second switching equipment mark.
7. system as claimed in claim 6, which is characterized in that the second port of first switching equipment is Trunk type Or Hybrid type;The first port of second switching equipment is Trunk type or Hybrid type;Described second hands over The exit port of exchange device is Trunk type or Hybrid type.
8. system as claimed in claim 6, which is characterized in that second switching equipment is specifically used for: if the service The operating mode of device cluster is unicast, calculates cryptographic Hash, the cryptographic Hash instruction forwarding according to the five-tuple information of the request The exit port of the request;Wherein, the exit port is UP state;If the operating mode of the server cluster is multicast, The request received is subjected to multicast forwarding from all exit ports of UP state.
9. system as claimed in claim 6, which is characterized in that second switching equipment is two-layer switching equipment or three layers Switching equipment.
10. system as claimed in claim 6, which is characterized in that second switching equipment is by least two member's exchanges The stacking system of equipment composition.
CN201811493137.XA 2018-12-07 2018-12-07 Access request retransmission method and system Pending CN109347987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811493137.XA CN109347987A (en) 2018-12-07 2018-12-07 Access request retransmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811493137.XA CN109347987A (en) 2018-12-07 2018-12-07 Access request retransmission method and system

Publications (1)

Publication Number Publication Date
CN109347987A true CN109347987A (en) 2019-02-15

Family

ID=65303608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811493137.XA Pending CN109347987A (en) 2018-12-07 2018-12-07 Access request retransmission method and system

Country Status (1)

Country Link
CN (1) CN109347987A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809021A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet link converging method
CN1835467A (en) * 2006-04-14 2006-09-20 杭州华为三康技术有限公司 Network appiliance and method of realizing service sharing
CN101404619A (en) * 2008-11-17 2009-04-08 杭州华三通信技术有限公司 Method for implementing server load balancing and a three-layer switchboard
CN102209040A (en) * 2011-07-12 2011-10-05 杭州华三通信技术有限公司 Multi-network-port-based load sharing method and device
CN102307136A (en) * 2011-07-06 2012-01-04 杭州华三通信技术有限公司 Method for processing message and device thereof
CN102594668A (en) * 2012-02-03 2012-07-18 福建星网锐捷网络有限公司 Message forwarding method, device and exchange equipment
CN103354529A (en) * 2013-07-10 2013-10-16 杭州华三通信技术有限公司 Path selecting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809021A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet link converging method
CN1835467A (en) * 2006-04-14 2006-09-20 杭州华为三康技术有限公司 Network appiliance and method of realizing service sharing
CN101404619A (en) * 2008-11-17 2009-04-08 杭州华三通信技术有限公司 Method for implementing server load balancing and a three-layer switchboard
CN102307136A (en) * 2011-07-06 2012-01-04 杭州华三通信技术有限公司 Method for processing message and device thereof
CN102209040A (en) * 2011-07-12 2011-10-05 杭州华三通信技术有限公司 Multi-network-port-based load sharing method and device
CN102594668A (en) * 2012-02-03 2012-07-18 福建星网锐捷网络有限公司 Message forwarding method, device and exchange equipment
CN103354529A (en) * 2013-07-10 2013-10-16 杭州华三通信技术有限公司 Path selecting method and device

Similar Documents

Publication Publication Date Title
CN110098992B (en) Private virtual local area network for transporting peer-to-peer traffic between switches
CN106953788B (en) virtual network controller and control method
CN102986172B (en) Virtual Cluster exchanges
CN102647355B (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
US9407540B2 (en) Distributed service chaining in a network environment
US9930149B2 (en) Multicast traffic distribution in a multi-pod network environment
US9819574B2 (en) Concerted multi-destination forwarding in a joint TRILL fabric and VXLAN/IP fabric data center
CN110557332B (en) Network construction method, system and routing equipment
US10630508B2 (en) Dynamic customer VLAN identifiers in a telecommunications network
CN103763367A (en) Method and system for designing distributed virtual network in cloud calculating data center
CN104468358A (en) Message forwarding method and device of distributive virtual switch system
CN103477588A (en) Method and system for classification and management of inter-blade network traffic in a blade server
CN110324159B (en) Link configuration method, controller and storage medium
US20130297752A1 (en) Provisioning network segments based on tenant identity
CN110417924A (en) Message processing method and distributed apparatus in distributed apparatus
CN102447638A (en) Load balancing method and forwarding apparatus
CN108471629A (en) The control method of business service quality, equipment and system in transmission network
CN108702316A (en) A kind of resource allocation methods and device of VNF
US10193758B2 (en) Communication via a connection management message that uses an attribute having information on queue pair objects of a proxy node in a switchless network
CN109729019A (en) The method for limiting speed and device of private line service in a kind of EVPN networking
CN107566237A (en) A kind of data message processing method and device
CN108173782A (en) The method, apparatus and storage medium of transmitting data stream in virtual private cloud
JP6070700B2 (en) Packet transfer system, control device, packet transfer method and program
CN116319296A (en) Method and device for deploying data centers in cross-SD-WAN fusion mode
WO2016095142A1 (en) Data forwarding method, device and system in software-defined networking (sdn)

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: 20190215

RJ01 Rejection of invention patent application after publication