CN105991466B - Information backup method and device - Google Patents

Information backup method and device Download PDF

Info

Publication number
CN105991466B
CN105991466B CN201510128048.5A CN201510128048A CN105991466B CN 105991466 B CN105991466 B CN 105991466B CN 201510128048 A CN201510128048 A CN 201510128048A CN 105991466 B CN105991466 B CN 105991466B
Authority
CN
China
Prior art keywords
service board
message
user information
user
main service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510128048.5A
Other languages
Chinese (zh)
Other versions
CN105991466A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201510128048.5A priority Critical patent/CN105991466B/en
Publication of CN105991466A publication Critical patent/CN105991466A/en
Application granted granted Critical
Publication of CN105991466B publication Critical patent/CN105991466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing

Landscapes

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

Abstract

The application provides an information backup method and a device, the method is applied to network switching equipment comprising at least two service boards, one of the two service boards is used as a main service board, and the other service boards are used as standby service boards, the method comprises the following steps: the main service board receives a discovery message sent by a user side; when the user information carried in the discovery message is judged to pass the user side authentication, the main service board stores the user information; and the main service board sends the user information to at least one standby service board for storage. The method and the device can effectively simplify the internet processing flow, reduce the burden of the network switching equipment and the server, and improve the operation efficiency of the network switching equipment and the server.

Description

