WO2014019516A1 - 一种报文转发的方法和设备 - Google Patents

一种报文转发的方法和设备 Download PDF

Info

Publication number
WO2014019516A1
WO2014019516A1 PCT/CN2013/080530 CN2013080530W WO2014019516A1 WO 2014019516 A1 WO2014019516 A1 WO 2014019516A1 CN 2013080530 W CN2013080530 W CN 2013080530W WO 2014019516 A1 WO2014019516 A1 WO 2014019516A1
Authority
WO
WIPO (PCT)
Prior art keywords
request message
forwarding rule
address
resource
edge router
Prior art date
Application number
PCT/CN2013/080530
Other languages
English (en)
French (fr)
Inventor
胡寅亮
王东辉
张锦辉
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014019516A1 publication Critical patent/WO2014019516A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • H04L61/2525Translation at a client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding

Definitions

  • the present invention relates to the field of communications, and in particular, to a packet forwarding method and device.
  • Cache transparent Cache
  • cache devices In order to reduce the impact of network video traffic on the carrier network, operators actively deploy transparent Cache (cache), deploy transparent cache devices near the user side to obtain and cache hot content.
  • the user request is redirected or forwarded to the cache device.
  • the cache device If the cache device has already cached the resource, the cache device spoofs the server directly to the user, because the user no longer needs to go to the remote web.
  • Server web server
  • the cache device is closer to the user, thereby improving the user download speed and improving the user experience quality.
  • each edge router needs to select a suitable cache device.
  • each edge router needs to obtain the load of all the cache devices or cache the path of the device to the user and determine the appropriate cache device by calculation.
  • the repetitive acquisition and calculation of each edge router not only increases the data.
  • the delay of the transmission increases the loss of the system.
  • the preference principles of the edge routers are inconsistent because each edge router independently selects a suitable cache device. Summary of the invention
  • the embodiments of the present invention provide a packet forwarding method and a device, which are configured to solve the problem that the edge router selects the cache device inconsistently and repeatedly obtains the cache resource configuration information, and the network resource transmission delay is large and the system loss is large. The problem.
  • the first aspect provides a method for packet forwarding, including:
  • the edge router receives the first request packet sent by the user equipment, and the first request packet carries the uniform resource locator URL of the resource requested by the user equipment;
  • the edge router After determining that the first request packet matches the first forwarding rule, the edge router sends a second request packet to the cache management device;
  • the edge router receives the response packet sent by the cache management device for the second request packet, where the response packet carries the IP address of the target cache device selected by the cache management device; the edge router caches according to the target The IP address of the device requests the resource requested by the client device from the target cache device.
  • the matching element of the first forwarding rule includes a URL of a resource requested by the user equipment;
  • the matching element of the first forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, and a transport layer protocol number of the first request packet.
  • the second request packet carries the URL
  • the second request packet carries an IP address or a domain name of a server that provides the resource, and carries a local resource identifier of the resource on the server.
  • the method further includes: combining the first aspect or the first possible implementation manner or the second possible implementation manner, the method further includes:
  • the edge forwarding router configures a second forwarding rule for the packet sent by the user equipment, where the forwarding destination device corresponding to the second forwarding rule is the target Cache device
  • the number of matching elements of the second forwarding rule is greater than the matching element of the first forwarding rule quantity
  • the edge router determines that the packet received from the user equipment matches both the first forwarding rule and the second forwarding rule, the edge router forwards according to the second forwarding rule.
  • the matching element of the second forwarding rule includes a destination IP address of the first request packet, and the first request a destination port number of the packet, a transport layer protocol number of the first request packet, a source IP address of the first request message, and a source port number of the first request message;
  • the matching element of the second forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, a transport layer protocol number of the first request packet, and the first The source IP address of a request message;
  • the matching element of the second forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, a transport layer protocol number of the first request packet, and the first The source port number of a request message.
  • the second forwarding rule is that after the edge router receives the response packet, and determines the user end After the device obtains the resource requested by the first request message from the target cache device by using the transmission control protocol TCP, the device is configured.
  • an edge router including:
  • a first receiving unit configured to receive a first request message sent by the user equipment, where the first request message carries a uniform resource locator URL of the resource requested by the user equipment;
  • a first sending unit configured to send a second request message to the cache management device after determining that the first request message matches the first forwarding rule
  • the response receiving unit is configured to receive a response message for the second request message sent by the cache management device, where the response message carries an IP address of a target cache device selected by the cache management device, and a request unit, configured to The IP address of the target cache device requests the target cache device for the resource requested by the client device.
  • the matching element of the first forwarding rule includes a URL of the resource requested by the user equipment; or
  • the matching element of the first forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, and a transport layer protocol number of the first request packet.
  • the second request packet carries the URL
  • the second request packet carries an IP address or a domain name of the server that provides the resource, and also carries a local resource identifier of the resource on the server.
  • the edge router further includes:
  • a configuration unit configured to: after the response receiving unit receives the response message, configure a second forwarding rule for the packet sent by the user equipment, where the forwarding destination device corresponding to the second forwarding rule is the target a cache device, where the number of matching elements of the second forwarding rule is greater than the number of matching elements of the first forwarding rule;
  • the packet forwarding unit is configured to perform forwarding according to the second forwarding rule after determining that the packet received from the user equipment matches both the first forwarding rule and the second forwarding rule.
  • the configuration unit is configured to: after the edge router receives the response packet, and determine the user end After the device obtains the resource requested by the first request packet from the target cache device by using the transmission control protocol TCP, the second forwarding rule is configured.
  • the edge router selects a corresponding cache device request resource for the user equipment according to the request packet sent by the user equipment, so that not only the cache device is guaranteed. Consistency of principles, while reducing the delay of network resource transmission and reducing system loss.
  • FIG. 1 is a schematic flowchart of a method for forwarding a packet according to an embodiment of the present disclosure
  • 2 is a schematic flowchart of a method for forwarding a packet according to another embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an edge router according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another edge router according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an edge router according to another embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a system for packet forwarding according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for packet forwarding, as shown in FIG. 1 , which includes the following steps:
  • the edge router receives the first request packet sent by the user equipment, where the first request packet carries a uniform resource locator (URL) of the resource requested by the user equipment.
  • URL uniform resource locator
  • the edge router After determining that the first request packet matches the first forwarding rule, the edge router sends a second request packet to the cache management device.
  • the matching element of the first forwarding rule includes a URL of the resource requested by the user equipment, or the matching element of the first forwarding rule includes a destination IP address of the first request packet and a destination of the first request packet.
  • the port number and the transport layer protocol number of the first request message are included in the matching element of the first forwarding rule.
  • the matching element of the first forwarding rule configured by the edge router includes the URL of the resource requested by the user equipment, and the cache device management processing is performed on the video request corresponding to the site information video.xyz.com.
  • the Uniform Resource Locator URL of the resource requested by the user equipment is HTTP: ⁇ video. xyz.eom/a.flv, and the video address is video.
  • the video content of xyz.com is requested. Therefore, the edge router sends a second request message to the cache management device according to the site video.xyz.com, requesting the cache management device to allocate a cache device for the current request of the client device.
  • the matching element of the first forwarding rule configured by the edge router may also be a destination IP address including the first request packet, a destination port number of the first request packet, and a transport layer protocol number of the first request packet.
  • the first forwarding rule is to add a triple list, namely:
  • the destination address, destination port number, and transport layer protocol number are as follows: Destination address: IP address of the network resource site, destination port number: 80 (that is, the port number of the HTTP protocol), and transport layer protocol: 6 (that is, the TCP protocol).
  • the destination address, the destination port number, and the transport layer protocol of the first request message are consistent with the triple list set by the foregoing (ie, the IP address of the request information network resource site, the destination port number is 80, and the transport layer protocol is 6) Then, the second request is sent to the cache management device.
  • the second request message is a message that is regenerated by the edge router according to the first request message; or the second request message is the first request message that is forwarded by the edge router.
  • the second request packet carries the Uniform Resource Locator URL of the resource requested by the user equipment; or the second request packet carries the IP address of the server providing the resource and the local resource identifier of the resource on the server.
  • the edge router receives the response packet sent by the cache management device for the second request packet, where the response packet carries the IP address of the target cache device selected by the cache management device.
  • the edge router requests, from the target cache device, the resource requested by the user equipment according to the IP address of the target cache device.
  • the edge router selects a corresponding cache device request resource for the user equipment according to the request packet sent by the user equipment, so that the priority principle of the cache device is ensured. Consistency, while reducing the delay of network resource transmission and reducing system loss.
  • the embodiment of the invention provides a method for packet forwarding, as shown in FIG. 2, which specifically includes the following steps:
  • the edge router receives the first request packet sent by the user equipment, where the first request packet carries a uniform resource locator (URL) of the resource requested by the user equipment.
  • URL uniform resource locator
  • the edge router After determining that the first request packet matches the first forwarding rule, the edge router sends a second request packet to the cache management device.
  • the matching element of the first forwarding rule includes a URL of the resource requested by the user equipment, or the matching element of the first forwarding rule includes a destination IP address of the first request packet and a destination of the first request packet.
  • the port number and the transport layer protocol number of the first request message are included in the matching element of the first forwarding rule.
  • the matching element of the first forwarding rule configured by the edge router includes the URL of the resource requested by the user equipment, and the cache device management processing is performed on the video request corresponding to the site information video.xyz.com.
  • a request message carries the Uniform Resource Locator URL of the resource requested by the client device as HTTP: ⁇ video. xyz.eom/a.flv, and is found to be the video content of the video site video.xyz.com a.flv
  • the request is made. Therefore, the edge router sends a second request message to the cache management device according to the site video.xyz.com, requesting the cache management device to allocate a cache device for the current request of the client device.
  • the matching element of the first forwarding rule configured by the edge router may also be a destination IP address including the first request packet, a destination port number of the first request packet, and a transport layer protocol number of the first request packet. That is, the first forwarding rule is to add a triple list, namely: destination address, destination port number, and transport layer protocol number, as follows: Destination address: IP address of the network resource site, destination port number: 80 (ie, HTTP protocol) Port number), transport layer protocol: 6 (ie TCP protocol), the destination address, destination port number and transport layer protocol of the first request message are consistent with the triple list set above (ie, the request information network resource The IP address of the site, the destination port number is 80, and the transport layer protocol is 6), and the second request is sent to the cache management device.
  • a triple list namely: destination address, destination port number, and transport layer protocol number, as follows: Destination address: IP address of the network resource site, destination port number: 80 (ie, HTTP protocol) Port number), transport layer protocol: 6 (ie T
  • the second request message is a message that is regenerated by the edge router according to the first request message; or the second request message is the first request message that is forwarded by the edge router.
  • the second request packet carries a uniform resource locator URL of the resource requested by the user equipment; or the second request packet carries the IP address and the domain name of the server that provides the resource, and carries the resource and the local resource on the server.
  • Resource ID For example, for HTTP: ⁇ video. xyz. com/a. flv, video.xyz.com is the domain name and a.flv is the local resource identifier.
  • the cache management device receives the second request packet sent by the edge router.
  • the edge router receives the response packet sent by the cache management device for the second request packet, where the response packet carries the IP address of the target cache device selected by the cache management device.
  • the cache management device determines the target cache device from the cache device according to the resource configuration information of the cache device connected thereto and the second request message.
  • the cache management device first parses the uniform resource locator URL of the resource requested by the user equipment carried by the second request packet from the second request packet; or the second request packet carries the server that provides the resource. The IP address and the local resource identifier of the resource on the server, and then the cache management device selects the cache device with the smallest load as the target cache device according to the load information of the cache device.
  • the cache management device may also not be shared according to the load. The principle of selecting the target cache device.
  • the edge router requests, from the target cache device, the resource requested by the user equipment according to the IP address of the target cache device.
  • the target cache device After receiving the packet forwarded by the edge router, the target cache device parses the Uniform Resource Locator URL of the resource requested by the user equipment.
  • the target cache device sends the requested resource determined according to the URL to the client device.
  • the target cache device parses the message to obtain the Uniform Resource Locator URL of the resource requested by the client device: HTTP: ⁇ video.xyz.eom/a.flv, and find that the client device requests video.xyz.com The a.flv video file of the site, the target cache device checks whether the video resource is stored locally;
  • the target cache device requests the resource from the resource server (the resource server is the Video Server video server) according to the original request message, and the process sends a request message to the video server for the target cache device, and receives the Video Server response. After the user requests, the video resources obtained from the Video Server are locally cached and sent to the client device.
  • the target cache device when the target cache device sends the network resource to the user equipment, the source address of the packet encapsulating the network resource is set as the IP address of the network resource site, and the destination address is set as the IP address of the user equipment,
  • the client device receives the network resource, because the source address of the network resource is the IP address of the network resource site, the client device does not know that the cache management device and the target cache device exist in the process of forwarding the network resource.
  • the device realizes transparent transmission of information of the client device by the cache management device and the target cache device, and at the same time, avoids attacks on the target cache device by the attacker, and ensures the security of information transmission.
  • step 208 The edge router configures a second forwarding rule for the packet sent by the user equipment, and the forwarding destination device corresponding to the second forwarding rule is the target cache device. It should be noted that step 208 can also be performed before step 205, 206 or 207.
  • the number of matching elements of the second forwarding rule is greater than the number of matching elements of the first forwarding rule.
  • the matching element of the second forwarding rule includes the destination IP address of the first request packet. Address, the destination port number of the first request message, the transport layer protocol number of the first request message, the source IP address of the first request message, and the source port number of the first request message;
  • the matching element of the second forwarding rule includes a destination ip address of the first request packet, a destination port number of the first request packet, a transport layer protocol number of the first request packet, and a source IP address of the first request packet;
  • the matching element of the second forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, a transport layer protocol number of the first request packet, and a source port number of the first request packet.
  • the edge router determines that the packet received from the user equipment matches the first forwarding rule and the second forwarding rule, the packet is forwarded according to the second forwarding rule.
  • the second forwarding rule is to add a quintuple list, that is, the matching element includes: a source address (a source IP address of the first request message), a source port number (a source port number of the first request message), Destination address (destination IP address of the first request packet), destination port number (destination port number of the first request packet), and transport layer protocol (transport layer protocol number of the first request packet), the quintuple information
  • the message that is consistent with the quintuple list information set above and that matches the first forwarding rule is sent to the target cache device according to the address of the target cache device.
  • the edge router configures the second forwarding rule after receiving the response packet, and after determining that the user equipment acquires the resource of the first request message request from the target cache device by using the transmission control protocol TCP. .
  • the edge router may generate the user equipment in the process of acquiring the requested resource through the TCP.
  • the TCP response message is directly forwarded to the target cache device, reducing the impact on other devices.
  • the edge router selects a corresponding cache device request resource for the user equipment according to the request packet sent by the user equipment, so that the priority principle of the cache device is not only ensured. Sex, while reducing the delay of network resource transmission and reducing system loss.
  • An embodiment of the present invention provides an edge router 3 having some or all of the functions of the edge router in the embodiment shown in FIG. 1 or FIG. 2. As shown in Figure 3, the side The edge router 3 includes:
  • the first receiving unit 31 is configured to receive a first request message sent by the user equipment, where the first request message carries a uniform resource locator (URL) of the resource requested by the user equipment;
  • URL uniform resource locator
  • the first sending unit 32 is configured to send a second request message to the cache management device after determining that the first request message matches the first forwarding rule;
  • the matching element of the first forwarding rule includes a URL of the resource requested by the user equipment;
  • the matching element of the first forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, and a transport layer protocol number of the first request packet.
  • the response receiving unit 33 is configured to receive a response message sent by the cache management device for the second request message, where the response message carries an IP address of the target cache device selected by the cache management device.
  • the requesting unit 34 is configured to request, from the target cache device, the resource requested by the client device according to the IP address of the target cache device.
  • the second request packet carries a unified resource locator URL of the resource requested by the user equipment
  • the second request message carries the IP address or domain name of the server providing the resource, and also carries the local resource identifier of the resource on the server.
  • the edge router 3 further includes:
  • the configuration unit 35 is configured to: after the response receiving unit receives the response message, configure a second forwarding rule for the packet sent by the user equipment, where the forwarding destination device corresponding to the second forwarding rule is the target cache device, where the second The number of matching elements of the forwarding rule is greater than the number of matching elements of the first forwarding rule;
  • the packet forwarding unit 36 is configured to perform forwarding according to the second forwarding rule after determining that the packet received from the user equipment matches both the first forwarding rule and the second forwarding rule.
  • the configuration unit 34 is further configured to: after the edge router receives the response packet, and after determining that the user equipment acquires the resource requested by the first request packet from the target cache device by using the transmission control protocol TCP, configuring the second forwarding rule.
  • the edge router provided by the foregoing embodiment can select a corresponding cache device request resource for the user equipment by using the request packet sent by the user equipment. In this way, not only the consistency of the cache device preference principle is ensured, but also the delay of network resource transmission is reduced and the loss of the system is reduced.
  • An embodiment of the present invention provides an edge router 5.
  • the edge router 5 includes: at least one ingress port 51, at least one egress port 52, at least one processor 53 and at least one memory 54.
  • the ingress port 51, the egress port 52, the processor 53 and the memory 54 cooperate to perform some or all of the operations performed by the edge router in the embodiment shown in Fig. 1 or Fig. 2.
  • the at least one ingress port 51 may be configured to receive a first request message sent by the user equipment, where the first request message carries a uniform resource locator (URL) of the resource requested by the user equipment.
  • URL uniform resource locator
  • the at least one egress port 52 can be configured to send a second request message to the cache management device after the at least one processor 53 determines that the first request message matches the first forwarding rule.
  • the at least one ingress port 51 may further receive a response packet sent by the cache management device for the second request packet, where the response packet carries an IP address of the target cache device selected by the cache management device.
  • the at least one egress port 52 may further request, by the target cache device, the resource requested by the user equipment according to the IP address of the target cache device.
  • the matching element of the first forwarding rule includes a URL of the resource requested by the user equipment; or the matching element of the first forwarding rule includes a destination IP address of the first request packet, and the first request ⁇ The destination port number of the message and the transport layer protocol number of the first request message.
  • the second request message carries the URL; or the second request message carries an IP address or a domain name of a server that provides the resource, and carries a local resource identifier of the resource on the server.
  • the at least one processor 53 configures, in the at least one memory 54, a second forwarding rule for the packet sent by the user equipment,
  • the forwarding destination device corresponding to the second forwarding rule is the target cache device.
  • the number of matching elements of the second forwarding rule is greater than the number of matching elements of the first forwarding rule.
  • the edge router determines that the packet received from the user equipment matches both the first forwarding rule and the second forwarding rule, the edge router forwards according to the second forwarding rule.
  • the second forwarding rule is that the edge router receives the response packet, and determines that the user equipment acquires the first request packet from the target cache device by using a transmission control protocol TCP.
  • TCP transmission control protocol
  • the matching element of the second forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, a transport layer protocol number of the first request packet, and the a source IP address of the request packet and a source port number of the first request packet; or
  • the matching element of the second forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, a transport layer protocol number of the first request packet, and the first The source IP address of a request message;
  • the matching element of the second forwarding rule includes a destination IP address of the first request packet, a destination port number of the first request packet, a transport layer protocol number of the first request packet, and the first The source port number of a request message.
  • the edge router provided in this embodiment can select a corresponding cache device request resource for the user equipment according to the request packet sent by the user equipment, so that not only the consistency of the cache device preference principle but also the reduction is ensured.
  • the edge router provided in the foregoing embodiments may be applied to the packet forwarding system provided in FIG. 6.
  • the system includes a cache management device 601, a target cache device 602, and a client device 604, respectively, and a target cache device 602 and a client device.
  • 604 and the edge router 603 connected to the cache management device 601, and the edge router 603 routes the edge of the edge in the above embodiment.
  • the resource server 605 and other cache devices 606 are shown in detail in FIG.
  • the edge router can select a corresponding cache device request resource for the user equipment according to the request packet sent by the user equipment, so that the priority of the cache device is consistent. Sex, while reducing the delay of network resource transmission and reducing system loss.
  • the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明实施例提供一种报文转发的方法和设备,涉及网络信息传输领域,以解决边缘路由器选择缓存设备的原则不一致以及重复性获取各个缓存设备资源配置信息而造成的网络资源传输时延较大和***损耗较大的问题。该方法包括:接收用户端设备发送的第一请求报文;在确定第一请求报文与第一转发规则匹配后,向缓存管理设备发送第二请求报文;接收缓存管理设备发送的针对第二请求报文的响应报文,响应报文携带缓存管理设备选择的目标缓存设备的IP地址;边缘路由器根据目标缓存设备的IP地址向目标缓存设备请求资源。本发明实施例用于报文转发。

Description

一种报文转发的方法和设备 技术领域
本发明涉及通讯领域, 尤其涉及一种报文转发的方法和设备。
背景技术
由于宽带网络在世界各地的高速发展, 高品质的音视频压缩技术不 断推陈出新, 网络视频市场的蓬勃发展使得网络视频流量急剧增长, 剧 增的网络视频流量给运营商网络带来了巨大的冲击, 当前, 随着在线视 频用户数的进一步攀升, 运营商网络的视频流量传输将面临更大的压 力。 同时,剧增的网络视频流量会造成现有网络视频的用户体验无保证, 特别是在高峰时期, 用户经常经历停顿、 花块等问题, 用户的满意度不 高, 运营商将面临用户流失压力, 因此, 运营商需要一种优化的网络视 频分发方法, 通过提高到用户的传输速度, 来保证用户的体验。
为了降低网络视频流量对运营商网络带来的冲击, 运营商积极部 署透明 Cache (高速緩冲存储) 功能, 在靠近用户侧部署透明緩存设备 来获取并緩存热点内容。 当用户访问热点内容时, 用户请求会被重定向 或者转发到緩存设备, 如緩存设备已经緩存有此资源, 则緩存设备仿冒 成服务器直接将内容推送给用户, 由于用户不再需要向远端 Web Server (网络服务器 ) 获取视频内容, 从而减少了骨干网以及城域网的流量压 力, 另一方面, 緩存设备离用户更近, 从而提高了用户下载速度, 改善 了用户的体验质量。
在现有的方案中, 但是, 运营商在部署緩存设备时, 通常会部署多 个緩存设备, 由于每个緩存设备的资源緩存和负载各不相同, 因此, 边 缘路由器需要选择合适的緩存设备, 现有技术中, 各个边缘路由器都需 要通过获取所有緩存设备的负载或者緩存设备到用户的路径并通过计 算来确定合适的緩存设备,这样,各个边缘路由器重复性的获取与计算, 不仅增加了数据传输的时延而且增加了***的损耗, 同时, 由于各个边 缘路由器独立选择合适的緩存设备, 使得各边缘路由器的优选原则不一 致。 发明内容
本发明的实施例提供一种报文转发的方法和设备, 以解决边缘路由器选 择緩存设备的原则不一致以及重复性获取各个緩存设备资源配置信息而造成 的网络资源传输时延较大和***损耗较大的问题。
为达到上述目的, 本发明的实施例釆用如下技术方案:
第一方面, 提供一种报文转发的方法, 包括:
边缘路由器接收用户端设备发送的第一请求报文, 所述第一请求报文携 带所述用户端设备请求的资源的统一资源定位符 URL;
所述边缘路由器在确定所述第一请求报文与第一转发规则匹配后, 向緩 存管理设备发送第二请求报文;
所述边缘路由器接收所述緩存管理设备发送的针对第二请求报文的响应 报文, 所述响应报文携带緩存管理设备选择的目标緩存设备的 IP地址; 所述边缘路由器根据所述目标緩存设备的 IP地址向所述目标緩存设备 请求所述用户端设备请求的资源。
在第一方面的第一种可能的实现方式中, 结合第一方面, 所述第一转发 规则的匹配要素包括所述用户端设备请求的资源的 URL; 或者,
所述第一转发规则的匹配要素包括所述第一请求报文的目的 IP地址、所 述第一请求报文的目的端口号和所述第一请求报文的传输层协议号。
在第一方面的第二种可能的实现方式中, 结合第一种可能的实现方式, 所述第二请求报文携带所述 URL;
或者,
所述第二请求报文携带提供所述资源的服务器的 IP地址或域名,还携带 所述资源在所述服务器上的本地资源标识。
在第一方面的第三种可能的实现方式中, 结合第一方面或第一种可能的 实现方式或第二种可能的实现方式, 该方法还包括:
在所述边缘路由器接收到所述响应报文后, 在所述边缘路由器上配置针 对用户端设备发送的报文的第二转发规则, 所述第二转发规则对应的转发目 的设备为所述目标緩存设备;
所述第二转发规则的匹配要素的数量多于所述第一转发规则的匹配要素 的数量;
当所述边缘路由器确定从用户端设备接收到的报文既与第一转发规则匹 配又与第二转发规则匹配后, 按照第二转发规则进行转发。
在第一方面的第四种可能的实现方式中, 结合第三种可能的实现方式, 所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP地址、所 述第一请求报文的目的端口号、 所述第一请求报文的传输层协议号、 所述第 一请求 文的源 IP地址和所述第一请求 ^艮文的源端口号;
或者,
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP地址、所 述第一请求报文的目的端口号、 所述第一请求报文的传输层协议号和所述第 一请求 文的源 IP地址;
或者,
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP地址、所 述第一请求报文的目的端口号、 所述第一请求报文的传输层协议号和所述第 一请求报文的源端口号。
在第一方面的第五种可能的实现方式中, 结合第四种可能的实现方式, 所述第二转发规则是所述边缘路由器接收到所述响应报文后, 并且在确 定所述用户端设备通过传输控制协议 TCP 从所述目标緩存设备获取所 述第一请求报文请求的资源后配置的。
第二方面, 提供一种边缘路由器, 包括:
第一接收单元, 用于接收用户端设备发送的第一请求报文, 所述第一请 求报文携带所述用户端设备请求的资源的统一资源定位符 URL;
第一发送单元, 用于在确定所述第一请求报文与第一转发规则匹配后, 向緩存管理设备发送第二请求报文;
响应接收单元, 用于接收所述緩存管理设备发送的针对第二请求报文的 响应报文, 所述响应报文携带緩存管理设备选择的目标緩存设备的 IP地址; 请求单元, 用于根据所述目标緩存设备的 IP 地址向所述目标緩存 设备请求所述用户端设备请求的资源。
在第二方面的第一种可能的实现方式中, 结合第二方面, 所述第一 转发规则的匹配要素包括所述用户端设备请求的资源的 URL; 或者, 所述第一转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号和所述第一请求报文的传输层协议 号。
在第二方面的第二种可能的实现方式中, 结合第一种可能的实现方式, 所述第二请求报文携带所述 URL;
或者,
所述第二请求报文携带提供所述资源的服务器的 IP 地址或域名, 还携带所述资源在所述服务器上的本地资源标识。
在第二方面的第三中可能的实现方式中, 结合第二方面或第一种可能的 实现方式或第二种可能的实现方式, 该边缘路由器还包括:
配置单元, 用于在所述响应接收单元接收到所述响应报文后, 配置针对 用户端设备发送的报文的第二转发规则, 所述第二转发规则对应的转发目的 设备为所述目标緩存设备, 其中, 所述第二转发规则的匹配要素的数量多于 所述第一转发规则的匹配要素的数量;
报文转发单元, 用于当确定从用户端设备接收到的报文既与第一转发规 则匹配又与第二转发规则匹配后, 按照第二转发规则进行转发。
在第二方面的第四种可能的实现方式中, 结合第三种可能的实现方式, 所述配置单元用于在所述边缘路由器接收到所述响应报文后, 并且在确 定所述用户端设备通过传输控制协议 TCP 从所述目标緩存设备获取所 述第一请求报文请求的资源后, 配置所述第二转发规则。
本发明实施例提供的报文转发的方法和设备, 边缘路由器通过緩存管理 设备根据用户端设备发送的请求报文为该用户设备选择对应的緩存设备请求 资源, 这样, 不仅保证了对緩存设备优选原则的一致性, 同时减少了网络资 源传输的时延并减少了***的损耗。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的一种报文转发的方法流程示意图; 图 2为本发明另一实施例提供的一种报文转发的方法流程示意图; 图 3为本发明实施例提供的一种边缘路由器结构示意图;
图 4为本发明实施例提供的另一种边缘路由器结构示意图;
图 5为本发明另一实施例提供的一种边缘路由器结构示意图;
图 6为本发明实施例提供的一种报文转发的***结构示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案 进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实 施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术 人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本 发明保护的范围。
本发明实施例提供一种报文转发的方法, 如图 1所示, 包括如下步 骤:
101、 边缘路由器接收用户端设备发送的第一请求报文, 该第一请 求报文携带用户端设备请求的资源的统一资源定位符 (URL ) 。
102、 边缘路由器在确定第一请求报文与第一转发规则匹配后, 向 緩存管理设备发送第二请求报文。
可选的, 所述第一转发规则的匹配要素包括用户端设备请求的资源 的 URL; 或者, 第一转发规则的匹配要素包括第一请求报文的目的 IP 地址、 第一请求报文的目的端口号和第一请求报文的传输层协议号。
示例性的, 边缘路由器配置的第一转发规则的匹配要素包括用户端 设备请求的资源的 URL , 以对资源的 URL为站点信息 video.xyz.com对 应的视频请求进行緩存设备管理处理为例, 当收到用户端设备发送的第 一请求报文携带该用户端设备请求的资源的统一资源定位符 URL 为 HTTP:〃 video. xyz.eom/a.flv, 经解析发现是对视频站点 video.xyz.com的 视频内容进行请求, 因此, 边缘路由器根据站点 video.xyz.com 向緩存 管理设备发送第二请求报文, 请求緩存管理设备为此用户端设备的本次 请求分配緩存设备。
此外示例性的, 边缘路由器配置的第一转发规则的匹配要素还可以 为包括第一请求报文的目的 IP地址、第一请求报文的目的端口号和第一 请求报文的传输层协议号, 即该第一转发规则为添加三元组列表, 即: 目的地址、 目的端口号和传输层协议号, 具体如下: 目的地址: 网络资 源站点的 IP地址、 目的端口号: 80 (即 HTTP协议的端口号) 、 传输层 协议: 6 (即 TCP协议) , 将第一请求 ^艮文的目的地址、 目的端口号和 传输层协议与上述设置的三元组列表一致(即该请求信息网络资源站点 的 IP地址、 目的端口号为 80 、 传输层协议为 6 ) 则发送第二请求 ^艮文 至緩存管理设备。
这里第二请求报文为边缘路由器根据第一请求报文重新生成的报 文; 或者, 第二请求报文为经边缘路由器转发的第一请求报文。
可选的, 第二请求报文携带用户端设备请求的资源的统一资源定位 符 URL; 或者, 第二请求报文携带提供资源的服务器的 IP地址和资源 在服务器上的本地资源标识。
103、 边缘路由器接收緩存管理设备发送的针对第二请求报文的响 应报文, 该响应报文携带緩存管理设备选择的目标緩存设备的 IP地址。
104、 边缘路由器根据目标緩存设备的 IP地址向目标緩存设备请求 用户端设备请求的资源。
依据本发明实施例提供的报文转发的方法, 边缘路由器通过緩存管 理设备根据用户端设备发送的请求报文为该用户设备选择对应的緩存 设备请求资源, 这样, 不仅保证了对緩存设备优选原则的一致性, 同时 减少了网络资源传输的时延并减少了***的损耗。
本发明实施例提供一种报文转发的方法, 如图 2所示, 具体包括以 下步骤:
201、 边缘路由器接收用户端设备发送的第一请求报文, 该第一请 求报文携带用户端设备请求的资源的统一资源定位符 (URL ) 。
202、 边缘路由器在确定第一请求报文与第一转发规则匹配后, 向 緩存管理设备发送第二请求报文。
可选的, 第一转发规则的匹配要素包括所述用户端设备请求的资源 的 URL; 或者, 第一转发规则的匹配要素包括第一请求报文的目的 IP 地址、 第一请求报文的目的端口号和第一请求报文的传输层协议号。
示例性的, 边缘路由器配置的第一转发规则的匹配要素包括用户端 设备请求的资源的 URL , 以对资源的 URL为站点信息 video.xyz.com对 应的视频请求进行緩存设备管理处理为例, 当收到用户端设备发送的第 一请求报文携带该用户端设备请求的资源的统一资源定位符 URL 为 HTTP:〃 video. xyz.eom/a.flv, 经解析发现是对视频站点 video.xyz.com的 视频内容 a.flv进行请求, 因此, 边缘路由器根据站点 video.xyz.com向 緩存管理设备发送第二请求报文, 请求緩存管理设备为此用户端设备的 本次请求分配緩存设备。
此外示例性的, 边缘路由器配置的第一转发规则的匹配要素还可以 为包括第一请求报文的目的 IP地址、第一请求报文的目的端口号和第一 请求报文的传输层协议号, 即该第一转发规则为添加三元组列表, 即: 目的地址、 目的端口号和传输层协议号, 具体如下: 目的地址: 网络资 源站点的 IP地址、 目的端口号: 80 (即 HTTP协议的端口号) 、 传输层 协议: 6 (即 TCP协议) , 将第一请求 ^艮文的目的地址、 目的端口号和 传输层协议与上述设置的三元组列表一致(即该请求信息网络资源站点 的 IP地址、 目的端口号为 80 、 传输层协议为 6 ) 则发送第二请求 ^艮文 至緩存管理设备。
这里第二请求报文为边缘路由器根据第一请求报文重新生成的报 文; 或者, 第二请求报文为经边缘路由器转发的第一请求报文。
可选的, 第二请求报文携带用户端设备请求的资源的统一资源定位 符 URL; 或者, 第二请求报文携带提供资源的服务器的 IP地址和域名, 还携 带和资源在服务器上的 本地资源标识 。 例如 , 对于 HTTP:〃 video. xyz. com/a. flv来说, video.xyz.com为域名, a.flv为本地资 源标识。
203、 緩存管理设备接收边缘路由器发送的第二请求报文。
204、 边缘路由器接收緩存管理设备发送的针对第二请求报文的响 应报文, 该响应报文携带緩存管理设备选择的目标緩存设备的 IP地址。
这里具体为緩存管理设备根据与其连接的緩存设备的资源配置信 息以及第二请求报文从緩存设备中确定目标緩存设备。
示例性地, 緩存管理设备首先从第二请求报文中解析出第二请求报 文携带的用户端设备请求的资源的统一资源定位符 URL; 或者, 第二请 求报文携带提供资源的服务器的 IP 地址和资源在服务器上的本地资源 标识, 然后緩存管理设备根据緩存设备的负载信息选择负载最小的緩存 设备作为目标緩存设备。 可选地, 緩存管理设备也可以不根据负载分担 的原则选择目标緩存设备。
205、 边缘路由器根据目标緩存设备的 IP地址向目标緩存设备请求 用户端设备请求的资源。
206、 目标緩存设备接收边缘路由器转发的报文后, 解析得到用户 端设备请求的资源的统一资源定位符 URL。
207、 目标緩存设备将根据 URL确定的被请求的资源发送给用户端 设备。
示例性的, 如目标緩存设备解析报文得到用户端设备请求的资源的 统一资源定位符 URL: HTTP:〃 video.xyz.eom/a.flv, 发现用户端设备请 求的是 video.xyz.com站点的 a.flv视频文件, 则目标緩存设备查看本地 是否存储有此视频资源;
若查询结果为是, 则将该网络资源发送至用户端设备;
若查询结果为否, 则目标緩存设备根据原始请求消息从资源服务器 (该资源服务器为 Video Server视频服务器 ) 请求获取资源, 该过程为 目标緩存设备向 Video Server发送请求消息, 在收到 Video Server响应 用户请求后, 开始将将从 Video Server获取的视频资源在本地緩存, 并 发送至用户端设备。
优选地, 目标緩存设备将网络资源发送至用户端设备时, 将封装有 该网络资源的报文的源地址设置为网络资源站点的 IP地址,将目的地址 设置为用户端设备的 IP地址, 这样, 用户端设备在接收到网络资源时, 由于该网络资源 4艮文的源地址为网络资源站点的 IP地址,用户端设备并 不知道在网络资源转发的过程中存在緩存管理设备及目标緩存设备等 设备, 实现了緩存管理设备及目标緩存设备对用户端设备的信息透明传 输, 同时, 避免了攻击者对目标緩存设备的攻击, 保障了信息传输的安 全性。
208、 边缘路由器配置针对用户端设备发送的报文的第二转发规则, 第二转发规则对应的转发目的设备为目标緩存设备。 需要说明的是, 步 骤 208也可以在步骤 205、 206或 207之前执行。
进一步的, 第二转发规则的匹配要素的数量多于第一转发规则的匹 配要素的数量。
可选的, 第二转发规则的匹配要素包括第一请求报文的目的 IP 地 址、 第一请求报文的目的端口号、 第一请求报文的传输层协议号、 第一 请求 文的源 IP地址和第一请求 4艮文的源端口号;
或者,
第二转发规则的匹配要素包括第一请求报文的目的 ip 地址、 第一 请求报文的目的端口号、 第一请求报文的传输层协议号和第一请求报文 的源 IP地址;
或者,
第二转发规则的匹配要素包括第一请求报文的目的 IP 地址、 第一 请求报文的目的端口号、 第一请求报文的传输层协议号和第一请求报文 的源端口号。
当 206、 边缘路由器确定从用户端设备接收到的报文既与第一转发 规则匹配又与第二转发规则匹配后, 按照第二转发规则进行报文转发。
示例性的, 以第二转发规则为添加五元组列表, 即匹配要素包括: 源地址(第一请求 文的源 IP地址) 、 源端口号(第一请求 ^艮文的源端 口号) 、 目的地址(第一请求报文的目的 IP地址) 、 目的端口号 (第一 请求报文的目的端口号) 和传输层协议 (第一请求报文的传输层协议 号) , 将五元组信息与上述设置的五元组列表信息一致并且与第一转发 规则匹配的报文根据该目标緩存设备的地址发送至目标緩存设备。
可选地, 边缘路由器是在接收到响应报文后, 并且在确定所述用户 端设备通过传输控制协议 TCP 从目标緩存设备获取第一请求报文请求 的资源后, 才配置第二转发规则的。
在目标緩存设备通过 TCP 向用户端设备发送被请求的资源的情况 下, 由于边缘路由器中配置了第二转发规则, 因此边缘路由器可以将用 户端设备在通过 TCP获取被请求的资源的过程中产生的 TCP应答报文 直接转发给目标緩存设备, 减少对其他设备的影响。
上述实施例提供的报文转发的方法, 边缘路由器通过緩存管理设备 根据用户端设备发送的请求报文为该用户设备选择对应的緩存设备请 求资源, 这样, 不仅保证了对緩存设备优选原则的一致性, 同时减少了 网络资源传输的时延并减少了***的损耗。
本发明实施例提供一种边缘路由器 3 , 边缘路由器 3具有如图 1或 图 2所示的实施例中的边缘路由器的部分或全部功能。 如图 3所示, 边 缘路由器 3包括:
第一接收单元 31 , 用于接收用户端设备发送的第一请求报文, 第一 请求报文携带用户端设备请求的资源的统一资源定位符 (URL ) ;
第一发送单元 32 , 用于在确定第一请求报文与第一转发规则匹配 后, 向緩存管理设备发送第二请求报文;
这里可选的, 第一转发规则的匹配要素包括用户端设备请求的资源 的 URL; 或者,
第一转发规则的匹配要素包括第一请求报文的目的 IP 地址、 第一 请求报文的目的端口号和第一请求报文的传输层协议号。
响应接收单元 33 ,用于接收緩存管理设备发送的针对第二请求报文 的响应报文, 响应报文携带緩存管理设备选择的目标緩存设备的 IP 地 址。
请求单元 34 , 用于根据目标緩存设备的 IP地址向目标緩存设备请 求用户端设备请求的资源。
此外, 可选的, 第二请求报文携带用户端设备请求的资源的统一资 源定位符 URL;
或者,
第二请求报文携带提供资源的服务器的 IP 地址或域名, 还携带资 源在服务器上的本地资源标识。
进一步可选的, 如图 4所示, 边缘路由器 3还包括:
配置单元 35 , 用于在响应接收单元接收到响应报文后, 配置针对用 户端设备发送的报文的第二转发规则, 第二转发规则对应的转发目的设 备为目标緩存设备, 其中, 第二转发规则的匹配要素的数量多于第一转 发规则的匹配要素的数量;
报文转发单元 36 ,用于当确定从用户端设备接收到的报文既与第一 转发规则匹配又与第二转发规则匹配后, 按照第二转发规则进行转发。
可选的, 配置单元 34 还用于在边缘路由器接收到响应报文后, 并 且在确定用户端设备通过传输控制协议 TCP 从目标緩存设备获取第一 请求报文请求的资源后, 配置第二转发规则。
上述实施例提供的边缘路由器, 能够通过緩存管理设备根据用户端 设备发送的请求报文为该用户设备选择对应的緩存设备请求资源, 这 样, 不仅保证了对緩存设备优选原则的一致性, 同时减少了网络资源传 输的时延并减少了***的损耗。
本发明实施例提供一种边缘路由器 5。 如图 5所示, 边缘路由器 5 包括: 至少一个入端口 51、 至少一个出端口 52、 至少一个处理器 53和 至少一个存储器 54。 所述入端口 51、 出端口 52、 处理器 53 和存储器 54相互配合,能够执行如图 1或图 2所示的实施例中的边缘路由器所执 行的部分或全部操作。
所述至少一个入端口 51 可以用于接收用户端设备发送的第一请求 报文, 所述第一请求报文携带所述用户端设备请求的资源的统一资源定 位符 (URL ) 。
所述至少一个出端口 52可以用于在所述至少一个处理器 53确定所 述第一请求报文与第一转发规则匹配后, 向緩存管理设备发送第二请求 报文。
所述至少一个入端口 51 还可以接收所述緩存管理设备发送的针对 第二请求报文的响应报文, 所述响应报文携带緩存管理设备选择的目标 緩存设备的 IP地址。
所述至少一个出端口 52还可以根据所述目标緩存设备的 IP地址向 所述目标緩存设备请求所述用户端设备请求的资源。
所述第一转发规则的匹配要素包括所述用户端设备请求的资源的 URL; 或者, 所述第一转发规则的匹配要素包括所述第一请求报文的目 的 IP地址、所述第一请求 ^艮文的目的端口号和所述第一请求 ^艮文的传输 层协议号。
所述第二请求报文携带所述 URL; 或者, 所述第二请求报文携带提 供所述资源的服务器的 IP地址或域名,还携带所述资源在所述服务器上 的本地资源标识。
在所述至少一个入端口 51 接收到所述响应^艮文后, 所述至少一个 处理器 53在所述至少一个存储器 54中配置针对用户端设备发送的报文 的第二转发规则, 所述第二转发规则对应的转发目的设备为所述目标緩 存设备。 所述第二转发规则的匹配要素的数量多于所述第一转发规则的 匹配要素的数量。 当所述边缘路由器确定从用户端设备接收到的报文既 与第一转发规则匹配又与第二转发规则匹配后, 按照第二转发规则进行 转发。 可选地, 所述第二转发规则是所述边缘路由器接收到所述响应报文 后,并且在确定所述用户端设备通过传输控制协议 TCP从所述目标緩存 设备获取所述第一请求报文请求的资源后配置的。
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号、 所述第一请求报文的传输层协议 号、 所述第一请求报文的源 IP地址和所述第一请求报文的源端口号; 或者,
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号、 所述第一请求报文的传输层协议 号和所述第一请求报文的源 IP地址;
或者,
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号、 所述第一请求报文的传输层协议 号和所述第一请求报文的源端口号。
本实施例提供的边缘路由器, 能够通过緩存管理设备根据用户端设 备发送的请求报文为该用户设备选择对应的緩存设备请求资源, 这样, 不仅保证了对緩存设备优选原则的一致性, 同时减少了网络资源传输的 时延并减少了***的损耗。
以上各实施例中提供的边缘路由器可应用于图 6提供的报文转发系 统中, 该***包括緩存管理设备 601、 目标緩存设备 602、 用户端设备 604 , 分别与目标緩存设备 602、 用户端设备 604及緩存管理设备 601连 接的边缘路由器 603 , 边缘路由器 603为上述实施例中的任一边缘路由 哭口
具体的图 6中同时示出了资源服务器 605以及其他的緩存设备 606。 上述实施例提供的报文转发***, 边缘路由器能够通过緩存管理设 备根据用户端设备发送的请求报文为该用户设备选择对应的緩存设备 请求资源, 这样, 不仅保证了对緩存设备优选原则的一致性, 同时减少 了网络资源传输的时延并减少了***的损耗。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分 步骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计 算机可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的 步骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可 以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不 局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围 内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种报文转发的方法, 其特征在于, 包括:
边缘路由器接收用户端设备发送的第一请求报文, 所述第一请求报 文携带所述用户端设备请求的资源的统一资源定位符 URL;
所述边缘路由器在确定所述第一请求报文与第一转发规则匹配后, 向緩存管理设备发送第二请求报文;
所述边缘路由器接收所述緩存管理设备发送的针对第二请求报文 的响应报文, 所述响应报文携带緩存管理设备选择的目标緩存设备的 IP 地址;
所述边缘路由器根据所述目标緩存设备的 IP 地址向所述目标緩存 设备请求所述用户端设备请求的资源。
2、 根据权利要求 1所述的方法, 其特征在于,
所述第一转发规则的匹配要素包括所述用户端设备请求的资源的 URL; 或者,
所述第一转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号和所述第一请求报文的传输层协议 号。
3、 根据权利要求 2所述的方法, 其特征在于,
所述第二请求报文携带所述 URL;
或者,
所述第二请求报文携带提供所述资源的服务器的 IP 地址或域名, 还携带所述资源在所述服务器上的本地资源标识。
4、 根据权利要求 1、 2或 3所述的方法, 其特征在于, 还包括: 在所述边缘路由器接收到所述响应报文后, 在所述边缘路由器上配 置针对用户端设备发送的报文的第二转发规则, 所述第二转发规则对应 的转发目的设备为所述目标緩存设备;
所述第二转发规则的匹配要素的数量多于所述第一转发规则的匹 配要素的数量;
当所述边缘路由器确定从用户端设备接收到的报文既与第一转发 规则匹配又与第二转发规则匹配后, 按照第二转发规则进行转发。
5、 根据权利要求 4所述的方法, 其特征在于,
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号、 所述第一请求报文的传输层协议 号、 所述第一请求报文的源 IP地址和所述第一请求报文的源端口号; 或者,
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号、 所述第一请求报文的传输层协议 号和所述第一请求报文的源 IP地址;
或者,
所述第二转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号、 所述第一请求报文的传输层协议 号和所述第一请求报文的源端口号。
6、 根据权利要求 5 所述的方法, 其特征在于, 所述第二转发规则 是所述边缘路由器接收到所述响应报文后, 并且在确定所述用户端设备 通过传输控制协议 TCP 从所述目标緩存设备获取所述第一请求报文请 求的资源后配置的。
7、 一种边缘路由器, 其特征在于, 包括:
第一接收单元, 用于接收用户端设备发送的第一请求报文, 所述第 一请求报文携带所述用户端设备请求的资源的统一资源定位符 URL;
第一发送单元, 用于在确定所述第一请求报文与第一转发规则匹配 后, 向緩存管理设备发送第二请求报文;
响应接收单元, 用于接收所述緩存管理设备发送的针对第二请求报 文的响应报文, 所述响应报文携带緩存管理设备选择的目标緩存设备的 IP地址;
请求单元, 用于根据所述目标緩存设备的 IP 地址向所述目标緩存 设备请求所述用户端设备请求的资源。
8、 根据权利要求 7所述的边缘路由器, 其特征在于,
所述第一转发规则的匹配要素包括所述用户端设备请求的资源的 URL; 或者,
所述第一转发规则的匹配要素包括所述第一请求报文的目的 IP 地 址、 所述第一请求报文的目的端口号和所述第一请求报文的传输层协议 号。
9、 根据权利要求 8所述的边缘路由器, 其特征在于,
所述第二请求报文携带所述 URL;
或者,
所述第二请求报文携带提供所述资源的服务器的 IP 地址或域名, 还携带所述资源在所述服务器上的本地资源标识。
10、 根据权利要求 7、 8或 9所述的边缘路由器, 其特征在于, 还 包括:
配置单元, 用于在所述响应接收单元接收到所述响应报文后, 配置 针对用户端设备发送的报文的第二转发规则, 所述第二转发规则对应的 转发目的设备为所述目标緩存设备, 其中, 所述第二转发规则的匹配要 素的数量多于所述第一转发规则的匹配要素的数量;
报文转发单元, 用于当确定从用户端设备接收到的报文既与第一转 发规则匹配又与第二转发规则匹配后, 按照第二转发规则进行转发。
11、 根据权利要求 10 所述的边缘路由器, 其特征在于, 所述配置 单元用于在所述边缘路由器接收到所述响应报文后, 并且在确定所述用 户端设备通过传输控制协议 TCP 从所述目标緩存设备获取所述第一请 求报文请求的资源后, 配置所述第二转发规则。
PCT/CN2013/080530 2012-08-02 2013-07-31 一种报文转发的方法和设备 WO2014019516A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210273271.5 2012-08-02
CN201210273271.5A CN103581765B (zh) 2012-08-02 2012-08-02 一种报文转发的方法和设备

Publications (1)

Publication Number Publication Date
WO2014019516A1 true WO2014019516A1 (zh) 2014-02-06

Family

ID=50027267

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080530 WO2014019516A1 (zh) 2012-08-02 2013-07-31 一种报文转发的方法和设备

Country Status (2)

Country Link
CN (1) CN103581765B (zh)
WO (1) WO2014019516A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018090336A1 (zh) * 2016-11-18 2018-05-24 华为技术有限公司 缓存数据获取方法、相关设备以及通信***
CN110297732A (zh) * 2019-06-14 2019-10-01 杭州迪普科技股份有限公司 一种fpga状态的检测方法及装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161427B (zh) * 2016-06-08 2020-02-11 北京兰云科技有限公司 一种网页处理方法、网络分析器及http服务器
CN106230979A (zh) * 2016-08-31 2016-12-14 北京奇艺世纪科技有限公司 视频分发方法、***和视频调度设备
CN110120917B (zh) * 2019-06-28 2024-02-02 北京瑛菲网络科技有限公司 基于内容的路由方法及装置
CN110581890B (zh) * 2019-09-10 2022-02-22 中国建设银行股份有限公司 一种服务请求的路由方法和装置
CN112839078A (zh) * 2020-12-30 2021-05-25 奇点新源国际技术开发(北京)有限公司 一种用于5g专网环境的数据转发方法、装置及电子设备
CN115767144A (zh) * 2022-10-26 2023-03-07 杭州迪普科技股份有限公司 目标视频的上传对象确定方法及装置
CN116627772B (zh) * 2023-07-20 2023-09-15 北京微吼时代科技有限公司 缓存的跟踪监控方法和***

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022414A (zh) * 2007-03-08 2007-08-22 华为技术有限公司 一种报文转发的方法和装置
CN101247210A (zh) * 2008-03-12 2008-08-20 中兴通讯股份有限公司 一种基于组播源发现协议实现组播转发树的方法
CN101394333A (zh) * 2007-09-17 2009-03-25 华为技术有限公司 转发报文的方法、装置以及网络***
US7525949B1 (en) * 2002-05-07 2009-04-28 Cisco Technology, Inc. Forwarding for network devices

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7051118B2 (en) * 1999-12-22 2006-05-23 Tibo Software, Inc. Method and apparatus for anonymous subject-based addressing
US7826487B1 (en) * 2005-05-09 2010-11-02 F5 Network, Inc Coalescing acknowledgement responses to improve network communications
CN101170452A (zh) * 2007-11-30 2008-04-30 中国电信股份有限公司 增强管理能力的内容分发网络业务提供点***及所属网络
CN101714926B (zh) * 2009-11-02 2013-01-30 福建星网锐捷网络有限公司 网络设备管理方法、装置及***
CN101764824B (zh) * 2010-01-28 2012-08-22 深圳市龙视传媒有限公司 一种分布式缓存控制方法、装置及***
CN101827039B (zh) * 2010-06-04 2013-03-20 杭州华三通信技术有限公司 一种负载分担的方法和设备
CN101938524A (zh) * 2010-09-19 2011-01-05 中兴通讯股份有限公司 一种处理p2p业务的方法及***
CN102014053A (zh) * 2010-11-17 2011-04-13 华为技术有限公司 业务下发方法、装置及通信***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7525949B1 (en) * 2002-05-07 2009-04-28 Cisco Technology, Inc. Forwarding for network devices
CN101022414A (zh) * 2007-03-08 2007-08-22 华为技术有限公司 一种报文转发的方法和装置
CN101394333A (zh) * 2007-09-17 2009-03-25 华为技术有限公司 转发报文的方法、装置以及网络***
CN101247210A (zh) * 2008-03-12 2008-08-20 中兴通讯股份有限公司 一种基于组播源发现协议实现组播转发树的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018090336A1 (zh) * 2016-11-18 2018-05-24 华为技术有限公司 缓存数据获取方法、相关设备以及通信***
CN109891929A (zh) * 2016-11-18 2019-06-14 华为技术有限公司 缓存数据获取方法、相关设备以及通信***
CN110297732A (zh) * 2019-06-14 2019-10-01 杭州迪普科技股份有限公司 一种fpga状态的检测方法及装置
CN110297732B (zh) * 2019-06-14 2024-01-23 杭州迪普科技股份有限公司 一种fpga状态的检测方法及装置

Also Published As

Publication number Publication date
CN103581765A (zh) 2014-02-12
CN103581765B (zh) 2016-12-21

Similar Documents

Publication Publication Date Title
WO2014019516A1 (zh) 一种报文转发的方法和设备
US10659354B2 (en) Processing data packets using a policy based network path
US10873451B2 (en) Content delivery network processing method, content delivery network, device, and storage medium
EP3446461B1 (en) Just in time transcoding and packaging in ipv6 networks
Kutscher et al. Information-centric networking (ICN) research challenges
EP2953319B1 (en) Method, system and various components of such a system for selecting a chunk identifier
US9628400B2 (en) Interest forwarding for interactive client anonymity
EP3080973B1 (en) Proxy interception
EP2897340B1 (en) Routing proxy for adaptive streaming
US9628542B2 (en) Hybrid HTTP and UDP content delivery
US9288261B2 (en) Network resource modification for higher network connection concurrence
US20230075806A1 (en) System and method for content retrieval from remote network regions
US10609181B2 (en) Method and apparatus for controlling service chain of service flow
US9338192B1 (en) Connection management using connection request transfer protocol
JP6663082B2 (ja) ノードタイプに基づくデータストリーミングの支援制御
WO2011116726A2 (zh) 网络缓存方法和***及dns重定向子***
WO2014023003A1 (zh) 控制数据传输的方法、装置和***
EP3588906B1 (en) Multi-path management with http/2
JP2017500679A (ja) メディアリソースフィードバック方法、装置、プログラム及び記録媒体
KR102376496B1 (ko) 서비스 스트림 분산 포워딩 시스템 및 그 방법
WO2013182030A1 (zh) 一种用于请求资源的方法、设备及***
US20150074234A1 (en) Content system and method for chunk-based content delivery
US10225318B2 (en) Method used for hypertext transfer protocol network, and broadband network gateway
KR102650733B1 (ko) 데이터 이름 기반의 정보 중심 인-네트워크 컴퓨팅을 위한 데이터 보호 방법 및 이를 이용한 시스템
KR101524470B1 (ko) 분산 모바일 컨텐츠 전달 네트워크 시스템 및 상기 시스템을 이용한 컨텐츠 제공 방법

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

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

Country of ref document: EP

Kind code of ref document: A1