WO2021135795A1 - 报文处理方法、中继设备、系统和存储介质 - Google Patents
报文处理方法、中继设备、系统和存储介质 Download PDFInfo
- Publication number
- WO2021135795A1 WO2021135795A1 PCT/CN2020/133339 CN2020133339W WO2021135795A1 WO 2021135795 A1 WO2021135795 A1 WO 2021135795A1 CN 2020133339 W CN2020133339 W CN 2020133339W WO 2021135795 A1 WO2021135795 A1 WO 2021135795A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- dhcp
- predetermined
- client
- server
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 30
- 230000004044 response Effects 0.000 claims abstract description 85
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000012790 confirmation Methods 0.000 claims description 38
- 238000012545 processing Methods 0.000 claims description 33
- 230000032683 aging Effects 0.000 claims description 13
- 238000010276 construction Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 17
- 238000007726 management method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 238000006467 substitution reaction Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/562—Brokering proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
Definitions
- the embodiment of the present invention relates to the field of communication technology, and specifically relates to a message processing method, a relay device, a system, and a storage medium.
- DHCP Dynamic Host Configuration Protocol
- a relay device as a network device with a relay function, needs to forward a large number of messages sent from a DHCP client that has not successfully gone online after being turned on and restarted to the DHCP server. Due to the limited performance of the DHCP server, processing the above messages too frequently will result in slow processing or failure of other interactive messages, resulting in slow or failure to go online for the DHCP client, which affects the robustness of the network system.
- an embodiment of the present invention provides a message processing method, which includes: in response to receiving a first predetermined message sent by a client each time, sending the received first predetermined message to the server, and receiving the first predetermined message
- the multiple first scheduled messages are sent to different servers, where the different servers include the main server and the standby server, and the first first scheduled message is sent to the main server;
- the response message that meets the predetermined condition is sent to the client.
- an embodiment of the present invention provides a relay device, including: a first message forwarding module, configured to respond to receiving a first predetermined message sent by a client every time, to send the received first predetermined message
- a first message forwarding module configured to respond to receiving a first predetermined message sent by a client every time, to send the received first predetermined message
- the different servers include the primary server and the standby server.
- the message is sent to the main server; the second message forwarding module is configured to send the response message that meets the predetermined condition among the multiple received response messages to the first predetermined message to the client.
- an embodiment of the present invention provides a message processing system, including: a memory and a processor; the memory is used to store a program; the processor is used to read the executable program code stored in the memory to execute the foregoing message Approach.
- an embodiment of the present invention provides a computer-readable storage medium that stores instructions in the computer-readable storage medium, and when the instructions run on a computer, the computer executes the message processing methods of the foregoing aspects.
- FIG. 1 shows a schematic diagram of the architecture of a digital video access environment according to an embodiment of the present invention.
- FIG. 2 shows a schematic diagram of a message interaction flow of a DHCP client dynamically applying for an IP address in an embodiment of the present invention.
- FIG. 3 shows a schematic flowchart of a message processing method according to an embodiment of the present invention.
- FIG. 4 shows a schematic flowchart of a message processing method according to an embodiment of the present invention.
- FIG. 5 shows a schematic flowchart of a method for processing a received scheduled message from a client terminal of a set-top box that is not online.
- Fig. 6 shows a schematic flow chart of a method for processing a received scheduled message from an online set-top box client.
- Fig. 7 shows a schematic structural diagram of a relay device according to an embodiment of the present invention.
- Fig. 8 shows a schematic structural diagram of a relay device according to another embodiment of the present invention.
- Fig. 9 shows a schematic structural diagram of a relay device provided according to still another embodiment of the present invention.
- FIG. 10 shows a structural diagram of an exemplary hardware architecture of a computing device that can implement the method and apparatus according to the embodiments of the present invention.
- DHCP Dynamic Host Configuration Protocol
- the DHCP server can record the assigned IP address and lease the assigned IP address to the DHCP client.
- the lease period (the validity period of the IP address) expires Later, the client needs to request permission to continue using the address.
- FIG. 1 shows a schematic diagram of the architecture of a digital video access environment according to an embodiment of the present invention.
- the architecture may include: a DHCP client 101, a DHCP relay device 102, and multiple DHCP servers.
- the multiple DHCP servers may include, for example: DHCP server 1, DHCP server 2,... DHCP server n.
- multiple means greater than or equal to two.
- the DHCP relay device is a network device with a relay function, and the DHCP client communicates with DHCP servers in other network segments through the network device with the DHCP relay function to realize the dynamic configuration of the IP address.
- the DHCP client (hereinafter referred to as the client for short) can be a set-top box client
- the DHCP relay device can be a broadband access router and switch access device that supports the DHCP protocol
- the DHCP server can It is a set-top box management server.
- FIG. 2 shows a schematic diagram of a message interaction flow of a DHCP client dynamically applying for an IP address in an embodiment of the present invention.
- the message interaction process mainly includes the following four stages.
- the first stage the stage where the DHCP client looks for the DHCP server.
- the DHCP client sends a DHCP discovery message (DHCP-Discover message) to the DHCP server through the relay device.
- the relay device receives and processes the DHCP-Discover message from the client to form a temporary user data area for processing the message from the DHCP client.
- the aging duration of the temporary user data area can be set to a preset duration T1.
- the temporary data area is a temporary data storage area established for the client by the relay device according to the first DHCP discovery message sent by the client, and is used to temporarily store message processing information and client information.
- the aging duration of the temporary data area can be set according to actual requirements.
- the preset duration T1 of the aging duration may be a set duration of 80s, 70s, 60s, etc.
- the DHCP-Discover message is the first message sent by the DHCP client to the DHCP server through the relay device to find and discover the DHCP server.
- Scheduled stage The stage where the DHCP server provides the IP address.
- the DHCP server After receiving the DHCP-Discover message from the client, the DHCP server responds to the DHCP client with a DHCP offer message (DHCP-Offer message) through the relay device.
- DHCP-Offer message a DHCP offer message
- the DHCP-Offer message is used to inform the DHCP client that the DHCP server can provide the IP address and other configuration information for the DHCP client.
- the third stage the stage where the DHCP client selects an IP address.
- the DHCP client After receiving the DHCP-Offer message, the DHCP client sends a DHCP request message (DHCP-Request message) to the DHCP client through the relay device.
- DHCP-Request message a DHCP request message
- the DHCP-Request message carries the requested IP address, which is used to request the DHCP server to lease the selected IP address.
- the fourth stage the stage where the DHCP server confirms the IP address.
- the DHCP server After the DHCP server receives the DHCP-Request message from the DHCP client, if it confirms the assignment of the IP address requested by the DHCP client, it will return a DHCP confirmation message (DHCP-ACK message) to the DHCP client through the relay device. ), and the formal data area of the client can be formed on the relay device.
- DHCP-ACK message DHCP confirmation message
- DHCP-NAK message a DHCP denial confirmation message
- the relay device deletes the temporary data area of the DHCP client, the DHCP-NAK message will cause the corresponding DHCP client to go offline.
- the DHCP client successfully obtains a usable IP address.
- the DHCP client can be set to be online.
- the request message sent by the client in the embodiment of the present invention may include: a DHCP-Discover message and a DHCP-Request message, etc.; the response message for the request message may include a DHCP-Offer message, a DHCP-Offer message, etc. -ACK message and DHCP-NAK message, etc.
- FIG. 3 shows a schematic flowchart of a message processing method according to an embodiment of the present invention. As shown in Figure 3, the message processing method is applied to a relay device, and may include the following steps.
- S110 In response to receiving the first reservation message sent by the client, each time the received first reservation message is sent to the server, and when multiple first reservation messages are received, the multiple first reservation messages are sent to the server.
- the message is sent to different servers, where the different servers include a primary server and a standby server, and the first predetermined message is sent to the primary server.
- S120 Send a response message that meets a predetermined condition among the multiple received response messages to the first predetermined message to the client.
- step S110 each time a first scheduled message sent by a client that is not online is received, the received first scheduled message is sent to the server, and when the first scheduled message is received multiple times, respectively
- the multiple first scheduled messages are sent to different servers, and the different servers include the main server and the standby server, and the first first scheduled message is sent to the main server.
- the standby server can receive and process packets from the client only after the client is successfully online before the primary server fails.
- the client has not successfully gone online, a large number of scheduled messages are sent in a short period of time. If the main server fails during processing, it will not respond. At this time, a large number of scheduled message requests will continue to be sent to the main server. Therefore, the standby server cannot function as a standby machine.
- the repeated restart operation of the client will also increase the processing pressure of the main server and the severity of the failure. Incoming experience deteriorates, which seriously affects the robustness of the entire network system.
- the relay device when the client has not successfully gone online, can send the received predetermined messages from the client to each server including the primary server and the standby server in turn, and according to The received response messages of the primary server and the standby server to the predetermined message determine the response message sent to the client.
- the standby server will process the scheduled message.
- the message processing method of the embodiment of the present invention can alleviate the primary server’s reporting by polling selection between the primary server and the standby server. Document processing pressure and improve the robustness of the entire system.
- the first predetermined message may be any type of a DHCP-Discover message and a DHCP-Request message sent by a client that is not online. Since the two types of messages are usually sent after the DHCP client is turned on or restarted, in some embodiments described below, the two types of messages may also be referred to as power-on and restart messages.
- step S110 before sending the first first predetermined message to the main server, it may further include: selecting a dynamic host configuration server from a plurality of preset dynamic host configuration servers as the main server , And use other dynamic host configuration servers other than the selected primary server as the backup server.
- the main server and the standby server may also be DHCP servers selected from a plurality of servers as the main server and the standby server, respectively.
- the DHCP server it is possible to start polling and select the DHCP server for the power-on restart message sent after the client is turned on or restarted.
- one DHCP server is selected as the primary server, and the other DHCP servers are the standby servers.
- the first DHCP-Discover message received is sent to the selected primary server, and the first DHCP-Discover message is received afterwards.
- Other received power-on and restart messages such as other DHCP-Discover messages received after receiving the first DHCP-Discover message or DHCP-Request messages received are sent to each server in turn to realize each DHCP server Load balancing processing of boot request messages.
- step S110 may specifically include: S111, after receiving the first DHCP sent by a client that is not online When a message is found, the temporary data area of the client is established, and the aging time of the temporary data area is the preset time; S112, from the reception of the second scheduled message, each time a first scheduled message is received, the temporary data area is judged Whether it still exists; S113, when it is determined that the temporary data area exists, send the received first predetermined message to the server.
- S111 after receiving the first DHCP sent by a client that is not online
- the temporary data area of the client is established, and the aging time of the temporary data area is the preset time
- S112 from the reception of the second scheduled message, each time a first scheduled message is received, the temporary data area is judged Whether it still exists
- S113 when it is determined that the temporary data area exists, send the received first predetermined message to the server.
- the relay device if the existence period of the temporary data area of the client terminal from the establishment time exceeds the preset aging time period, the relay device will delete the temporary data area of the client terminal.
- the relay device needs to send the first predetermined message received from the client to each server in turn within the aging time of the temporary data area of the client.
- the relay device when the relay device receives the first DHCP-Discover message from the DHCP client, it establishes a temporary data area for the DHCP client, and the temporary data area can be used to store the received preset message. Text processing information.
- the temporary data area can be preset for the aging time when it is established, and within the aging time of the temporary data area, the DHCP server selection for the received predetermined message is controlled. Even if a DHCP server fails, the relay device can perform faster The selection of the DHCP server is switched to avoid the set-top box being unable to go online for a long time.
- the response message received from the DHCP server includes a DHCP offer message, a DHCP confirmation message, and a DHCP rejection confirmation message.
- the response message that satisfies the predetermined condition in step S120 may include: one of the received DHCP offer message and the DHCP confirmation message, the received DHCP rejection confirmation message from the host server, Or, when the response message from the primary server is not received within the predetermined response time, the DHCP rejection confirmation message from the standby server is received.
- the relay device may directly forward it to the DHCP client without checking whether it is the response of the currently selected main server; the relay device receives the DHCP The DHCP denial confirmation message that the server responds to, check whether it is the response from the currently selected main server. If the main server responds, forward the DHCP denial confirmation message to the DHCP client, and the DHCP client fails to go online; if not from the main server , Discard the DHCP denial confirmation message.
- the client when the response messages of the primary server and the standby server to the first predetermined message are both DHCP-Offer messages, usually, the client will choose to send a DHCP-Request message to the primary server to request the primary server to come.
- the main server sends a DHCP-ACK message or a DHCP-NAK message to the client according to whether the client is assigned the IP address requested.
- the response message of the first predetermined message contains both the response message of the primary server and the response message of the standby server, if the response message of the standby server is a DHCP-NAK message, discard the DHCP-NAK Message.
- the response message from the primary server is not received within the predetermined response time, it can be determined that the primary server is faulty. At this time, if the DHCP rejection confirmation message from the standby server is received, the DHCP Reject confirmation message sent to the client.
- the DHCP client can access the network according to the applied IP address and be displayed in the relay device as a normal online state; sent to the client
- the response message from the client is a DHCP denial confirmation message, and the DHCP client fails to apply for an IP address and cannot go online successfully.
- a DHCP server can be polled among multiple DHCP servers to forward the message, so as to solve the problem of the main server.
- the problem of slow and unable to go online caused by failure or non-response conditions improves user access experience and enhances the robustness of the entire system.
- the DHCP client when the DHCP client is online, the DHCP client may keep sending restart messages for a certain period of time after going online, and the relay device forwards this type of request message to the DHCP server.
- the server will process this type of message, which will increase the processing pressure of the DHCP server.
- the DHCP server's response mechanism for this type of message is to respond to the DHCP-NAK message, and the relay device forwards the DHCP-NAK message to DHCP client will cause the DHCP client to go offline abnormally. Further, if the relay device partially discards the power-on and restart request message sent by the DHCP client, it will cause the DHCP client to fail to go online immediately after restarting.
- the relay device can be used to report the restart of the device.
- the message is replaced, that is, when the DHCP client is online, the relay device constructs a packet response to the power-on and restart message from the DHCP client, that is, the relay device constructs a response message to feed back to the client.
- the message processing method shown in FIG. 4 is basically the same as the message processing method shown in FIG. 3.
- the difference is that the message processing method shown in FIG. 4 may further include: S130, in response to receiving The second scheduled message sent by the client constructs a response message for the second scheduled message based on the recorded remaining lease period of the network address that the client has applied for.
- step S130 the relay device in the embodiment of the present invention pre-stores the remaining lease period of the applied-for IP address of each online client.
- the relay device may construct a response message of the second predetermined message according to the remaining lease period of the user of the DHCP client, so as to alleviate the message processing pressure of the DHCP server.
- the second predetermined message may be a DHCP-Discover message or a DHCP-Request message sent by the online client.
- the DHCP-Request message may include different types of Request messages. For example, request messages such as Init-Reboot Request message and Selecting Request message.
- the Init-Reboot Request message is a DHCP-Request message sent to the server after the DHCP client restarts when the DHCP client already has valid lease information, which can be used to re-determine that the client has leased The right to use the IP address.
- the Selecting Request message is a message sent by a DHCP client after receiving a DHCP-Offer message from one or more DHCP servers, and is used to select a DHCP server from them.
- step S130 based on the recorded remaining lease period of the network address that the client has applied for, the step of constructing a response message for the second predetermined message may specifically include: S131, the remaining lease period is greater than the predetermined remaining period When the lease time threshold is set, the DHCP offer message is constructed as the response message of the second predetermined message.
- the message processing method may further include: S132, when the remaining lease term is less than or equal to the predetermined remaining lease term threshold, sending the second A message is scheduled to a designated server, and the designated server is a server that allocates the requested network address to the client.
- the relay device constructs a DHCP-Offer message to respond to the DHCP client.
- step S130 a response message for the second predetermined message is constructed based on the recorded remaining lease period of the network address that the client has applied for
- the steps can also specifically include the following steps.
- the optional parameter field option54 in the DHCP request message can carry a server identifier, which can be a server number or server address, and is used to indicate the DHCP server bound to the DHCP client, that is, it provides the DHCP client with The previously used DHCP server for the IP address that has been applied for.
- a server identifier can be a server number or server address
- the relay device may discard the second predetermined message.
- the server identifier Server-Id carried in the optional parameter field option54 in the DHCP client request message is not zero, and the server identifier carried in option54 is not the interface address of the relay device and the above-mentioned specified server. Direct packet loss does not respond; if it is the interface address of the relay device and the above-mentioned designated server or 0, continue the following processing.
- the relay device constructs a DHCP-ACK message to respond to the DHCP client; if it is inconsistent, the relay device Construct a DHCP-NAK message to respond to the DHCP client.
- the message processing method may further include: S140, after sending the DHCP rejection confirmation message, at a predetermined time Keep the client online and wait to receive the above-mentioned first predetermined message from the client.
- the relay device constructs and sends a DHCP-NAK message to the client
- the DHCP-NAK message does not cause the DHCP client to go offline, and the DHCP client needs to re-execute the online process of the set-top box client .
- the relay device when the DHCP client is online, the relay device can respond to a predetermined message, which not only relieves the message processing pressure of the DHCP server, but also avoids causes The DHCP server fails to cause the DHCP client to fail to go online immediately or abnormally go offline after restarting.
- FIG. 5 shows a schematic flowchart of a method for processing a received scheduled message from a client terminal of a set-top box that is not online. As shown in Fig. 5, the processing method may include the following steps.
- the relay device receives the DHCP-Discover message and Init-Reboot Request sent by the set-top box client when it is not online.
- S202 The relay device checks whether there is a temporary user data area of the STB client, if it does not exist, execute S203; if it exists, execute S204.
- the temporary user data area corresponding to the STB client is set with an aging time period. If the existence time of temporary user data exceeds the aging time, the relay device will delete the temporary user data area corresponding to the STB client.
- S203 The relay device discards the foregoing power-on and restart message.
- the relay device selects a set-top box management server from a plurality of set-top box management servers as the master server, and other set-top box management servers as backup servers, and sends the power-on restart message polling to each set-top box management server.
- each set-top box management server After receiving the request message, each set-top box management server processes the request message, and responds to the DHCP-Offer message, the DHCP-ACK message or the DHCP-NAK message, and sends it to the relay device.
- S206 The relay device judges whether the received message type is a DHCP-Offer message or a DHCP-ACK message. If it is not a DHCP-Offer message or a DHCP-ACK message, perform S207; otherwise, perform S209.
- the relay device judges whether the received DHCP-NAK message is a message responded by the currently selected server, if it is, execute S208; if not, execute S203.
- S208 The relay device forwards the DHCP-NAK message to the set-top box client, and the set-top box client fails to go online.
- the relay device does not detect whether the DHCP-Offer or DHCP-ACK message is sent by the current master server, and forwards the message to the set-top box client.
- S210 The set-top box client, the relay device, and the set-top box management server continue to perform message interaction, and complete the online process of the set-top box client.
- the relay device can detect whether the temporary data area of the STB user exists, and control the polling selection of the STB management server, thereby When a certain set-top box management server fails, the set-top box management server can be quickly switched to prevent the set-top box client from failing to go online for a long time.
- Fig. 6 shows a schematic flow chart of a method for processing a received scheduled message from an online set-top box client.
- the message processing method after the STB client successfully goes online may include the following steps.
- the relay device judges whether the received message is a DHCP-Discover protocol message sent by the set-top box client, if it is, execute S218; if it is not, execute S213.
- the relay device judges whether the message received by the relay device is a predetermined request message, and if it is judged that the type of the received message is such a message, S214 is executed; if not, the relay device process is ended.
- the predetermined request message may be an Init-Reboot Request or a Selecting Request message, for example.
- the relay device determines whether the remaining lease period of the STB client is less than or equal to the preset remaining lease period threshold T2, if yes, execute S219; if not, execute S215.
- S215 The relay device judges the option54 (server id) field of the type of message, and if it is the interface address of the device or 0, then executes S216; otherwise, executes S220.
- S216 The relay device judges the option50 (requested IP address) field of the type of message, and if it is consistent with the previously applied ip address, executes S217; if it is not consistent, executes S221.
- the relay device constructs an ACK message to respond to the request of the STB client, and sends the ACK message to the STB client.
- S218 The relay device judges whether the remaining lease period of the STB client is less than or equal to the preset remaining lease period threshold T2. If the remaining lease period is less than or equal to T2, execute S219; if the remaining lease period is greater than T2, execute S222.
- S219 The relay device forwards the DHCP-Discover or Init-Reboot Request or Selecting Request message of the STB client to the STB management server.
- S221 The relay device constructs a DHCP-NAK message to respond to the STB client.
- the DHCP-NAK message replies from the relay device will not cause the user to go offline.
- S222 The relay device constructs a DHCP-ACK message, and responds to the DHCP-ACK message of the set-top box client.
- the relay device constructs a message and responds to a predetermined message sent by the set-top box client when the set-top box client is online on behalf of the set-top box management server, the relay device can quickly respond to the request of the set-top box user, and It can reduce the message processing pressure of the STB management server and improve the robustness of the system.
- Fig. 7 shows a schematic structural diagram of a relay device according to an embodiment of the present invention.
- the relay device may include a first message forwarding module 310 and a second message forwarding module 320.
- the first message forwarding module 310 is configured to send the received first predetermined message to the server in response to receiving the first predetermined message sent by the client each time, and the first predetermined message is received multiple times.
- a plurality of first predetermined messages are respectively sent to different servers, where the different servers include a main server and a standby server, and the first first predetermined message is sent to the main server.
- the second message forwarding module 320 is configured to send a response message that meets a predetermined condition among the multiple received response messages to the first predetermined message to the client.
- the relay device may further include: a server selection module, configured to select a dynamic host configuration server from a plurality of preset dynamic host configuration servers as the main server, and set any one other than the selected main server Other dynamic host configuration servers are used as standby servers.
- a server selection module configured to select a dynamic host configuration server from a plurality of preset dynamic host configuration servers as the main server, and set any one other than the selected main server Other dynamic host configuration servers are used as standby servers.
- the first predetermined message includes a DHCP discovery message
- the first message forwarding module 310 may specifically include: a temporary data area establishing unit configured to receive the first DHCP discovery message sent by a client that is not online When sending messages, the client’s temporary data area is established, and the aging time of the temporary data area is the preset time; the data area existence judgment unit is set to start from the reception of the second predetermined message, and each time a first predetermined message is received , Determine whether the temporary data area still exists; the first message forwarding module 310 is also configured to send the received first predetermined message to the server when determining that the temporary data area exists.
- the multiple response messages to the first predetermined message include a DHCP offer message, a DHCP confirmation message, or a DHCP rejection confirmation message; the response messages that meet the predetermined conditions include: a DHCP offer message, DHCP A confirmation message, a DHCP rejection confirmation message from the primary server, or a DHCP rejection confirmation message from the standby server when a response message from the primary server is not received within a predetermined response time.
- the relay device when the client has not successfully gone online, the relay device polls the received client's predetermined message and sends it to each server to relieve the pressure of the server's message processing and avoid the occurrence of the server.
- the client cannot go online normally due to a fault.
- FIG. 8 shows a schematic structural diagram of a relay device provided by another embodiment of the present invention.
- the same or equivalent structures in FIG. 8 and FIG. 7 use the same reference numerals.
- the relay device may also include:
- the response message construction module 330 is configured to, in response to receiving the second predetermined message sent by the client, construct a response message sent to the second predetermined message based on the recorded remaining lease period of the network address that the client has applied for Text.
- the response message sending module 340 is configured to send the response message of the second predetermined message.
- the second predetermined message is a DHCP discovery message.
- the response message construction module 330 may specifically include: a DHCP offer message construction unit, configured to construct a DHCP offer message as a response message of the second predetermined message when the remaining lease period is greater than the predetermined remaining lease period threshold.
- the relay device may further include: a third message forwarding module, configured to send a second predetermined message to a designated server when the remaining lease period is less than or equal to the predetermined remaining lease term threshold, and the designated server is a client The server that allocates the applied network address.
- a third message forwarding module configured to send a second predetermined message to a designated server when the remaining lease period is less than or equal to the predetermined remaining lease term threshold, and the designated server is a client The server that allocates the applied network address.
- the second predetermined message is a designated DHCP request message.
- the response message construction module 330 may specifically include the following units.
- the server identification judgment unit is used to judge whether the server identification carried in the second predetermined message is zero or the interface address of the device and the designated server when the remaining lease period is greater than the predetermined remaining lease term threshold, and the designated server is allocated for the client The server of the applied network address.
- the applied-for network address judging unit is configured to, if it is judged that the carried server address is zero or an interface address, continue to judge whether the requested address carried in the second predetermined message is the applied network address.
- the confirmation message construction unit is configured to construct a DHCP confirmation message as a response message of the second predetermined message if it is determined that the carried network address is the applied network address.
- the rejection confirmation message constructing unit is configured to construct a DHCP rejection confirmation message as a response message of the second predetermined message if it is determined that the carried network address is not the applied network address.
- the relay device is specifically configured to keep the client online for a predetermined time after sending the DHCP rejection confirmation message, and wait to receive the first predetermined message from the client.
- the relay device after the client is successfully online, the relay device can respond to a predetermined message, which can not only alleviate the message processing pressure of the server, but also avoid the client caused by the failure of the server. After the terminal restarts, it cannot go online normally or goes offline abnormally.
- the message processing pressure of the DHCP server can be relieved, the robustness of the DHCP user's access to the network system can be enhanced, and the user's access experience can be improved.
- Fig. 9 is a schematic structural diagram of a relay device according to still another embodiment of the present invention.
- the relay device may include: a message type detection unit 410, a polling control unit 420, a substitution control unit 430, and a user lease term detection unit 440.
- the message type detecting unit 410 may be used to detect the type of the received message from the client.
- the message type may include: DHCP-Discover message and DHCP-Request message, among which, DHCP-Request message may also include: Init-Reboot Request message and Selecting Request message and other requests Message.
- the polling control unit 420 can be used to send the received scheduled message to the designated main server and the designated standby server in turn, wherein the first scheduled message received is sent to the main server; according to the received main server and standby server The server's response message to the predetermined message determines the response message sent to the client.
- the substitution control unit 430 may be used to construct a response message for the predetermined message based on the remaining lease period of the network address used by the client.
- the user lease term detection unit 440 is used to detect the remaining lease term of the DHCP client.
- the polling control unit 420 may be used to implement the message processing method described in the foregoing embodiment in conjunction with FIG. 3 and FIG. 5, and the substitution control unit 730 may be used to implement the method described in the foregoing embodiment in conjunction with FIG. 4 and FIG. 6 Message processing method.
- the substitution control unit 730 may be used to implement the method described in the foregoing embodiment in conjunction with FIG. 4 and FIG. 6 Message processing method.
- Fig. 10 is a structural diagram showing an exemplary hardware architecture of a computing device capable of implementing the message processing method and apparatus according to the embodiments of the present invention.
- the computing device 500 includes an input device 501, an input interface 502, a central processing unit 503, a memory 504, an output interface 505, and an output device 506.
- the input interface 502, the central processing unit 503, the memory 504, and the output interface 505 are connected to each other through the bus 510, and the input device 501 and the output device 506 are connected to the bus 510 through the input interface 502 and the output interface 505, respectively, and then connected to the computing device 500.
- the other components are connected.
- the input device 501 receives input information from the outside (for example, a set-top box client), and transmits the input information to the central processing unit 503 through the input interface 502; the central processing unit 503 is based on a pair of computer executable instructions stored in the memory 504 The input information is processed to generate output information, the output information is temporarily or permanently stored in the memory 504, and then the output information is transmitted to the output device 506 through the output interface 505; the output device 506 outputs the output information to the external supply of the computing device 500 User use.
- the outside for example, a set-top box client
- the central processing unit 503 is based on a pair of computer executable instructions stored in the memory 504
- the input information is processed to generate output information, the output information is temporarily or permanently stored in the memory 504, and then the output information is transmitted to the output device 506 through the output interface 505; the output device 506 outputs the output information to the external supply of the computing device 500 User use.
- the computing device 500 shown in FIG. 10 may be implemented as a message processing system.
- the message processing system may include: a memory configured to store a program; a processor configured to run in the memory A stored program to execute the message processing method described in the above embodiment.
- the relay device when the client has not successfully gone online, the relay device can send each predetermined message received from the client to the host server.
- This method can alleviate the message processing pressure of the server, thereby avoiding the problem that the client is too slow or unable to go online when the main server fails, and improves the robustness of the network system.
- an embodiment of the present invention includes a computer program product, which includes a computer program tangibly embodied on a machine-readable medium, and the computer program includes program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network, and/or installed from a removable storage medium.
- Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium).
- the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
- Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer.
- communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
Claims (12)
- 一种报文处理方法,应用于中继设备,包括:响应于每次接收到客户端发送的第一预定报文,将接收到的第一预定报文发送至服务器,且接收到多次第一预定报文时,分别将多个第一预定报文发送至不同服务器,其中,所述不同服务器包括主服务器和备服务器,其中,将首个第一预定报文发送至所述主服务器;将接收到的多个对第一预定报文的应答报文中,满足预定条件的应答报文发送至客户端。
- 根据权利要求1所述的方法,其中,所述第一预定报文包括DHCP发现报文,所述响应于每次接收到未上线的客户端发送的第一预定报文,将每次接收到的第一预定报文发送至不同服务器,包括:在接收到未上线的客户端发送的首个DHCP发现报文时,建立所述客户端的临时数据区,所述临时数据区的老化时长为预设时长;从接收到第二个预定报文开始,每接收到一个所述第一预定报文,判断所述临时数据区是否还存在;判定所述临时数据区存在时,将接收到的第一预定报文发送至服务器。
- 根据权利要求1所述的方法,其中,所述多个对第一预定报文的应答报文包括DHCP提供报文、DHCP确认报文或DHCP拒绝确认报文;所述满足预定条件的应答报文包括:DHCP提供报文、DHCP确认报文、来自主服务器的DHCP拒绝确认报文、或者,预定响应时长内未接收到所述主服务器的应答报文时,来自备服务器的DHCP拒绝确认报文。
- 根据权利要求1所述的方法,还包括:响应于接收到所述客户端发送的第二预定报文,基于记录的所述客户端已申请的网络地址的剩余租期,构建所述第二预定报文的应答报文;发送构建的所述第二预定报文的应答报文。
- 根据权利要求4所述的方法,其中,所述第二预定报文为DHCP发现报文,所述基于记录的所述客户端已申请的网络地址的剩余租期,构建所述第二预定报文的应答报文,包括:所述剩余租期大于预定剩余租期阈值时,构建DHCP提供报文作为所述第二预定报文的应答报文。
- 根据权利要求4所述的方法,其中,所述第二预定报文为DHCP发现报文或指定的DHCP请求报文,所述方法还包括:所述剩余租期小于等于预定剩余租期阈值时,发送所述第二预定报文至指定服务器,所述指定服务器是为所述客户端分配所述已申请的网络地址的服务器。
- 根据权利要求4所述的方法,其中,所述第二预定报文为指定的DHCP请求报文, 所述基于记录的所述客户端已申请的网络地址的剩余租期,构建所述第二预定报文的应答报文,包括:所述剩余租期大于预定剩余租期阈值时,判断所述第二预定报文中携带的服务器标识是否为零或为本设备与指定服务器的接口地址,所述指定服务器是为所述客户端分配所述已申请的网络地址的服务器;若判定携带的服务器地址为零或为所述接口地址,继续判断所述第二预定报文中携带的请求地址是否为所述已申请的网络地址;若判定携带的网络地址为所述已申请的网络地址,构建DHCP确认报文作为所述第二预定报文的应答报文;若判定携带的网络地址非所述已申请的网络地址,构建DHCP拒绝确认报文作为所述第二预定报文的应答报文。
- 根据权利要求4所述的方法,其中,构建的应答报文为DHCP拒绝确认报文,所述方法还包括:在发送所述DHCP拒绝确认报文之后,在预定时间内保持所述客户端在线,并等待接收所述客户端的第一预定报文。
- 一种中继设备,包括:第一报文转发模块,设置为响应于每次接收到客户端发送的第一预定报文,将接收到的第一预定报文发送至服务器,且接收到多次第一预定报文时,分别将多个第一预定报文发送至不同服务器,其中,所述不同服务器包括主服务器和备服务器,其中,将首个第一预定报文发送至所述主服务器;第二报文转发模块,设置为将接收到的多个对第一预定报文的应答报文中,满足预定条件的应答报文发送至客户端。
- 根据权利要求9所述的中继设备,还包括:应答报文构建模块,设置为响应于接收到所述客户端发送的第二预定报文,基于记录的所述客户端已申请的网络地址的剩余租期,构建所述第二预定报文的应答报文;应答报文发送模块,设置为发送构建的所述第二预定报文的应答报文。
- 一种报文处理系统,包括存储器和处理器;所述存储器用于储存有可执行程序代码;所述处理器用于读取所述存储器中存储的可执行程序代码以执行权利要求1至8中任一项所述的报文处理方法。
- 一种计算机可读存储介质,包括指令,其中,当所述指令在计算机上运行时,使得计算机执行如权利要求1至8中任一项所述的报文处理方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911396283.5 | 2019-12-30 | ||
CN201911396283.5A CN113132498B (zh) | 2019-12-30 | 2019-12-30 | 报文处理方法、中继设备、系统和存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021135795A1 true WO2021135795A1 (zh) | 2021-07-08 |
Family
ID=76686421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/133339 WO2021135795A1 (zh) | 2019-12-30 | 2020-12-02 | 报文处理方法、中继设备、系统和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113132498B (zh) |
WO (1) | WO2021135795A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150361A (zh) * | 2022-06-06 | 2022-10-04 | 北京交通大学 | 一种分布式异构网络设备地址管理方法 |
CN117294534A (zh) * | 2023-11-24 | 2023-12-26 | 湖南快乐阳光互动娱乐传媒有限公司 | 一种网络代理识别方法、装置及系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197811A (zh) * | 2006-12-04 | 2008-06-11 | 中兴通讯股份有限公司 | 提高代理方式下动态主机配置协议中服务器可靠性的方法 |
US7882169B1 (en) * | 2003-02-13 | 2011-02-01 | Cisco Technology, Inc. | Method and apparatus for configuring relay processes used for dynamically configuring hosts in network communications |
CN107995070A (zh) * | 2017-11-21 | 2018-05-04 | 新华三技术有限公司 | 基于ipoe的连网控制方法、装置和bras |
CN109347994A (zh) * | 2018-10-19 | 2019-02-15 | Oppo广东移动通信有限公司 | 互联网协议ip地址获取方法、装置、存储介质及电子设备 |
CN110086886A (zh) * | 2019-05-14 | 2019-08-02 | 北京天融信网络安全技术有限公司 | 动态会话保持方法及装置 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010239591A (ja) * | 2009-03-31 | 2010-10-21 | Nec Corp | ネットワークシステム、中継装置、およびネットワーク制御方法 |
CN101951417B (zh) * | 2010-09-21 | 2013-01-30 | 北京星网锐捷网络技术有限公司 | 多服务器地址分配方法、系统及中继设备 |
CN106878479B (zh) * | 2016-12-23 | 2020-07-07 | 新华三技术有限公司 | 一种地址分配方法及装置 |
-
2019
- 2019-12-30 CN CN201911396283.5A patent/CN113132498B/zh active Active
-
2020
- 2020-12-02 WO PCT/CN2020/133339 patent/WO2021135795A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7882169B1 (en) * | 2003-02-13 | 2011-02-01 | Cisco Technology, Inc. | Method and apparatus for configuring relay processes used for dynamically configuring hosts in network communications |
CN101197811A (zh) * | 2006-12-04 | 2008-06-11 | 中兴通讯股份有限公司 | 提高代理方式下动态主机配置协议中服务器可靠性的方法 |
CN107995070A (zh) * | 2017-11-21 | 2018-05-04 | 新华三技术有限公司 | 基于ipoe的连网控制方法、装置和bras |
CN109347994A (zh) * | 2018-10-19 | 2019-02-15 | Oppo广东移动通信有限公司 | 互联网协议ip地址获取方法、装置、存储介质及电子设备 |
CN110086886A (zh) * | 2019-05-14 | 2019-08-02 | 北京天融信网络安全技术有限公司 | 动态会话保持方法及装置 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150361A (zh) * | 2022-06-06 | 2022-10-04 | 北京交通大学 | 一种分布式异构网络设备地址管理方法 |
CN115150361B (zh) * | 2022-06-06 | 2023-08-29 | 北京交通大学 | 一种分布式异构网络设备地址管理方法 |
CN117294534A (zh) * | 2023-11-24 | 2023-12-26 | 湖南快乐阳光互动娱乐传媒有限公司 | 一种网络代理识别方法、装置及系统 |
CN117294534B (zh) * | 2023-11-24 | 2024-01-30 | 湖南快乐阳光互动娱乐传媒有限公司 | 一种网络代理识别方法、装置及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN113132498B (zh) | 2024-04-23 |
CN113132498A (zh) | 2021-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210119965A1 (en) | Address Management Method and Apparatus | |
US8285875B2 (en) | Synchronizing resource bindings within computer network | |
US8230067B2 (en) | DHCP proxy in a subscriber environment | |
EP2234343B1 (en) | Method, device and system for selecting service network | |
WO2021135795A1 (zh) | 报文处理方法、中继设备、系统和存储介质 | |
US20150281172A1 (en) | Method, relay agent, and system for acquiring internet protocol address in network | |
US10367680B2 (en) | Network relay apparatus, gateway redundancy system, program, and redundancy method | |
EP1697843B1 (en) | System and method for managing protocol network failures in a cluster system | |
WO2017114362A1 (zh) | 一种报文转发方法、装置和系统 | |
WO2005077060A2 (en) | System and method for requesting and granting access to a network channel | |
US10917289B2 (en) | Handling network failures in networks with redundant servers | |
WO2012163007A1 (zh) | 解决网际协议地址分配冲突的方法及相关设备和系统 | |
EP2888863B1 (en) | Method and apparatus for configuring dhcp client | |
CN108989476B (zh) | 一种地址分配方法以及装置 | |
CN109327544B (zh) | 一种领导节点的确定方法和装置 | |
JP5255035B2 (ja) | フェイルオーバシステム、記憶処理装置及びフェイルオーバ制御方法 | |
CN111935335A (zh) | 一种dhcp地址分配方法及装置 | |
US20130311624A1 (en) | Method, apparatus and system for configuring ip address | |
CN113473576A (zh) | 漫游连网处理方法、装置、移动终端及可读存储介质 | |
WO2017045106A1 (zh) | 基于光网络系统的通信方法与设备 | |
WO2020048177A1 (zh) | 机顶盒管理方法、装置、设备及存储介质 | |
US8443072B1 (en) | Method and apparatus for managing network congestion due to automatic configuration procedures | |
US20080201477A1 (en) | Client side replacement of DNS addresses | |
CN108600308B (zh) | 数据上传方法、装置、存储介质和服务器 | |
CN108667944B (zh) | 一种dhcp配置方法及dhcp客户端 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20909584 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20909584 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28/02/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20909584 Country of ref document: EP Kind code of ref document: A1 |