Information backup method and device
Technical Field
The present application relates to the field of network technologies, and in particular, to an information backup method and apparatus.
Background
Currently, when a Personal Computer (PC) at a user end is going to access the internet, user information of the PC is usually authenticated through a main service board in a network switching device. After the authentication is passed, the server allocates an Internet Protocol (IP) address to the PC, and the PC performs Internet access based on the IP address. In the process, the main service board records the user information and the IP address allocated by the server. When the validity period of the IP address is over, the PC needs to continue using the IP address, a continuation message is sent to the main service board, the main service board determines that the PC does not need to be re-authenticated any more based on the stored user information, and requests the server to continue using the IP address.
When the main service board is abnormal, the stored user information is lost, the continue message sent by the PC is transferred to the standby service board for processing, and the standby service board needs to authenticate the PC again, so that the burden of the network switching equipment is increased. Especially when there are multiple PCs, re-authentication for each PC significantly increases the burden on the network switching device and the server, reducing the PC's efficiency of surfing the internet.
Disclosure of Invention
In view of the above, the present application provides an information backup method applied to a network switching device including at least two service boards, where one of the two service boards is used as a main service board, and the other is used as a standby service board, the method including:
the method comprises the steps that a main service board receives a discovery message which is sent by a user side and used for searching a server capable of distributing IP addresses, wherein the discovery message carries user information;
the main service board sends the user information to an authentication device or an authentication server for authentication;
when the user information is judged to pass the user side authentication, the main service board stores the user information;
and the main service board sends the user information to at least one standby service board for storage.
The application also provides an information backup device, which comprises at least two service boards, wherein the service boards comprise:
the message receiving module is used for receiving a discovery message which is sent by a user side and used for searching a server capable of allocating an IP address, wherein the discovery message carries user information;
the authentication module is used for sending the user information to authentication equipment or an authentication server for authentication by the main service board;
the storage module is used for storing the user information when the user information is judged to pass the user side authentication;
and the sending module is used for sending the user information to at least one other service board for storage.
When the current main service board in the network switching equipment receives the discovery message sent by the user side and the user side passes the authentication, the current main service board stores the user information of the user side and sends the user information to other service boards for backup. Therefore, when the message is processed by other service boards when the current main service board is abnormal, the user information is stored, so that the user side does not need to be authenticated again. Therefore, the burden of the network switching equipment and the server is reduced, the operation flow of surfing the Internet is simplified, and the processing efficiency of the network switching equipment and the server is improved.
Drawings
FIG. 1 is a schematic diagram of an application scenario of an embodiment of information backup according to the present invention;
FIG. 2 is a flow chart illustrating an information backup method according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for information backup according to another embodiment of the present application;
FIG. 4 is a diagram illustrating basic hardware of an information backup apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an information backup apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the prior art, when the problem of how to ensure normal internet access of a user when the main service board is abnormal is solved, a standby service board is adopted to replace the main service board to process a message from a PC. Because the user information of the PC is not stored in the standby service board, when the user continues to contract for the used IP address, the standby service board needs to authenticate the PC again based on the user information in the contract message; moreover, after the main service board is recovered to be normal and is used as the main service board again, the PC which passes authentication for the first time on the standby service board also needs to be re-authenticated in the abnormal period, so that the burden of the network switching equipment and the server is increased, and the efficiency of the PC for surfing the internet is reduced.
In view of the above problems, embodiments of the present application provide an information backup method and apparatus, which backup authenticated user information to a main service board and at least one other service board, so that when a PC is an IP address renewal, renewal can be achieved through the standby service board without authentication.
Referring to fig. 1, a schematic view of an application scenario of the authentication embodiment of the present application is shown, where the architecture includes: at least one PC11, a network switching device 12, such as a router or switch, connected to the PC11, the network switching device 12 including at least one master control board and at least two service boards, the network switching device 12 being connected to at least one server. For convenience of illustration, only one PC11 is shown in fig. 1, and only one master control board 121 and two service boards are shown in the network switching device 12: a main service board 122 and a standby service board 123, and only two servers 13 and 14 are shown.
Referring to fig. 2, a flowchart of an embodiment of an information backup method shown in an embodiment of the present application is described from a main service board side, where a specific processing procedure is as follows:
step 201, receiving a discovery message sent by a PC.
The discovery (discover) message is used to find a server capable of allocating an IP address, where the discovery message carries user information of the PC, and the user information may include a user name, a Media Access Control (MAC) address of the PC, link information, and the like.
Step 202, authenticating the PC based on the user information in the discovery message, and if the authentication is passed, storing the user information.
Step 203, the user information is sent to at least one other standby service board for storage through the main control board.
Preferably, in this step, the user information is sent to all other standby service boards for storage, so that when the other standby service boards receive the continuation message as a new main service board, the stored user information can be used without re-authentication of the PC, thereby improving the operating efficiency of the network switching device and the server.
Referring to fig. 3, a flowchart of an information backup method shown in another embodiment of the present application is shown, and with reference to fig. 1, the servers 13 and 14 in this embodiment use a Dynamic Host Configuration Protocol (DHCP) server as an example to perform a specific processing procedure as follows:
step 301, the main service board 122 receives a DHCP discover message sent by the PC11, where the message carries the user information of the PC 11.
In particular, the user information may comprise a user name, a unique identification of the PC11, e.g. a MAC address, and also link information of the message, e.g. from which interface.
In the current network application, the internet access can be usually realized by combining the DHCP and the authentication, so that a user can dynamically acquire an IP address, and meanwhile, an operator can conveniently perform charging statistics on a PC through a user name.
Step 302, the main service board 122 authenticates the PC based on the user information in the DHCP discover message.
In an alternative implementation, the main service board 122 may send the user information to an authentication device or an authentication server (not shown) for authentication, and the authentication server may authenticate the user by: authentication is performed based on the first few bits of the MAC address, i.e., a PC whose MAC address belongs to some set network segment is authenticated.
The discovery message is used by the PC11 to find a server that can provide an IP address.
Step 303, if the authentication is passed, the main service board 122 stores the user information, and sends the DHCP discover message to the DHCP server 13 and the DHCP server 14.
In this step, the main service board 122 sends the DHCP message to all the connected servers.
In step 304, the main service board 122 first receives a DHCP offer (offer) message returned by the DHCP server 13, and forwards the offer message to the PC 11.
On a first come principle, regardless of how many servers the network switching device 12 is connected to, the main service board 122 selects the first received offer message to send to the PC 11.
Step 305, the main service board 122 receives a request message carrying user information sent by the PC11, and queries the stored user information table based on the user unique identifier in the user information.
If the corresponding user information is found, it indicates that the user has been authenticated, and step 306 is executed.
The request message carries the user information of the PC11, and specifically, the main service board 122 may search whether the authentication has been passed based on the MAC address in the user information. The request message is used for the PC11 to request assignment of an IP address to the DHCP server 13.
In step 306, the main service board 122 forwards the request message to the DHCP server 13.
Step 307, the main service board 122 receives an acknowledgement (ack) packet returned by the DHCP server 13, where the acknowledgement packet carries an IP address allocated by the DHCP server 13 to the PC11, and the main service board 122 forwards the acknowledgement packet to the PC 11.
And 308, the PC receives the IP address and carries out Internet surfing based on the IP address.
Step 309, the main service board 122 sends the stored user information of the PC11 to other standby service boards through the main control board 121 for storage.
In order to ensure the security and stability of the storage of the user information, the main control board 121 preferably sends the user information to each standby service board for storage. Although only one standby service board 123 is shown in fig. 1, if there are multiple standby service boards, the main control board 121 may send the user information to each standby service board for storage.
The IP address usually has a validity period, which may be several minutes to one year, and when the validity period expires, the PC11 needs to continue to use the IP address to surf the internet, in which case the PC11 needs to send a renewal message to the main service board 122, and if the main service board 122 is currently abnormal, the following steps are performed:
in step 310, the main service board 122 redirects the received DHCP continuation message to the standby service board 123.
The DHCP offer message carries the user information of the PC11, and the exception of the main service board 122 generally refers to the case where the CPU is abnormal, and the hardware, such as the port, can still operate normally, so that the main service board 122 redirects the offer message to the standby service board 123 by default, and the standby service board 123 performs the same function as a new main service board. If there are several standby service boards, one standby service board is selected as the new main service board according to the preset sequence.
Step 311, the standby service board 123 queries the stored user information table based on the unique user identifier in the received continuation message, and if the corresponding user information can be found, which indicates that the PC has passed the authentication, sends the continuation message to the DHCP server 13.
In this step, the standby service board 123, as a new main service board, may also query the user information table based on the MAC address in the user information to determine whether the PC has passed the authentication.
If the corresponding user information is not found, the PC needs to be re-authenticated.
Step 312, the standby service board 123 receives the confirmation packet returned by the DHCP server 13, where the packet carries the IP address originally allocated to the PC11, and the standby service board 123 forwards the confirmation packet to the PC 11.
Step 313, the PC11 receives the confirmation message and realizes continuous internet access based on the IP address provided in the confirmation message.
Corresponding to the embodiment of the information backup method, the application also provides an embodiment of an information backup device.
The embodiment of the information backup device can be applied to network switching equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory by the CPU of the device where the device is located and running the computer program instructions. From a hardware aspect, as shown in fig. 4, a hardware structure diagram of a device in which the information backup apparatus of the present application is located is shown, and in addition to the CPU, the memory, and the nonvolatile memory shown in fig. 4, the device in which the apparatus is located in the embodiment may generally include other hardware.
Please refer to fig. 5, which is a schematic structural diagram of an information backup apparatus according to an embodiment of the present application. The information backup device comprises at least two service boards, wherein each service board comprises: a message receiving module 501, a storage module 502 and a sending module 503, wherein:
a message receiving module 501, configured to receive a discovery message sent by a user end;
a storage module 502, configured to store the user information when it is determined that the user side authentication passes based on the user information carried in the discovery packet;
a sending module 503, configured to send the user information to at least one other service board for storage.
In an optional implementation manner, the service board further includes:
a forwarding module 504, configured to forward the discovery packet to all connected servers, and forward an earliest received providing packet from a server to the user side;
the message receiving module 501 is further configured to receive a request message sent by a user end and used for requesting allocation of an IP address;
the forwarding module 504 is further configured to send the request packet to the server that returns the provided packet when it is determined that the user side passes authentication based on the user information carried in the request packet;
the forwarding module 504 is further configured to receive a confirmation message sent by the server and carrying the allocated IP address, and forward the confirmation message to the user side.
In an optional implementation manner, the service board further includes:
a redirection module 505, configured to redirect, when an exception occurs, a continuation message received from a user side to another service board;
a searching module 506, configured to search, when the redirected continuation message is received, whether corresponding user information is stored based on the unique user identifier in the continuation message;
the forwarding module 504 is further configured to forward the continuation message to a server providing the IP address if the searching module 506 finds the corresponding user information;
the forwarding module 504 is further configured to receive a confirmation message carrying the IP address, which is returned by the server based on the renewal message, and forward the confirmation message to the user side.
For the embodiment of the information backup apparatus shown in fig. 5, the specific implementation process thereof may refer to the description of the foregoing method embodiment, and is not described herein again.
It can be seen from the embodiments of the above method and apparatus that, when the current main service board in the network switching device of the present application receives the discovery message sent by the user side and the user side passes the authentication, the current main service board stores the user information of the user side and sends the user information to other service boards for backup. Therefore, when the message is processed by other service boards when the current main service board is abnormal, the user information is stored, so that the user side does not need to be authenticated again. Therefore, the burden of the network switching equipment and the server is reduced, the operation flow of surfing the Internet is simplified, and the processing efficiency of the network switching equipment and the server is improved.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (7)

1. An information backup method applied to a network switching device comprising at least two service boards, one of the two service boards being used as a main service board, and the other being used as a standby service board, the method comprising:
the method comprises the steps that a main service board receives a discovery message sent by a user side, wherein the discovery message carries user information;
the main service board sends the user information to an authentication device or an authentication server for authentication;
when the user information is judged to pass the user side authentication, the main service board stores the user information;
and the main service board sends the user information to at least one standby service board for storage.
2. The information backup method according to claim 1, wherein before the main service board sends the user information to at least one of the standby service boards for storage, the method further comprises:
the main service board forwards the discovery message to all servers connected with the network switching equipment, and forwards the earliest received providing message from one server to the user side;
the main service board receives a request message which is sent by the user side and used for requesting to distribute an Internet Protocol (IP) address;
if the user side is judged to pass the authentication based on the user information carried in the request message, the main service board sends the request message to the server which returns the providing message;
and the main service board receives a confirmation message which is sent by the server and carries the allocated IP address, and sends the confirmation message to the user side.
3. The information backup method according to claim 2, further comprising:
when the main service board is abnormal, redirecting the received continuation message from the user side to the standby service board;
the standby service board is used as a new main service board to search whether corresponding user information is stored or not based on the user unique identifier in the appointment message, and if yes, the appointment message is forwarded to a server providing the IP address;
and the new main service board receives a confirmation message which is returned by the server and carries the IP address, and forwards the confirmation message to the user side.
4. The information backup method according to claim 3, wherein the user unique identifier is a MAC address of the user side.
5. An information backup device, comprising at least two service boards, wherein the service boards comprise:
the message receiving module is used for receiving a discovery message sent by a user side, wherein the discovery message carries user information;
the authentication module is used for sending the user information to authentication equipment or an authentication server for authentication by the main service board;
the storage module is used for storing the user information when the user information is judged to pass the user side authentication;
and the sending module is used for sending the user information to at least one other service board for storage.
6. The information backup device of claim 5, wherein the service board further comprises:
a forwarding module, configured to forward the discovery packet to all connected servers, and forward an earliest received providing packet from one of the servers to the user side;
the message receiving module is also used for receiving a request message which is sent by the user side and used for requesting to distribute the IP address;
the forwarding module is further configured to send the request message to the server returning the provided message when the user side is determined to pass authentication based on the user information carried in the request message;
the forwarding module is further configured to receive a confirmation packet sent by the server and carrying the allocated IP address, and forward the confirmation packet to the user side.
7. The information backup device of claim 6, wherein the service board further comprises:
the redirection module is used for redirecting the received continuous offer message from the user side to one other service board when the abnormity occurs;
the searching module is used for searching whether corresponding user information is stored or not based on the unique user identifier in the appointment message when the redirected appointment message is received;
the forwarding module is further configured to forward the continuation message to a server providing the IP address if the searching module finds the corresponding user information;
the forwarding module is further configured to receive a confirmation packet carrying the IP address, which is returned by the server based on the continuation packet, and forward the confirmation packet to the user side.
CN201510128048.5A 2015-03-23 2015-03-23 Information backup method and device Active CN105991466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510128048.5A CN105991466B (en) 2015-03-23 2015-03-23 Information backup method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510128048.5A CN105991466B (en) 2015-03-23 2015-03-23 Information backup method and device

Publications (2)

Publication Number Publication Date
CN105991466A CN105991466A (en) 2016-10-05
CN105991466B true CN105991466B (en) 2020-03-06

Family

ID=57040437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510128048.5A Active CN105991466B (en) 2015-03-23 2015-03-23 Information backup method and device

Country Status (1)

Country Link
CN (1) CN105991466B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616337A (en) * 2018-04-26 2018-10-02 新华三信息安全技术有限公司 A kind of link list item synchronous method, device and equipment
CN109995665B (en) * 2019-03-29 2022-03-22 新华三信息安全技术有限公司 Service data storage method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217477A (en) * 2008-01-10 2008-07-09 杭州华三通信技术有限公司 A method, device and router to realize DHCP lease smoothing switching in VRRP backup group
CN102142978A (en) * 2010-08-04 2011-08-03 华为技术有限公司 Data backup transmission processing method, device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217477A (en) * 2008-01-10 2008-07-09 杭州华三通信技术有限公司 A method, device and router to realize DHCP lease smoothing switching in VRRP backup group
CN102142978A (en) * 2010-08-04 2011-08-03 华为技术有限公司 Data backup transmission processing method, device and system

Also Published As

Publication number Publication date
CN105991466A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US9509615B2 (en) Managing link aggregation traffic in a virtual environment
US8605582B2 (en) IP network system and its access control method, IP address distributing device, and IP address distributing method
EP2824872B1 (en) Host providing system and communication control method
US10469532B2 (en) Preventing DNS cache poisoning
US10855682B2 (en) Virtual address for controller in a controller cluster
US20060235972A1 (en) System, network device, method, and computer program product for active load balancing using clustered nodes as authoritative domain name servers
US8219690B2 (en) Recording medium that stores internet-protocol (IP) address assignment control program, IP address assignment control apparatus, and IP address assignment control method
CN109525684B (en) Message forwarding method and device
US9686178B2 (en) Configuring link aggregation groups to perform load balancing in a virtual environment
JP2012533792A (en) Managing instant messaging sessions
US10567492B1 (en) Methods for load balancing in a federated identity environment and devices thereof
US9432474B2 (en) Control method, control device, and processor in software defined network
JP6618610B2 (en) Routing management
CN108234422B (en) Resource scheduling method and device
CN106686592B (en) Network access method and system with authentication
CN102857547B (en) The method and apparatus of distributed caching
CN109743357B (en) Method and device for realizing service access continuity
CN105991466B (en) Information backup method and device
US8996607B1 (en) Identity-based casting of network addresses
CN106254576B (en) Message forwarding method and device
CN109451047B (en) Data transmission method, device, equipment and storage medium of monitoring alarm system
US8730811B2 (en) Managing network traffic
KR100942719B1 (en) Apparatus having Dynamic Host Configuration Protocol - Snooping function
KR101361513B1 (en) Computer and control method thereof
CN110838981B (en) Method, device and equipment for user internet route selection and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant