WO2014075269A1 - 业务报文处理方法、设备和系统 - Google Patents

业务报文处理方法、设备和系统 Download PDF

Info

Publication number
WO2014075269A1
WO2014075269A1 PCT/CN2012/084678 CN2012084678W WO2014075269A1 WO 2014075269 A1 WO2014075269 A1 WO 2014075269A1 CN 2012084678 W CN2012084678 W CN 2012084678W WO 2014075269 A1 WO2014075269 A1 WO 2014075269A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
interface
physical interface
packet
osp
Prior art date
Application number
PCT/CN2012/084678
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 华为技术有限公司
Priority to CN201280002563.3A priority Critical patent/CN103959732B/zh
Priority to PCT/CN2012/084678 priority patent/WO2014075269A1/zh
Publication of WO2014075269A1 publication Critical patent/WO2014075269A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present invention relates to communications technologies, and in particular, to a service packet processing method, device, and system. Background technique
  • the Open Service Platform provides a variety of telecom value-added services based on fixed networks, data networks, and mobile networks quickly, flexibly, efficiently, and economically to meet and adapt operators and users to improve existing services. And the ability to expand new business.
  • the OSP services are connected to the network layer in the bypass mode. As the user needs to personalize the services, the OSP service processing may be performed on the physical layer. However, the OSP does not support the hardware accessing the network devices. Resources. In the prior art, if the OSP service is to be processed on the physical layer, after the data packet enters the physical interface of the network device, it is redirected to the OSP before the normal forwarding, and the data packet completes the OSP service. After processing, return to the same physical interface in the network device to continue the forwarding process.
  • the services configured on the physical interface of the network device are always valid on the interface.
  • the OSP service is processed on the physical layer, the data is forwarded to the OSP before being redirected to the OSP.
  • the service application on the physical interface of the network device after the data packet is processed and returned to the physical interface of the network device, the service application configured on the physical interface of the network device is performed again, thereby causing the service to be repeatedly applied.
  • the embodiment of the present invention provides a method, a device, and a system for processing a service packet, which are used to solve the problem that the service application is repeatedly configured on the physical port when the OSP service is processed at the physical layer in the prior art, and the service is repeatedly applied. .
  • the embodiment of the present invention provides a service packet processing method, including: receiving a first service packet on a first physical interface;
  • the method after receiving the first service packet on the first physical interface, the method further includes:
  • the first service packet is sent to the 0SP for service processing, and the second service packet is obtained, specifically:
  • the service packet is processed by the service packet to obtain the second service packet.
  • the receiving by the
  • the sending by the first physical interface or the second physical interface, the second service packet for completing the service application, specifically:
  • the service packet processing method further includes:
  • the interface resource of the first virtual interface is reclaimed.
  • the method further includes:
  • the receiving the second service packet sent by the OSP includes:
  • the sending by the first physical interface or the second physical interface, the second service packet for completing the service application, specifically:
  • the second service packet is read from the second packet queue corresponding to the second physical interface, and the second service packet of the service application is sent on the second physical interface.
  • the service packet processing method further includes:
  • the receiving packet queue sends the first service packet, and stops sending the second service packet in the second sending packet queue;
  • the receiving by the first virtual interface corresponding to the first physical interface, the receiving Before the first service packet in the queue, it also includes:
  • the embodiment of the present invention further provides a network device, including:
  • a receiving module configured to receive a first service packet on the first physical interface
  • a service gateway configured to send the first service packet to the open service platform OSP for service processing, receive the second service packet sent by the OSP, and perform the first service packet with the first service packet
  • the service application corresponding to the physical interface
  • a sending module configured to send, on the first physical interface or the second physical interface, a second service packet that completes the service application.
  • the service gateway is configured to send the first service packet to a receiving queue corresponding to the first physical interface, and the foregoing
  • the first virtual interface corresponding to the physical interface receives the first service packet in the receiving queue, and sends the first service packet received on the first virtual interface to the first a service interface, configured to enable the OSP to perform service processing on the first service packet received by the first service interface, to obtain the second service packet, and receive the OSP on the first virtual interface.
  • the second service packet sent by the first service interface the service application corresponding to the first physical interface is performed on the second service packet, and the second service packet of the service application is completed.
  • Sending to the first sending packet queue corresponding to the first physical interface; the sending module is specifically configured to read the second service packet of the service application from the first sending queue, and pass the First item The interface is sent.
  • the network device further includes:
  • the network device further includes:
  • An interface allocation module configured to allocate the first virtual interface to the service gateway, bind the first physical interface to the first virtual interface, and associate the first virtual interface with the OSP The first business interface is bound.
  • the service gateway is configured to send the first service packet to a receiving queue corresponding to the first physical interface, and the foregoing
  • the first virtual interface corresponding to a physical interface receives the first service packet in the receiving queue, and sends the first service packet received on the first virtual interface to the OSP.
  • the first service interface, the OSP performs service processing on the first service packet received on the first service interface, and obtains the second service packet, and receives the OSP on the second virtual interface. Transmitting, by the second service packet, the second service packet, the service application corresponding to the first physical interface, and sending the second service packet of the service application to the second service packet a second packet queue corresponding to the second physical interface;
  • the sending module is configured to read the second service packet of the service application from the second sending queue, and send the second service packet by using the second physical interface.
  • the network device further includes:
  • a service control module configured to acquire an interface state of the first physical interface and an interface state of the second physical interface, where the interface state of the first physical interface and the interface state of the second physical interface are both stopped a state, the sending of the first service packet to the receiving queue is stopped, and the sending of the second service packet in the second sending queue is stopped, if the interface status of the first physical interface is The interface status of the second physical interface is the closed state, and the interface resources of the first virtual interface and the second virtual interface are recovered.
  • the network device further includes:
  • An interface allocation module configured to allocate the first virtual interface and the second virtual interface to the service gateway, bind the first physical interface to the first virtual interface, and bind the first The virtual interface is bound to the first service interface of the OSP, and the second virtual interface is bound to the second service interface of the OSP.
  • the third aspect provides a service packet processing system, including any one of the network device and the open service platform OSP according to the second aspect;
  • the OSP is configured to perform OSP service processing on the text.
  • the service packet processing method, device, and system provided by the embodiment of the present invention change the sending and receiving process of the service packet, so that the service packet received by the network device from the physical interface can be processed by the OSP service and then configured in the physical
  • the application of the service on the interface avoids the repeated application of the service application on the physical port to implement the OSP service processing on the physical layer.
  • FIG. 1 is a flowchart of a method for processing a service packet according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for processing a service packet according to an embodiment of the present invention
  • a flow chart of a service packet processing method is shown in FIG. 4
  • FIG. 4 is a schematic diagram of a message flow of an online physical model corresponding to the side-by-side process mode shown in FIG. ;
  • FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another network device according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of another network device according to an embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of a service packet processing system according to an embodiment of the present invention
  • FIG. 10 is a schematic structural diagram of a hardware structure of a network device according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a method for processing a service packet according to an embodiment of the present invention. As shown in FIG. 1 , the method for processing a service packet includes:
  • the network device has multiple physical interfaces, and the network device is connected to other devices or networks through a physical interface.
  • the user terminal device can be connected to the network device through the first physical interface of the network device, and the user terminal device and the first physical interface can be connected by wire or wirelessly.
  • the first service packet sent by the user terminal device and required to perform service processing and application is received on the first physical interface of the network device.
  • the first service packet received on the first physical interface of the network device is a packet that needs to perform OSP service processing on the first physical interface.
  • the service gateway in the network device sends the first service packet to the OSP for service processing.
  • the network device is configured with a service gateway, where the service gateway is configured to exchange data packets between each module and the interface in the network device, and the network device configures the received first service packet in the first physical interface.
  • the first service packet is sent to the OSP through the service gateway.
  • the OSP After the OSP processes the first service packet, the OSP generates the second service packet.
  • the second service packet is a message that has only been subjected to OSP service processing for the first packet.
  • the physical interface immediately configures the packet in the physical The service application on the interface; if the OSP service is required to be processed, the physical interface does not perform the service application configured on the physical interface, but is sent to the OSP for processing the OSP service through the service gateway.
  • the OSP can be a module configured in a network device or a standalone device outside the network device.
  • the service gateway receives the second service packet sent by the OSP, and performs a service application corresponding to the first physical interface for the second service packet. Specifically, the OSP sends the second service packet that is processed by the OSP service to the service gateway. After receiving the second service packet, the service gateway completes the service application configured on the first physical interface. In this way, the process of performing the OSP service processing on the service packet sent by the user terminal device at the physical layer and then configuring the service application on the physical port is implemented.
  • the second physical interface of the network device can be connected to other devices or the Internet.
  • the network device can configure the service packets sent by the user terminal device to all the service processing and service applications in the network device through the second physical interface, and then send the service packets to other devices or networks.
  • the second service packet that completes the service application may be sent out from the first physical interface or sent from the second physical interface, according to the configuration of the OSP service mode.
  • the second service packet that is configured to be processed by the OSP service and configured on the first physical interface is sent back to the first physical interface and sent out through the first physical interface.
  • the second service packet of the service application and the service application configured on the first physical interface may be sent to the service gateway to continue the other services configured in the network device, and then Send to other devices or networks through the second physical interface.
  • the service packet received by the network device from the physical interface may be processed by the OSP service and then configured on the physical interface, so as to avoid being configured on the physical port.
  • the business is repeatedly applied to implement the process of processing the OSP service on the physical layer.
  • FIG. 2 is a flowchart of another method for processing a service packet according to an embodiment of the present invention.
  • the embodiment of the present invention details the mode of the dual-port transceiver mode;
  • the service packet processing method in this embodiment includes:
  • the network device receives the first service packet on the first physical interface of the network device. See 101 in the embodiment shown in Figure 1, and details are not described herein.
  • the service gateway of the network device sends the first service packet to a receiving queue corresponding to the first physical interface.
  • the service packet is configured to be in the service gateway, where the packet is queued with the first physical interface, and after the first service packet is received on the first physical interface of the network device, the service packet is configured. Before the service application on the first physical interface, the service gateway sends the first service packet to the receiving queue.
  • the service gateway receives the first service packet in the receiving queue from the first virtual interface corresponding to the first physical interface.
  • the service gateway periodically reads the packet from the packet receiving queue, and after receiving the first service packet that needs to be processed by the OSP service, receives the packet from the first virtual interface corresponding to the first physical interface.
  • the first business message The first virtual interface is assigned by the network device to the service gateway and is bound to the first physical interface.
  • the service gateway reads the first service packet from the packet receiving queue and receives the first service packet read from the first virtual interface by using the binding relationship between the first virtual interface and the first physical interface.
  • the service gateway sends the first service packet received by the first virtual interface to the first
  • the service interface is configured to enable the OSP to perform service processing on the first service packet received on the first service interface to obtain a second service packet.
  • the service gateway sends the packet received on the first virtual interface to the first service interface of the OSP.
  • the network device binds the first service interface of the OSP to the first virtual interface of the service gateway.
  • the OSP can perform the corresponding OSP service processing on the first service packet to obtain the second service packet.
  • the first service packet received by the network device from the first physical interface is forwarded through the service gateway only before the OSP service is performed, which is equivalent to directly performing the OSP service on the first physical interface of the first service packet.
  • the service gateway receives, on the first virtual interface, a second service packet that is sent by the OSP through the first service interface.
  • the OSP service mode used in the network device is a dual-port transceiver mode, that is, the packet needs to be sent from the first physical interface, and the OSP passes the second service packet processed by the OSP service through the first service interface.
  • the service gateway performs a service application corresponding to the first physical interface to the second service packet.
  • the service application configured on the first physical interface is reconfigured on the service gateway, and the service gateway is configured from the first
  • the virtual interface receives the second service packet
  • the second service packet can be reconfigured to the service application on the first physical interface on the service gateway.
  • the service gateway sends the second service packet of the service application to the first packet sending queue corresponding to the first physical interface.
  • the service gateway is further configured with a first sending packet ⁇ ij corresponding to the first physical interface, and the service gateway completes the service application after the second service packet is configured to be applied to the service on the first physical interface.
  • the second service packet is sent to the first packet queue.
  • the service gateway reads the second service packet of the service application from the first sending packet queue corresponding to the first physical interface, and sends the second service packet by using the first physical interface.
  • the service gateway periodically reads the packet from the first packet sending queue, and if the packet to be sent is read, the packet is sent through the first physical interface, where the packet is the second application for completing the service application.
  • the service packet completes the network device receiving the packet from the first physical interface.
  • the process is sent from the first physical interface.
  • the first service packet received by the network device on the first physical interface is not limited to the packet sent by the user terminal, and may be the packet sent by the other device or the network to the user terminal.
  • the service packet processing method does not limit the sending and receiving direction of service packets.
  • the service processing and application process of the service information are changed, and the service application configured on the first physical interface of the network device is changed by setting the receiving queue and the sending packet queue corresponding to the physical interface in the service gateway of the network device.
  • the service packet is reconfigured on the service gateway, and the service packet received by the network device from the first physical interface can be processed by the 0 SP service, and then the service application configured on the first physical interface is performed, and after the service application is completed,
  • the service packet is re-transmitted from the first physical interface, and the process of processing the OSP service by using the bidirectional port transceiver mode on the physical layer is implemented.
  • the network device may scan the first physical interface state, and control the service state according to the state of the first physical interface.
  • the status of a physical interface can be divided into a normal state, a stopped state, and a closed state.
  • the OSP service processing of the embodiment is normally performed; this state is used when the OSP service processing needs to be performed at the physical layer.
  • the service gateway stops sending to the receiving queue. The first service packet is sent, and the second service packet in the first packet queue is stopped. The state is used to reduce the forwarding process of the service packet when the OSP service processing application is temporarily unavailable for a period of time.
  • the network device When the interface status of the first physical interface is off, the network device reclaims the address resource of the virtual interface that has been allocated, including reclaiming the interface address resource allocated to the first virtual interface of the service gateway; When the OSP service is processed, the address resources of the network device can be saved.
  • the network device performs an interface allocation and binding process before the first physical interface receives the first service packet.
  • the method includes: assigning the first virtual interface to the service gateway. Binding the first physical interface to the first virtual interface; binding the first virtual interface with the first service interface.
  • the service application configured on the first physical interface is reconfigured on the service gateway.
  • FIG. 3 is a flowchart of still another method for processing a service packet according to an embodiment of the present invention.
  • the embodiment of the OSP service mode is a bypass process mode in detail.
  • the service packet processing method in this embodiment includes:
  • the network device receives the first service packet on the first physical interface of the network device. Referring to 101 in the embodiment shown in Fig. 1, it is not mentioned here.
  • the service gateway of the network device sends the first service packet to a receiving queue corresponding to the first physical interface. See 202 in the embodiment shown in Figure 2, and details are not described herein.
  • the service gateway receives the first service packet in the receiving queue from the first virtual interface corresponding to the first physical interface. See 203 in the embodiment shown in Figure 2, and details are not described herein.
  • the service gateway sends the first service packet received on the first virtual interface to the first
  • the service interface is configured to enable the OSP to perform service processing on the first service packet received on the first service interface to obtain a second service packet. Referring to FIG. 2 in the embodiment shown in FIG. 2, details are not described herein again.
  • the service gateway receives, on the second virtual interface, a second service packet that is sent by the OSP through the second service interface.
  • the second virtual interface is allocated by the network device to the service gateway, and the second service interface of the OSP is bound to the second virtual interface of the service gateway.
  • the OSP service mode used in the network device is in the bypass process mode. Therefore, the message needs to be sent from the second physical interface, and the OSP sends the second service packet processed by the OSP service to the service through the second service interface.
  • the second virtual interface of the gateway is allocated by the network device to the service gateway, and the second service interface of the OSP is bound to the second virtual interface of the service gateway.
  • the OSP service mode used in the network device is in the bypass process mode. Therefore, the message needs to be sent from the second physical interface, and the OSP sends the second service packet processed by the OSP service to the service through the second service interface.
  • the second virtual interface of the gateway is allocated by the network device to the service gateway, and the second service interface of the OSP is bound to the second virtual interface of the service gateway.
  • the OSP service mode used in the network device is in the bypass process mode. Therefore
  • the service gateway performs a service corresponding to the first physical interface on the second service packet. Application.
  • the service application configured on the first physical interface is reconfigured on the service gateway, and the service gateway receives the second from the second virtual interface.
  • the second service packet can be reconfigured to be applied to the service on the first physical interface on the service gateway.
  • the service gateway sends the second service packet of the service application to the second packet queue corresponding to the second physical interface.
  • the service gateway is further configured with a second sending packet ⁇ ij corresponding to the second physical interface, where the service gateway completes the second service packet after the service application on the first physical interface is configured, and the second service is configured.
  • the packet carries out the other service forwarding process in the network device, and sends the second service packet of all the service processing and application in the network device to the second sending packet queue.
  • the network device may be configured with other service modules in addition to the OSP.
  • the service gateway forwards the second service packet of the application configured on the first physical interface to another service module, and the other service module sends the second service packet to the second service packet.
  • the second service packet is sent to the service gateway, and the service gateway sends the second service packet to the second delivery packet queue.
  • the service gateway reads the second service packet of the service application from the second sending packet queue corresponding to the second physical interface, and sends the second service packet by using the second physical interface.
  • the service gateway periodically reads the packet from the second packet sending queue. If the packet needs to be sent, the packet is sent through the second physical interface, and the packet is used to complete all the services in the network device. Processing and applying the second service packet, that is, after the network device receives the packet from the first physical interface, performs the OSP service processing, and configures the service application on the first physical interface, and then sends the packet from the second physical interface. process.
  • the first service packet received by the network device on the first physical interface is not limited to the received packet sent by the user terminal device, and may be the packet sent by the other device or the network to the user terminal.
  • the service packet processing method provided by this embodiment does not limit the sending and receiving direction of service packets.
  • FIG. 4 shows the flow of the packet processing for the OSP side-by-side process mode.
  • the hang-up mode indicates that the service packet is forwarded to the OSP for service processing, and then sent back to the network device for other service applications.
  • the network device 41 includes the service gateway 52, and the OSP 51 is set to the bypass process. The mode is equivalent to relocating the packet received by the network device 41 from the first physical interface to the OSP 51. After the OSP service is completed, the service gateway 52 is returned to the service gateway 52 for other service processing and application.
  • FIG. 5 is a side-by-side process shown in FIG.
  • the OSP 51 is directly configured between the first physical interface and the service gateway 52, and an online physical model is established.
  • the service processing and application process of the service information are changed, and the service application configured on the first physical interface of the network device is changed by setting the receiving queue and the sending packet queue corresponding to the physical interface in the service gateway of the network device.
  • the service packet is reconfigured on the service gateway, and the service packet received by the network device from the first physical interface can be processed by the 0 SP service, and then the service application configured on the first physical interface is performed, and after the service application is completed,
  • the service packet is sent out from the second physical interface, and the process of processing the OSP service in the bypass process mode is implemented on the physical layer.
  • the network device may scan the interface status of the first physical interface and the second physical interface, and control the service status according to the interface status of the first physical interface and the second physical interface.
  • the status of a physical interface can be divided into a normal state, a stopped state, and a closed state.
  • the OSP service processing in this embodiment is performed normally; this state is used when the OSP service processing needs to be performed at the physical layer.
  • the service gateway stops sending the first service packet to the receiving queue, and stops sending the second service packet in the second sending queue; When the OSP service processing is not required, the forwarding process of service packets can be reduced.
  • the network device When the interface status of the first physical interface and the second physical interface are off, the network device recovers the address resource of the virtual interface that has been allocated, including recovering the interface address resource of the first virtual interface and the second virtual interface allocated to the service gateway. ; This state is used for long periods of time
  • the address resources of the network device can be saved.
  • the network device performs an interface allocation and binding process before the first physical interface receives the first service packet.
  • the method includes: assigning the first virtual interface and the second virtual interface to the service Gateway. Binding the first physical interface to the first virtual interface; binding the first virtual interface to the first service interface; and binding the second virtual interface to the second service interface.
  • the service application configured on the first physical interface is reconfigured on the service gateway.
  • FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention. As shown in FIG. 6, the network device 11 of this embodiment includes:
  • the receiving module 21 is configured to receive the first service packet on the first physical interface of the network device 11.
  • the service gateway 22 is configured to send the first service packet to the open service platform OSP 12 for service processing, receive the second service packet sent by the OSP 12, and perform the service corresponding to the first physical interface on the second service packet. application.
  • the sending module 23 is configured to send, on the first physical interface or the second physical interface of the network device 11, a second service packet that completes the service application.
  • the network device 11 may send the second service packet that completes the service application from the first physical interface or from the second physical interface.
  • the second service packet that is configured to be processed by the OSP service and configured on the first physical interface is sent back to the first physical interface and sent out through the first physical interface.
  • the second service packet of the service application and the service application configured on the first physical interface may be sent to the service gateway to continue the other services configured in the network device, and then Send to other devices or networks through the second physical interface.
  • the foregoing network device is used to perform the technical solution of the method embodiment shown in FIG. 1 of the present invention.
  • the principle and the technical effect are similar, and details are not described herein again.
  • the network device 11 is used to perform the technical solution of the method embodiment shown in FIG. 2 of the present invention.
  • the service gateway 22 is configured to send the first service packet to the packet receiving queue corresponding to the first physical interface, and receive the first service in the receiving queue from the first virtual interface corresponding to the first physical interface.
  • the packet is sent to the first service interface of the first virtual interface to the first service interface of the OSP 12, so that the OSP 12 performs the service processing on the first service packet received by the first service interface, and obtains the second service packet.
  • a service packet a service packet; and receiving, by the first virtual interface, a second service packet sent by the OSP 12 through the first service interface, The second service packet is sent to the first application packet corresponding to the first physical interface, and the service application corresponding to the first physical interface is sent to the first application packet.
  • the sending module 23 is configured to read the second service packet of the completed service application from the first sending packet queue, and send the second service packet by using the first physical interface.
  • FIG. 7 is a schematic structural diagram of another network device according to an embodiment of the present invention.
  • the network device 11 of the present embodiment further includes a service control module 24 on the basis of FIG. 6;
  • the service control module 24 is configured to obtain an interface state of the first physical interface, and if the interface state of the first physical interface is a stop state, stop sending the first service packet to the receiving queue, and The second service packet in the first packet sending queue is stopped. If the interface state of the first physical interface is in the closed state, the interface resource allocated to the first virtual interface of the service gateway 22 is recovered.
  • the network device in this embodiment scans the interface status of the first physical interface by the service control module 24, and controls whether to perform OSP service processing, which can improve the sending and receiving efficiency when the packet does not need to be processed by the OSP service, and save network resources. .
  • FIG. 8 is a schematic structural diagram of another network device according to an embodiment of the present invention.
  • the network device 11 of this embodiment further includes an interface allocation module 25 on the basis of FIG. 7;
  • the interface allocation module 25 is configured to allocate the first virtual interface to the service gateway 22, bind the first physical interface to the first virtual interface, and combine the first virtual interface with the first of the OSP 12. Business interface binding.
  • the network device in this embodiment is configured to allocate an interface resource to the service gateway and the OSP in the network device and bind the interface, so that the network device can perform OSP service processing at the physical layer according to the interface binding relationship.
  • the network device 11 is configured to perform the technical solution of the method embodiment shown in FIG. 3 of the present invention.
  • the service gateway 22 is configured to send the first service packet to the receiving queue corresponding to the first physical interface, and receive the first service in the receiving queue from the first virtual interface corresponding to the first physical interface.
  • the packet is sent to the first service interface of the first virtual interface to the first service interface of the OSP 12, so that the OSP 12 performs the service processing on the first service packet received by the first service interface, and obtains the second service packet.
  • the second service packet is sent to the second sending packet queue corresponding to the second physical interface.
  • the sending module 23 is configured to read the second service packet of the completed service application from the second sending packet queue, and send the second service packet by using the second physical interface.
  • the service control module 24 is configured to obtain an interface state of the first physical interface and an interface state of the second physical interface, if the interface state of the first physical interface is If the interface status of the second physical interface is the stop state, the first service packet is sent to the packet receiving queue, and the second service packet in the second packet sending queue is stopped. If the interface status of the physical interface is all off, the interface resources of the first virtual interface and the second virtual interface allocated to the service gateway 22 are recovered.
  • the network device in this embodiment scans the interface status of the first physical interface and the second physical interface by the service control module 24, and controls whether to perform OSP service processing, and improves the sending and receiving efficiency when the packet does not need to perform OSP service processing. And save network resources.
  • the interface allocation module 25 is configured to allocate the first virtual interface and the second virtual interface to the service gateway 22, and bind the first physical interface to the first virtual interface.
  • the first virtual interface is bound to the first service interface of the OSP 12, and the second virtual interface is bound to the second service interface of the OSP 12.
  • the network device in this embodiment is configured to allocate an interface resource to the service gateway and the OSP in the network device and bind the interface, so that the network device can perform OSP service processing at the physical layer according to the interface binding relationship.
  • FIG. 9 is a schematic structural diagram of a service packet processing system according to an embodiment of the present invention. As shown in FIG. 9, the service processing system of the embodiment includes:
  • the network device 61 is configured to perform the functions of any of the foregoing network device embodiments.
  • the OSP 62 is configured to perform OSP service processing on the service text.
  • the OSP 62 and the network device 61 may be deployed integrally or separately.
  • the OSP 62 may also be a distributed structure, a part of which is deployed inside the network device 61, and a part of which is deployed outside the network device 61. This embodiment is not limited.
  • FIG. 10 is a schematic diagram of a hardware structure of a network device according to an embodiment of the present invention.
  • the network device 11 includes a first physical interface 71, a processor 72, and a memory 73.
  • the first physical interface 71, the processor 72, and the memory 73 may be connected through a system bus or other manners, and the system bus is connected as an example in FIG. 10; the system bus may be an ISA bus or a PCI. Bus or EISA bus, etc.
  • the system bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one line is shown in Figure 10, but it does not mean that there is only one bus or one type of bus.
  • Program code is stored in the memory 73, and the program code includes computer operation instructions.
  • the first physical interface 71 is configured to receive a first service packet.
  • the processor 72 executes the program code, and sends the first service packet to the open service platform OSP for service processing, receives the second service packet sent by the OSP, and performs the first physical interface with the second service packet. 71 corresponding business applications.
  • the OSP service mode includes a dual port transceiver mode and a bypass process mode.
  • the OSP service mode configured by the network device 11 is a dual port transceiver mode, and is used to perform the method shown in FIG. 2 of the present invention
  • the processor 72 is configured to send the first service packet to the receiving queue corresponding to the first physical interface 71, and receive the first service in the receiving queue from the first virtual interface corresponding to the first physical interface 71.
  • the packet is sent to the first service interface of the OSP, so that the OSP performs service processing on the first service packet received by the first service interface, and obtains the second service packet.
  • the message is sent to the first packet sending queue corresponding to the first physical interface 71, and the second service packet of the service application is read from the first sending queue corresponding to the first physical interface 71, and sent to the first physical interface 71.
  • the first physical interface 71 is configured to send a second service packet that completes the service application.
  • the processor 72 is further configured to obtain an interface state of the first physical port 71. If the interface state of the first physical interface 71 is a stop state, the device stops receiving. The packet queue sends the first service packet, and stops sending the second service packet in the first packet queue. If the interface status of the first physical interface 71 is off, the interface of the first virtual interface allocated to the service gateway is recovered. Resources. Further, the processor 72 is further configured to allocate the first virtual interface to the service gateway, bind the first physical interface 71 to the first virtual interface, and bind the first virtual interface to the first service interface.
  • the OSP service mode configured by the network device 11 is a bypass process mode, and is used to perform the method shown in FIG. 3 of the present invention.
  • FIG. 11 it is an embodiment of the present invention.
  • a schematic diagram of a hardware structure of another network device is provided.
  • the network device 11 further includes: a second physical interface 74, based on the network device 11 shown in FIG.
  • the processor 72 is configured to send the first service packet to the receiving queue corresponding to the first physical interface 71, and receive the first service in the receiving queue from the first virtual interface corresponding to the first physical interface 71.
  • the packet is sent to the first service interface of the OSP, so that the OSP performs service processing on the first service packet received by the first service interface, and obtains the second service packet.
  • the packet is sent to the second packet sending queue corresponding to the second physical interface 74, and the second service packet of the service application is read from the second sending queue corresponding to the second physical interface 74, and sent to the second packet.
  • Physical interface 74 Physical interface 74.
  • the second physical interface 74 is configured to send a second service packet that completes the service application.
  • the processor 72 is further configured to obtain an interface state of the first physical interface 71 and an interface state of the second physical interface 74, if the first physical interface 71 is If the interface state and the interface state of the second physical interface 74 are both in the stop state, the first service packet is stopped from being sent to the packet receiving queue, and the second service packet in the second packet sending queue is stopped.
  • the interface state of the interface and the interface state of the second physical interface 74 are both closed, and the interface resources of the first virtual interface and the second virtual interface allocated to the service gateway are recovered.
  • the processor 72 is further configured to allocate the first virtual interface and the second virtual interface to the service gateway, and bind the first physical interface 71 to the first virtual interface, and connect the first virtual interface with the first service.
  • the interface is bound to bind the second virtual interface to the second service interface.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the above-described method embodiments; and 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

本发明实施例提供一种业务处理方法、设备和系统。一种业务处理方法包括:在第一物理接口上接收第一业务报文;将所述第一业务报文发送给开放业务平台OSP进行业务处理;接收所述OSP发送的第二业务报文,对所述第二业务报文进行与所述第一物理接口对应的业务应用;在所述第一物理接口或第二物理接口上发送完成业务应用的第二业务报文。本发明实施例提供的业务处理方法、设备和系统,用于解决现有技术中在物理层进行OSP业务处理时,重复进行配置在物理端口上的业务应用,导致业务重复应用的问题。

Description

业务报文处理方法、 设备和系统
技术领域 本发明实施例涉及通信技术, 尤其涉及一种业务报文处理方法、 设备 和系统。 背景技术
开放业务平台 ( Open Service Platform, OSP ) 可快速、 灵活、 高效、 经济地提供多种基于固定网络、数据网络、移动网络之上的电信增值业务, 以满足和适应运营商和用户完善现有业务和拓展新业务的能力。
现有网络设备中, OSP业务大多是通过旁挂方式进行网络层的连接, 随着用户对业务个性化的需求, 可能需要在物理层上进行 OSP业务处理, 但是 OSP不支持访问网络设备的硬件资源。现有技术中,如果要在物理层 上进行 OSP业务处理, 则要在数据报文进入网络设备的物理接口后,在被 正常转发之前, 先被重定向到 OSP , 数据报文进行完 OSP业务处理后, 再返回到网络设备中的同一物理接口继续转发过程。
由于配置在网络设备物理接口上的业务总是在该接口上生效, 导致现 有技术提供的在物理层上进行 OSP业务处理时,会在数据报文被重定向到 OSP之前先进行一次配置在该网络设备物理接口上的业务应用,数据报文 进行完 OSP业务处理返回到该网络设备的物理接口后 ,会再进行一次配置 在该网络设备物理接口上的业务应用, 从而导致业务重复应用。 发明内容
本发明实施例提供一种业务报文处理方法、 设备和系统, 用于解决现 有技术中在物理层进行 OSP业务处理时,重复进行配置在物理端口上的业 务应用, 导致业务重复应用的问题。
第一方面, 本发明实施例提供一种业务报文处理方法, 包括: 在第一物理接口上接收第一业务报文;
将所述第一业务报文发送给开放业务平台 OSP进行业务处理; 接收所述 OSP发送的第二业务报文,对所述第二业务报文进行与所述 第一物理接口对应的业务应用;
在所述第一物理接口或第二物理接口上发送完成业务应用的第二业 务报文。
在第一方面的第一种可能实现方式中, 所述在第一物理接口上接收第 一业务报文之后, 还包括:
将所述第一业务报文发送到与所述第一物理接口对应的收包队列中; 从与所述第一物理接口对应的第一虚拟接口接收所述收包队列中的 所述第一业务报文;
相应地, 所述将第一业务报文发送给 0SP进行业务处理,得到第二业 务报文, 具体为:
将所述第一虚拟接口上接收的所述第一业务报文发送给所述 0SP 的 所述第一业务接口,以使所述 0 SP对所述第一业务接口上接收的所述第一 业务报文进行业务处理, 得到所述第二业务报文。
根据第一方面的第一种可能实现方式, 在第二种可能实现方式中, 所 述接收所述 0SP发送的所述第二业务报文, 包括:
在所述第一虚拟接口上接收所述 0SP 通过所述第一业务接口发送的 所述第二业务报文;
相应地, 所述在所述第一物理接口或第二物理接口上发送完成业务应 用的第二业务报文, 具体为:
将完成业务应用的所述第二业务报文发送至所述第一物理接口对应 的第一发包队列中;
从与所述第一物理接口对应的所述第一发包队列中读取完成业务应 用的所述第二业务报文, 并在所述第一物理接口上发送完成业务应用的所 述第二业务报文。
根据第一方面的第二种可能实现方式, 在第三种可能实现方式中, 该 业务报文处理方法, 还包括:
获取所述第一物理接口的接口状态;
若所述第一物理接口的接口状态为停止状态, 则停止向所述收包队列 发送所述第一业务报文, 并停止发送所述第一发包队列中的所述第二业务 报文;
若所述第一物理接口的接口状态为关闭状态, 则回收所述第一虚拟接 口的接口资源。
根据第一方面的第一种至第三种中的任一种可能实现方式, 在第四种 可能实现方式中, 所述从与所述第一物理接口对应的所述第一虚拟接口接 收所述收包队列中的第一业务报文之前, 还包括:
分配所述第一虚拟接口;
将所述第一物理接口与所述第一虚拟接口绑定, 并将所述第一虚拟接 口与所述 OSP的第一业务接口绑定。
根据第一方面的第一种可能实现方式, 在第五种可能实现方式中, 所 述接收所述 OSP发送的所述第二业务报文, 包括:
在第二虚拟接口上接收所述 OSP 通过第二业务接口发送所述第二业 务报文;
相应地, 所述在所述第一物理接口或第二物理接口上发送完成业务应 用的第二业务报文, 具体为:
将完成业务应用的所述第二业务报文发送至所述第二物理接口对应 的第二发包队列中;
从与所述第二物理接口对应的所述第二发包队列中读取所述第二业 务报文, 并在所述第二物理接口上发送完成业务应用的所述第二业务报 文。
根据第一方面的第五种可能实现方式, 在第六种可能实现方式中, 该 业务报文处理方法, 还包括:
获取所述第一物理接口的接口状态与所述第二物理接口的接口状态; 若所述第一物理接口的接口状态与所述第二物理接口的接口状态均 为停止状态, 则停止向所述收包队列发送所述第一业务报文, 并停止发送 所述第二发包队列中的第二业务报文;
若所述第一物理接口的接口状态与所述第二物理接口的接口状态均 为关闭状态, 则回收所述第一虚拟接口和所述第二虚拟接口的接口资源。
根据第一方面的第五种或第六种可能实现方式, 在第七种可能实现方 式中, 所述从与所述第一物理接口对应的所述第一虚拟接口接收所述收包 队列中的第一业务报文之前, 还包括:
分配所述第一虚拟接口、 所述第二虚拟接口;
将所述第一物理接口与所述第一虚拟接口绑定, 并将所述第一虚拟接 口与所述 OSP的第一业务接口绑定, 将所述第二虚拟接口与所述 OSP的 第二业务接口绑定。
第二方面, 本发明实施例还提供一种网络设备, 包括:
接收模块, 用于在第一物理接口上接收第一业务报文;
业务网关 ,用于将所述第一业务报文发送给开放业务平台 OSP进行业 务处理,接收所述 OSP发送的第二业务报文, 并对所述第二业务报文进行 与所述第一物理接口对应的业务应用;
发送模块, 用于在所述第一物理接口或第二物理接口上发送完成业务 应用的第二业务报文。
在第二方面的第一种可能实现方式中, 所述业务网关, 具体用于将所 述第一业务报文发送到与所述第一物理接口对应的收包队列中, 从与所述 第一物理接口对应的第一虚拟接口接收所述收包队列中的所述第一业务 报文, 将所述第一虚拟接口上接收的所述第一业务报文发送给所述 OSP 的第一业务接口,以使所述 OSP对所述第一业务接口上接收的所述第一业 务报文进行业务处理, 得到所述第二业务报文, 在所述第一虚拟接口上接 收所述 OSP通过所述第一业务接口发送的所述第二业务报文,对所述第二 业务报文进行与所述第一物理接口对应的业务应用, 将完成业务应用的所 述第二业务报文发送到与所述第一物理接口对应的第一发包队列中; 所述发送模块, 具体用于从所述第一发包队列中读取完成业务应用的 所述第二业务报文, 并通过所述第一物理接口发送。
根据第二方面的第一种可能实现方式, 在第二种可能实现方式中, 该 网络设备, 还包括:
业务控制模块, 用于获取所述第一物理接口的接口状态, 若所述第一 物理接口的接口状态为停止状态, 则停止向所述收包队列发送所述第一业 务报文, 并停止发送所述第一发包队列中的所述第二业务报文, 若所述第 一物理接口的接口状态为关闭状态, 则回收所述第一虚拟接口的接口资 源。 根据第二方面的第一种或第二种可能实现方式, 在第三种可能实现方 式中, 该网络设备, 还包括:
接口分配模块, 用于将所述第一虚拟接口分配给所述业务网关, 将所 述第一物理接口与所述第一虚拟接口绑定, 并将所述第一虚拟接口与所述 OSP的第一业务接口绑定。
在第二方面的第四种可能实现方式中, 所述业务网关, 具体用于将所 述第一业务报文发送到与所述第一物理接口对应的收包队列中, 从与所述 第一物理接口对应的所述第一虚拟接口接收所述收包队列中的所述第 ― 业务报文, 将所述第一虚拟接口上接收的所述第一业务报文发送给所述 OSP的第一业务接口, 以使所述 OSP对所述第一业务接口上接收的所述 第一业务报文进行业务处理, 得到所述第二业务报文, 在第二虚拟接口上 接收所述 OSP通过第二业务接口发送的所述第二业务报文,对所述第二业 务报文进行与所述第一物理接口对应的业务应用, 将完成业务应用的所述 第二业务报文发送到与所述第二物理接口对应的第二发包队列中;
所述发送模块, 具体用于从所述第二发包队列中读取完成业务应用的 所述第二业务报文, 并通过所述第二物理接口发送。
根据第二方面的第四种可能实现方式, 在第五种可能实现方式中, 该 网络设备, 还包括:
业务控制模块, 用于获取所述第一物理接口的接口状态与所述第二物 理接口的接口状态, 若所述第一物理接口的接口状态与所述第二物理接口 的接口状态均为停止状态, 则停止向所述收包队列发送所述第一业务报 文, 并停止发送所述第二发包队列中的所述第二业务报文, 若所述第一物 理接口的接口状态与所述第二物理接口的接口状态均为关闭状态, 则回收 所述第一虚拟接口和所述第二虚拟接口的接口资源。
根据第二方面的第四种或第五种可能实现方式, 在第六种可能实现方 式中, 该网络设备, 还包括:
接口分配模块, 用于将所述第一虚拟接口和所述第二虚拟接口分配给 所述业务网关, 将所述第一物理接口与所述第一虚拟接口绑定, 并将所述 第一虚拟接口与所述 OSP的第一业务接口绑定,将所述第二虚拟接口与所 述 OSP的第二业务接口绑定。 第三方面提供一种业务报文处理系统, 包括如第二方面所述的任一种 网络设备和开放业务平台 OSP;
所述 OSP , 用于对 文进行 OSP业务处理。
本发明实施例提供的业务报文处理方法、 设备和系统, 通过对业务报 文的收发流程进行改变, 使网络设备从物理接口接收的业务报文可以先进 行 OSP业务处理然后再进行配置在物理接口上的业务应用,避免重复进行 配置在物理端口上的业务应用, 实现在物理层上进行 OSP 业务处理的过 程。 附图说明
实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见 地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。
图 1为本发明实施例提供的一种业务报文处理方法的流程图; 图 2为本发明实施例提供的另一种业务报文处理方法的流程图; 图 3为本发明实施例提供的又一种业务报文处理方法的流程图; 图 4为 OSP旁挂进程模式进行业务处理的报文流程示意图; 图 5为图 4所示旁挂进程模式对应的在线物理模型的报文流程示意 图;
图 6为本发明实施例提供的一种网络设备的结构示意图;
图 7为本发明实施例提供的另一种网络设备的结构示意图; 图 8为本发明实施例提供的又一种网络设备的结构示意图;
图 9为本发明实施例提供的一种业务报文处理系统的结构示意图; 图 10为本发明实施例提供的一种网络设备的硬件结构示意图; 图 1 1为本发明实施例提供的另一种网络设备的硬件结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
图 1为本发明实施例提供的一种业务报文处理方法的流程图, 如图 1 所示, 所述业务报文处理方法包括:
101 , 在网络设备的第一物理接口上接收第一业务报文。
具体地, 网络设备存在多个物理接口, 网络设备通过物理接口与其他 设备或网络连接。 例如用户终端设备可以通过网络设备的第一物理接口与 网络设备相连接, 用户终端设备与该第一物理接口可以通过有线连接, 也 可以通过无线连接。 本实施例中, 在网络设备的第一物理接口上接收用户 终端设备发送的需要进行业务处理和应用的第一业务报文。
本实施例中, 在网络设备的第一物理接口上接收到的第一业务报文是 指需要在第一物理接口上进行 OSP业务处理的报文。
102 , 网络设备中的业务网关将第一业务报文发送给 OSP进行业务处 理。
具体地, 网络设备中设置有业务网关, 业务网关用于在网络设备中的 各个模块和接口之间交换数据报文, 网络设备在对接收到的第一业务报文 进行配置在第一物理接口的业务处理之前, 先通过业务网关将收到的第一 业务报文发送给 OSP , OSP对第一业务报文进行完 OSP业务处理后, 生 成第二业务报文。该第二业务报文为对上述第一报文仅进行过 OSP业务处 理的 4艮文。
需要说明的是, 根据本发明实施例提供的技术方案, 对于在物理接口 上收到的报文,如果不需要进行 OSP业务处理, 则在物理接口收到该报文 时立即进行配置在该物理接口上的业务应用; 如果需要进行 OSP业务处 理, 则在物理接口收到该 文时, 不进行配置在物理接口上的业务应用, 而是通过业务网关先发送到 OSP进行 OSP业务处理。 OSP可以是配置在 网络设备中的一个模块, 也可以是位于网络设备之外的一个独立设备。
103 , 业务网关接收 OSP发送的第二业务报文, 并对第二业务报文进 行与第一物理接口对应的业务应用。 具体地, OSP将完成 OSP业务处理的第二业务报文发送给业务网关, 业务网关接收到第二业务报文后, 对该第二业务报文完成配置在第一物理 接口上的业务应用。 这样实现了在物理层对用户终端设备发送的业务报文 先进行 OSP业务处理, 再进行配置在物理端口上的业务应用的过程。
104, 在网络设备的第一物理接口或第二物理接口上发送完成业务应 用的第二业务报文。
具体地, 网络设备的第二物理接口可以连接其他设备或互联网
( Internet )等公共网络, 网络设备可以通过第二物理接口将用户终端设备 发送的业务报文进行完成配置在网络设备中的全部业务处理和业务应用 后, 发送至其他设备或网络。
根据 OSP业务模式配置的不同, 可以将完成业务应用的第二业务报 文, 从第一物理接口发送出去, 或从第二物理接口发送出去。
若 OSP业务模式配置为双端口收发模式, 则可以将完成 OSP业务处 理和配置在第一物理接口上业务应用的第二业务报文发送回第一物理接 口, 通过第一物理接口发送出去。
若 OSP业务模式配置为旁挂进程模式, 则可以将完成 OSP业务处理 和配置在第一物理接口上业务应用的第二业务报文发送至业务网关, 继续 进行网络设备中配置的其他业务, 然后通过第二物理接口发往其他设备或 网络。
本实施例, 通过对业务报文的收发流程进行改变, 使网络设备从物理 接口接收的业务报文可以先进行 OSP业务处理然后再进行配置在物理接 口上的业务应用, 避免配置在物理端口上的业务重复应用, 实现在物理层 上进行 OSP业务处理的过程。
图 2为本发明实施例提供的另一种业务报文处理方法的流程图, 在图 1所示方法基础上, 本实施例中详细介绍 OSP业务模式为双端口收发模式 的情况; 如图 2所示, 本实施例的业务报文处理方法包括:
201 , 网络设备在所述网络设备的第一物理接口上接收第一业务报文。 参见图 1所示实施例中 101 , 在此不再赘述。
202, 所述网络设备的业务网关将第一业务报文发送到与第一物理接 口对应的收包队列中。 具体地, 在业务网关中设置收包队列, 该收包队列与第一物理接口对 应, 在网络设备的第一物理接口上接收到第一业务报文后, 在对该业务报 文进行配置在第一物理接口上的业务应用之前, 业务网关将第一业务报文 发送到该收包队列中。
203 , 所述业务网关从与第一物理接口对应的第一虚拟接口接收收包 队列中的第一业务报文。
具体地, 业务网关循环从收包队列中读取报文, 当读取到需要进行 OSP业务处理的第一业务报文后,从与第一物理接口对应的第一虚拟接口 接收收包队列中的第一业务报文。 该第一虚拟接口由网络设备分配给业务 网关, 并与第一物理接口绑定。 业务网关通过第一虚拟接口与第一物理接 口的绑定关系, 从收包队列中读取第一业务报文, 并从第一虚拟接口接收 读取到的第一业务报文。
204 , 所述业务网关将第一虚拟接口上接收的第一业务报文发送给第
―业务接口,以使 OSP对第一业务接口上接收的第一业务报文进行业务处 理, 得到第二业务报文。
具体地,业务网关将第一虚拟接口上接收的报文发送给 OSP的第一业 务接口。 网络设备将 OSP的第一业务接口与业务网关的第一虚拟接口绑 定。 OSP从第一业务接口接收到第一业务报文后, 即可对第一业务报文进 行相应的 OSP业务处理,得到第二业务报文。 网络设备从第一物理接口接 收的第一业务报文在进行 OSP业务之前,只通过业务网关中进行了转发过 程, 相当于对第一业务报文在第一物理接口直接进行了 OSP业务。
205 , 所述业务网关在第一虚拟接口上接收 OSP通过第一业务接口发 送的第二业务报文。
具体地, 网络设备中釆用的 OSP业务模式为双端口收发模式, 即需要 将报文从第一物理接口进行发送, 则 OSP将进行完 OSP业务处理的第二 业务报文通过第一业务接口发往业务网关的第一虚拟接口。
206 , 所述业务网关对第二业务报文进行与第一物理接口对应的业务 应用。
具体地, 网络设备将第一物理接口与第一虚拟接口绑定时, 同时将配 置在第一物理接口上的业务应用重新配置在业务网关上, 当业务网关从第 一虚拟接口接收到第二业务报文时, 即可对第二业务报文进行重新配置在 业务网关上的第一物理接口上的业务应用。
207 , 所述业务网关将进行完业务应用的第二业务报文发送到与第一 物理接口对应的第一发包队列中。
具体地, 在业务网关中还设置有与第一物理接口对应的第一发包队 歹 ij , 业务网关对第二业务报文完成配置在第一物理接口上的业务应用后, 将进行完业务应用的第二业务报文发送给该第一发包队列。
208 , 所述业务网关从与第一物理接口对应的第一发包队列中读取完 成业务应用的第二业务报文, 并通过第一物理接口发送。
具体地, 业务网关循环从第一发包队列中读取报文, 若读取到需要发 送的报文, 则将该报文通过第一物理接口进行发送, 该报文为完成业务应 用的第二业务报文, 即完成了网络设备从第一物理接口接收报文, 进行完
OSP业务和配置在第一物理接口的业务后, 又从第一物理接口发送的过 程。
需要说明的是, 201中网络设备在第一物理接口上接收的第一业务报 文不限于用户终端发送的报文, 还可以是其他设备或网络向用户终端发送 的报文, 本实施例提供的业务报文处理方法不对业务报文的收发方向做出 限定。
本实施例, 通过在网络设备的业务网关中设置与物理接口对应的收包 队列和发包队列, 改变业务^艮文的业务处理和应用流程, 并将配置在网络 设备第一物理接口的业务应用重新配置在业务网关上, 使网络设备从第一 物理接口接收的业务报文可以先进行 0 SP业务处理,然后再进行配置在第 一物理接口上的业务应用, 并在进行完业务应用后, 将业务报文重新从第 一物理接口发送出去, 实现在物理层上釆用双向端口收发模式进行 OSP 业务处理的过程。
进一步地, 网络设备可以对第一物理接口状态进行扫描, 根据第一物 理接口的状态对业务状态进行控制。 物理接口的状态可以分为正常状态、 停止状态和关闭状态。 当第一物理接口的接口状态为正常状态时, 正常进 行本实施例的 OSP业务处理; 此状态用于需要在物理层进行 OSP业务处 理时。 当第一物理接口的接口状态为停止时, 业务网关停止向收包队列发 送第一业务报文, 并停止发送第一发包队列中的第二业务报文; 此状态用 于在一段时间内暂时没有 OSP业务处理需要应用时,可以减少业务报文的 转发过程。 当第一物理接口的接口状态为关闭时, 网络设备将已经分配的 虚拟接口的地址资源回收, 包括回收分配给业务网关第一虚拟接口的接口 地址资源; 此状态用于在长时间不需要进行 OSP业务处理时,可以节约网 络设备的地址资源。
进一步地, 网络设备在第一物理接口接收第一业务报文之前, 还进行 接口分配和绑定过程。 包括: 将第一虚拟接口分配给业务网关。 将第一物 理接口与第一虚拟接口绑定; 将第一虚拟接口与第一业务接口绑定。 并将 配置在第一物理接口上的业务应用重新配置在业务网关上。
图 3为本发明实施例提供的又一种业务报文处理方法的流程图, 在图 1所示方法基础上, 本实施例中详细介绍 OSP业务模式为旁挂进程模式的 情况; 如图 3所示, 本实施例的业务报文处理方法包括:
301 , 网络设备在所述网络设备的第一物理接口上接收第一业务报文。 参见图 1所示实施例中 101 , 在此不再赞述。
302 , 所述网络设备的业务网关将第一业务报文发送到与第一物理接 口对应的收包队列中。 参见图 2所示实施例中 202 , 在此不再赘述。
303 , 所述业务网关从与第一物理接口对应的第一虚拟接口接收收包 队列中的第一业务报文。 参见图 2所示实施例中 203 , 在此不再赘述。
304 , 所述业务网关将第一虚拟接口上接收的第一业务报文发送给第
―业务接口,以使 OSP对第一业务接口上接收的第一业务报文进行业务处 理, 得到第二业务报文。 参见图 2所示实施例中 204 , 在此不再赘述。
305 , 所述业务网关在第二虚拟接口上接收 OSP通过第二业务接口发 送的第二业务报文。
具体地, 第二虚拟接口由网络设备分配给业务网关, 并将 OSP的第二 业务接口与业务网关的第二虚拟接口绑定。网络设备中釆用的 OSP业务模 式为旁挂进程模式, 因此需要将报文从第二物理接口进行发送, 则 OSP 将进行完 OSP业务处理的第二业务报文通过第二业务接口发往业务网关 的第二虚拟接口。
306 , 所述业务网关对第二业务报文进行与第一物理接口对应的业务 应用。
具体地, 网络设备将第一业务接口与第一虚拟接口绑定时, 同时将配 置在第一物理接口上的业务应用重新配置在业务网关上, 当业务网关从第 二虚拟接口接收到第二业务报文时, 即可对第二业务报文进行重新配置在 业务网关上的第一物理接口上的业务应用。
307 , 所述业务网关将进行完业务应用的第二业务报文发送到与第二 物理接口对应的第二发包队列中。
具体地, 在业务网关中还设置有与第二物理接口对应的第二发包队 歹 ij , 业务网关对第二业务报文完成配置在第一物理接口上的业务应用后, 对该第二业务报文进行网络设备中其他的业务转发过程, 并将进行完网络 设备中所有业务处理和应用的第二业务报文发送到第二发包队列中。 例 如, 网络设备中或网络设备外除了 OSP可能还配置有其他的业务模块,若 网络设备从第一物理接口上接收的第一业务报文需要从第二物理接口发 送出去, 并且除了 OSP业务之外还需要在另一业务模块中进行相应业务, 则业务网关将完成配置在第一物理接口上的应用的第二业务报文转发至 另一业务模块, 另一业务模块对第二业务报文进行完业务后, 将第二业务 报文并发送给业务网关, 业务网关将该第二业务报文发送至第二发包队列 中。
308 , 所述业务网关从与第二物理接口对应的第二发包队列中读取完 成业务应用的第二业务报文, 并通过第二物理接口发送。
具体地, 业务网关循环从第二发包队列中读取报文, 若读取到需要发 送的报文, 则将该报文通过第二物理接口进行发送, 该报文为完成网络设 备中所有业务处理和应用的第二业务报文, 即, 完成了网络设备从第一物 理接口接收报文,进行完 OSP业务处理和配置在第一物理接口的业务应用 后, 又从第二物理接口发送的过程。
需要说明的是, 301中网络设备在第一物理接口上接收的第一业务报 文不限于接收到的用户终端设备发送的报文, 还可以是其他设备或网络向 用户终端发送的报文, 本实施例提供的业务报文处理方法不对业务报文的 收发方向做出限定。
参见图 4 , 为 OSP旁挂进程模式进行业务处理的报文流程示意图, 旁 挂进程模式表示通过接口绑定, 将业务报文转发至 OSP进行完业务处理 后, 又发回网络设备进行其他业务应用; 其中网络设备 41中包括业务网 关 52 ,将 OSP 51设置为旁挂进程模式相当于将网络设备 41从第一物理接 口接收的报文重新定位到 OSP 51中, 进行完 OSP业务后再返回业务网关 52进行其他业务处理和应用;图 5为图 4所示旁挂进程模式对应的在线物 理模型的报文流程示意图, OSP 51接收了网络设备 41第一物理接口上的 报文, 并在进行完 OSP业务处理后, 继续进行网络设备 41中其他的业务 处理和应用,相当于将 OSP 51直接配置在第一物理接口和业务网关 52之 间, 建立了在线的物理模型。
本实施例, 通过在网络设备的业务网关中设置与物理接口对应的收包 队列和发包队列, 改变业务^艮文的业务处理和应用流程, 并将配置在网络 设备第一物理接口的业务应用重新配置在业务网关上, 使网络设备从第一 物理接口接收的业务报文可以先进行 0 SP业务处理,然后再进行配置在第 一物理接口上的业务应用, 并在进行完业务应用后, 将业务报文从第二物 理接口发送出去,实现在物理层上釆用旁挂进程模式进行 OSP业务处理的 过程。
进一步地, 网络设备可以对第一物理接口与第二物理接口的接口状态 进行扫描, 根据第一物理接口和第二物理接口的接口状态对业务状态进行 控制。 物理接口的状态可以分为正常状态、 停止状态和关闭状态。 当第一 物理接口和第二物理接口的接口状态均为正常状态时, 正常进行本实施例 的 OSP业务处理; 此状态用于需要在物理层进行 OSP业务处理时。 当第 一物理接口与第二物理接口的接口状态为停止时, 业务网关停止向收包队 列发送第一业务报文, 并停止发送第二发包队列中的第二业务报文; 此状 态用于在暂时不需要进行 OSP业务处理时, 可以减少业务报文的转发过 程。 当第一物理接口与第二物理接口的接口状态为关闭时, 网络设备将已 经分配的虚拟接口的地址资源回收, 包括回收分配给业务网关的第一虚拟 接口和第二虚拟接口的接口地址资源; 此状态用于在长时间不需要进行
OSP业务处理时, 可以节约网络设备的地址资源。
进一步地, 网络设备在第一物理接口接收第一业务报文之前, 还进行 接口分配和绑定过程。 包括: 将第一虚拟接口和第二虚拟接口分配给业务 网关。 将第一物理接口与第一虚拟接口绑定; 将第一虚拟接口与第一业务 接口绑定; 将第二虚拟接口与第二业务接口绑定。 并将配置在第一物理接 口上的业务应用重新配置在业务网关上。
图 6为本发明实施例提供的一种网络设备的结构示意图,如图 6所示, 本实施例的网络设备 11包括:
接收模块 21 , 用于在网络设备 11的第一物理接口上接收第一业务报 文。
业务网关 22 , 用于将第一业务报文发送给开放业务平台 OSP 12进行 业务处理, 接收 OSP 12发送的第二业务报文, 并对第二业务报文进行与 第一物理接口对应的业务应用。
发送模块 23 , 用于在网络设备 11的第一物理接口或第二物理接口上 发送完成业务应用的第二业务报文。
网络设备 11根据配置的不同, 可以将完成业务应用的第二业务报文, 从第一物理接口发送出去, 或从第二物理接口发送出去。
若 OSP业务模式配置为双端口收发模式, 则可以将完成 OSP业务处 理和配置在第一物理接口上业务应用的第二业务报文发送回第一物理接 口, 通过第一物理接口发送出去。
若 OSP业务模式配置为旁挂进程模式, 则可以将完成 OSP业务处理 和配置在第一物理接口上业务应用的第二业务报文发送至业务网关, 继续 进行网络设备中配置的其他业务, 然后通过第二物理接口发往其他设备或 网络。
上述网络设备用于执行本发明图 1所示方法实施例的技术方案, 其实 现原理和技术效果类似, 此处不再赘述。
图 6所示实施例的一种可能实现方式中, 网络设备 1 1用于执行本发 明图 2所示方法实施例的技术方案。 其中, 业务网关 22, 具体用于将第一 业务报文发送到与第一物理接口对应的收包队列中, 从与第一物理接口对 应的第一虚拟接口接收收包队列中的第一业务报文, 将第一虚拟接口上接 收的第一业务报文发送给 OSP 12的第一业务接口,以使 OSP 12对第一业 务接口上接收的第一业务报文进行业务处理, 得到第二业务报文; 并在第 一虚拟接口上接收 OSP 12通过第一业务接口发送的第二业务报文, 对第 二业务报文进行与第一物理接口对应的业务应用, 将完成业务应用的第二 业务报文发送至与第一物理接口对应的第一发包队列中。
发送模块 23 ,具体用于从第一发包队列中读取完成业务应用的第二业 务报文, 并通过第一物理接口发送。
图 7为本发明实施例提供的另一种网络设备的结构示意图, 如图 7所 示, 本实施例的网络设备 11在图 6的基础上, 还包括业务控制模块 24; 结合上述图 6的一种可能实现方式, 所述业务控制模块 24, 用于获取 第一物理接口的接口状态, 若第一物理接口的接口状态为停止状态, 则停 止向收包队列发送第一业务报文, 并停止发送第一发包队列中的第二业务 报文, 若第一物理接口的接口状态为关闭状态, 则回收分配给业务网关 22 的第一虚拟接口的接口资源。
本实施例的网络设备, 通过业务控制模块 24对第一物理接口的接口 状态扫描, 对是否进行 OSP业务处理进行控制, 可以在报文不需要进行 OSP业务处理时提高收发效率, 并节约网络资源。
图 8为本发明实施例提供的又一种网络设备的结构示意图, 如图 8所 示, 本实施例的网络设备 11在图 7的基础上, 还包括接口分配模块 25; 结合上述图 6的一种可能实现方式, 所述接口分配模块 25 , 用于将第 一虚拟接口分配给业务网关 22, 将第一物理接口与第一虚拟接口绑定, 将 第一虚拟接口与 OSP 12的第一业务接口绑定。
本实施例的网络设备,用于为网络设备中的业务网关及 OSP分配接口 资源并绑定接口, 使网络设备可以根据接口绑定关系在物理层进行 OSP 业务处理。
图 6所示实施例的另一种可能实现方式中, 网络设备 11用于执行本 发明图 3所示方法实施例的技术方案。 其中, 业务网关 22 , 具体用于将第 一业务报文发送到与第一物理接口对应的收包队列中, 从与第一物理接口 对应的第一虚拟接口接收收包队列中的第一业务报文, 将第一虚拟接口上 接收的第一业务报文发送给 OSP 12的第一业务接口,以使 OSP 12对第一 业务接口上接收的第一业务报文进行业务处理, 得到第二业务报文; 并在 第二虚拟接口上接收 OSP 12通过第二业务接口发送的第二业务报文, 对 第二业务报文进行与第一物理接口对应的业务应用, 将完成业务应用的第 二业务报文发送至第二物理接口对应的第二发包队列中。
发送模块 23 ,具体用于从第二发包队列中读取完成业务应用的第二业 务报文, 并通过第二物理接口发送。
结合上述图 6的另一种可能实现方式, 所述业务控制模块 24, 用于获 取第一物理接口的接口状态与所述第二物理接口的接口状态, 若第一物理 接口的接口状态与第二物理接口的接口状态均为停止状态, 则停止向收包 队列发送第一业务报文, 并停止发送第二发包队列中的第二业务报文, 若 第一物理接口的接口状态与第二物理接口的接口状态均为关闭状态, 则回 收分配给业务网关 22的第一虚拟接口和第二虚拟接口的接口资源。
本实施例的网络设备, 通过业务控制模块 24对第一物理接口和第二 物理接口的接口状态扫描,对是否进行 OSP业务处理进行控制, 可以在报 文不需要进行 OSP业务处理时提高收发效率, 并节约网络资源。
结合上述图 6的另一种可能实现方式, 所述接口分配模块 25 , 用于将 第一虚拟接口和第二虚拟接口分配给业务网关 22,将第一物理接口与第一 虚拟接口绑定, 将第一虚拟接口与 OSP 12的第一业务接口绑定, 将第二 虚拟接口与 OSP 12的第二业务接口绑定。
本实施例的网络设备,用于为网络设备中的业务网关及 OSP分配接口 资源并绑定接口, 使网络设备可以根据接口绑定关系在物理层进行 OSP 业务处理。
图 9为本发明实施例提供的一种业务报文处理系统的结构示意图, 如 图 9所示, 本实施例的业务 4艮文处理系统包括:
网络设备 61 , 用于完成上述网络设备实施例中任一实施例的功能。 OSP 62, 用于对业务 文进行 OSP业务处理。
需要说明的是, OSP 62与网络设备 61既可以一体部署, 也可以分开 部署, 而且, 该 OSP 62还可以是分布式结构, 一部分部署在网络设备 61 内部, 一部分部署在网络设备 61之外, 本实施例不作限定。
图 10为本发明实施例提供的一种网络设备的硬件结构示意图, 如图 10所示, 该网络设备 1 1包括第一物理接口 71、 处理器 72和存储器 73。 其中, 第一物理接口 71、处理器 72和存储器 73可以通过系统总线或其他 方式相连, 图 10中以系统总线相连为例; 系统总线可以是 ISA总线、 PCI 总线或 EISA总线等。 所述系统总线可以分为地址总线、 数据总线、 控制 总线等。 为便于表示, 图 10中仅用一条线表示, 但并不表示仅有一根总 线或一种类型的总线。 所述存储器 73内存储有程序代码, 所述程序代码 包括计算机操作指令。
所述第一物理接口 71 , 用于接收第一业务报文。
处理器 72执行所述程序代码, 用于将第一业务报文发送给开放业务 平台 OSP进行业务处理, 接收 OSP发送的第二业务报文, 并对第二业务 报文进行与第一物理接口 71对应的业务应用。
网络设备 11上可以配置不同的 OSP业务模式;所述 OSP业务模式包 括双端口收发模式和旁挂进程模式。
一种可能实现方式中, 所述网络设备 11配置的 OSP业务模式为双端 口收发模式, 用于执行本发明图 2所示方法; 其中,
处理器 72 , 具体用于将第一业务报文发送到与第一物理接口 71对应 的收包队列中, 从与第一物理接口 71对应的第一虚拟接口接收收包队列 中的第一业务报文, 将第一虚拟接口上接收的第一业务报文发送给 OSP 的第一业务接口,以使 OSP对第一业务接口上接收的第一业务报文进行业 务处理,得到第二业务报文; 并在第一虚拟接口上接收 OSP通过第一业务 接口发送的第二业务报文, 对第二业务报文进行与第一物理接口对应的业 务应用, 将完成业务应用的第二业务报文发送至第一物理接口 71对应的 第一发包队列中, 从与第一物理接口 71对应的第一发包队列中读取完成 业务应用的第二业务报文, 并发送给第一物理接口 71。
第一物理接口 71 , 用于发送完成业务应用的第二业务报文。
可选的, 当 OSP业务模式为双端口收发模式时, 处理器 72, 还用于 获取第一物理接 71 口的接口状态, 若第一物理接口 71的接口状态为停止 状态, 则停止向收包队列发送第一业务报文, 并停止发送第一发包队列中 的第二业务报文, 若第一物理接口 71的接口状态为关闭状态, 则回收分 配给业务网关的第一虚拟接口的接口资源。 进一步可选的, 处理器 72 , 还 用于将第一虚拟接口分配给业务网关, 将第一物理接口 71与第一虚拟接 口绑定, 将第一虚拟接口与第一业务接口绑定。
另一种可能实现方式中, 所述网络设备 11配置的 OSP业务模式为旁 挂进程模式, 用于执行本发明图 3所示方法; 参见图 1 1 , 为本发明实施例 提供的另一种网络设备的硬件结构示意图; 所述网络设备 1 1在图 10所示 网络设备 1 1的基础上, 还包括: 第二物理接口 74。
处理器 72 , 具体用于将第一业务报文发送到与第一物理接口 71对应 的收包队列中, 从与第一物理接口 71对应的第一虚拟接口接收收包队列 中的第一业务报文, 将第一虚拟接口上接收的第一业务报文发送给 OSP 的第一业务接口,以使 OSP对第一业务接口上接收的第一业务报文进行业 务处理,得到第二业务报文; 并在第二虚拟接口上接收 OSP通过第二业务 接口发送的第二业务报文, 对第二业务报文进行与第一物理接口 71对应 的业务应用, 将完成业务应用的第二业务报文发送至第二物理接口 74对 应的第二发包队列中, 从与第二物理接口 74对应的第二发包队列中读取 完成业务应用的所述第二业务报文, 并发送给第二物理接口 74。
第二物理接口 74 , 用于发送完成业务应用的第二业务报文。
可选的, 当 OSP业务模式为旁挂进程模式时, 处理器 72 , 还用于获 取第一物理接口 71的接口状态与所述第二物理接口 74的接口状态, 若第 一物理接口 71的接口状态与第二物理接口 74的接口状态均为停止状态, 则停止向收包队列发送第一业务报文, 并停止发送第二发包队列中的第二 业务报文, 若第一物理接口 71的接口状态与第二物理接口 74的接口状态 均为关闭状态, 则回收分配给业务网关的第一虚拟接口和第二虚拟接口的 接口资源。 进一步可选的, 处理器 72 , 还用于将第一虚拟接口和第二虚拟 接口分配给业务网关, 将第一物理接口 71与第一虚拟接口绑定, 将第一 虚拟接口与第一业务接口绑定, 将第二虚拟接口与第二业务接口绑定。
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分 步骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算 机可读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步 骤; 而前述的存储介质包括: ROM、 RAM , 磁碟或者光盘等各种可以存 储程序代码的介质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非 对其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的 普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进 行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或 者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范 围。

Claims

权 利 要 求 书
1、 一种业务报文处理方法, 其特征在于, 包括:
在第一物理接口上接收第一业务报文;
将所述第一业务报文发送给开放业务平台 OSP进行业务处理; 接收所述 OSP发送的第二业务报文,对所述第二业务报文进行与所述 第一物理接口对应的业务应用;
在所述第一物理接口或第二物理接口上发送完成业务应用的第二业 务报文。
2、 根据权利要求 1所述的方法, 其特征在于, 所述在第一物理接口 上接收第一业务报文之后, 还包括:
将所述第一业务报文发送到与所述第一物理接口对应的收包队列中; 从与所述第一物理接口对应的第一虚拟接口接收所述收包队列中的 所述第一业务报文;
相应地, 所述将第一业务报文发送给 OSP进行业务处理具体为: 将所述第一虚拟接口上接收的所述第一业务报文发送给所述 OSP的 所述第一业务接口,以使所述 0 SP对所述第一业务接口上接收的所述第一 业务报文进行业务处理并得到所述第二业务报文。
3、 根据权利要求 2所述的方法, 其特征在于, 所述接收所述 OSP发 送的所述第二业务报文, 包括:
在所述第一虚拟接口上接收所述 OSP通过所述第一业务接口发送的 所述第二业务报文;
相应地, 所述在所述第一物理接口或第二物理接口上发送完成业务应 用的第二业务报文, 具体为:
将完成业务应用的所述第二业务报文发送至所述第一物理接口对应 的第一发包队列中;
从与所述第一物理接口对应的所述第一发包队列中读取完成业务应 用的所述第二业务报文, 并在所述第一物理接口上发送完成业务应用的所 述第二业务报文。
4、 根据权利要求 3所述的方法, 其特征在于, 还包括:
获取所述第一物理接口的接口状态; 若所述第一物理接口的接口状态为停止状态, 则停止向所述收包队列 发送所述第一业务报文, 并停止发送所述第一发包队列中的所述第二业务 报文;
若所述第一物理接口的接口状态为关闭状态, 则回收所述第一虚拟接 口的接口资源。
5、 根据权利要求 2〜4中任一项所述的方法, 其特征在于, 所述从与 所述第一物理接口对应的所述第一虚拟接口接收所述收包队列中的第一 业务 ^艮文之前, 还包括:
分配所述第一虚拟接口;
将所述第一物理接口与所述第一虚拟接口绑定, 并将所述第一虚拟接 口与所述 OSP的第一业务接口绑定。
6、 根据权利要求 2所述的方法, 其特征在于, 所述接收所述 OSP发 送的所述第二业务报文, 包括:
在第二虚拟接口上接收所述 OSP通过第二业务接口发送所述第二业 务报文;
相应地, 所述在所述第一物理接口或第二物理接口上发送完成业务应 用的第二业务报文, 具体为:
将完成业务应用的所述第二业务报文发送至所述第二物理接口对应 的第二发包队列中;
从与所述第二物理接口对应的所述第二发包队列中读取所述第二业 务报文, 并在所述第二物理接口上发送完成业务应用的所述第二业务报 文。
7、 根据权利要求 6所述的方法, 其特征在于, 还包括:
获取所述第一物理接口的接口状态与所述第二物理接口的接口状态; 若所述第一物理接口的接口状态与所述第二物理接口的接口状态均 为停止状态, 则停止向所述收包队列发送所述第一业务报文, 并停止发送 所述第二发包队列中的第二业务报文;
若所述第一物理接口的接口状态与所述第二物理接口的接口状态均 为关闭状态, 则回收所述第一虚拟接口和所述第二虚拟接口的接口资源。
8、 根据权利要求 6或 7所述的方法, 其特征在于, 所述从与所述第 一物理接口对应的所述第一虚拟接口接收所述收包队列中的第一业务报 文之前, 还包括:
分配所述第一虚拟接口、 所述第二虚拟接口;
将所述第一物理接口与所述第一虚拟接口绑定, 并将所述第一虚拟接 口与所述 OSP的第一业务接口绑定, 将所述第二虚拟接口与所述 OSP的 第二业务接口绑定。
9、 一种网络设备, 其特征在于, 包括:
接收模块, 用于在第一物理接口上接收第一业务报文;
业务网关 ,用于将所述第一业务报文发送给开放业务平台 OSP进行业 务处理,接收所述 OSP发送的第二业务报文, 并对所述第二业务报文进行 与所述第一物理接口对应的业务应用;
发送模块, 用于在所述第一物理接口或第二物理接口上发送完成业务 应用的第二业务报文。
10、 根据权利要求 9所述的设备, 其特征在于, 所述业务网关, 具体 用于将所述第一业务报文发送到与所述第一物理接口对应的收包队列中, 从与所述第一物理接口对应的第一虚拟接口接收所述收包队列中的所述 第一业务报文, 将所述第一虚拟接口上接收的所述第一业务报文发送给所 述 OSP的第一业务接口, 以使所述 OSP对所述第一业务接口上接收的所 述第一业务报文进行业务处理, 得到所述第二业务报文, 在所述第一虚拟 接口上接收所述 OSP通过所述第一业务接口发送的所述第二业务报文,对 所述第二业务报文进行与所述第一物理接口对应的业务应用, 将完成业务 应用的所述第二业务报文发送到与所述第一物理接口对应的第一发包队 列中;
所述发送模块, 具体用于从所述第一发包队列中读取完成业务应用的 所述第二业务报文, 并通过所述第一物理接口发送。
1 1、 根据权利要求 10所述的设备, 其特征在于, 还包括:
业务控制模块, 用于获取所述第一物理接口的接口状态, 若所述第一 物理接口的接口状态为停止状态, 则停止向所述收包队列发送所述第一业 务报文, 并停止发送所述第一发包队列中的所述第二业务报文, 若所述第 一物理接口的接口状态为关闭状态, 则回收所述第一虚拟接口的接口资 源。
12、 根据权利要求 10或 1 1所述的设备, 其特征在于, 还包括: 接口分配模块, 用于将所述第一虚拟接口分配给所述业务网关, 将所 述第一物理接口与所述第一虚拟接口绑定, 并将所述第一虚拟接口与所述 OSP的第一业务接口绑定。
13、 根据权利要求 9所述的设备, 其特征在于, 所述业务网关, 具体 用于将所述第一业务报文发送到与所述第一物理接口对应的收包队列中, 从与所述第一物理接口对应的第一虚拟接口接收所述收包队列中的所述 第一业务报文, 将所述第一虚拟接口上接收的所述第一业务报文发送给所 述 OSP的第一业务接口, 以使所述 OSP对所述第一业务接口上接收的所 述第一业务报文进行业务处理, 得到所述第二业务报文, 在第二虚拟接口 上接收所述 OSP通过第二业务接口发送的所述第二业务报文,对所述第二 业务报文进行与所述第一物理接口对应的业务应用, 将完成业务应用的所 述第二业务报文发送到与所述第二物理接口对应的第二发包队列中;
所述发送模块, 具体用于从所述第二发包队列中读取完成业务应用的 所述第二业务报文, 并通过所述第二物理接口发送。
14、 根据权利要求 13所述的设备, 其特征在于, 还包括:
业务控制模块, 用于获取所述第一物理接口的接口状态与所述第二物 理接口的接口状态, 若所述第一物理接口的接口状态与所述第二物理接口 的接口状态均为停止状态, 则停止向所述收包队列发送所述第一业务报 文, 并停止发送所述第二发包队列中的所述第二业务报文, 若所述第一物 理接口的接口状态与所述第二物理接口的接口状态均为关闭状态, 则回收 所述第一虚拟接口和所述第二虚拟接口的接口资源。
15、 根据权利要求 13或 14所述的设备, 其特征在于, 还包括: 接口分配模块, 用于将所述第一虚拟接口和所述第二虚拟接口分配给 所述业务网关, 将所述第一物理接口与所述第一虚拟接口绑定, 并将所述 第一虚拟接口与所述 OSP的第一业务接口绑定,将所述第二虚拟接口与所 述 OSP的第二业务接口绑定。
16、 一种业务报文处理系统, 其特征在于, 包括如权利要求 9〜15任 一项所述的网络设备和开放业务平台 OSP , 所述 OSP用于对业务报文进 行 OSP业务处理。
PCT/CN2012/084678 2012-11-15 2012-11-15 业务报文处理方法、设备和系统 WO2014075269A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280002563.3A CN103959732B (zh) 2012-11-15 2012-11-15 业务报文处理方法、设备和系统
PCT/CN2012/084678 WO2014075269A1 (zh) 2012-11-15 2012-11-15 业务报文处理方法、设备和系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/084678 WO2014075269A1 (zh) 2012-11-15 2012-11-15 业务报文处理方法、设备和系统

Publications (1)

Publication Number Publication Date
WO2014075269A1 true WO2014075269A1 (zh) 2014-05-22

Family

ID=50730495

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084678 WO2014075269A1 (zh) 2012-11-15 2012-11-15 业务报文处理方法、设备和系统

Country Status (2)

Country Link
CN (1) CN103959732B (zh)
WO (1) WO2014075269A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464679A (zh) * 2002-06-18 2003-12-31 华为技术有限公司 一种网上鉴权方法
CN101841456A (zh) * 2009-03-18 2010-09-22 中国电信股份有限公司 一种实现业务应用区分的方法和系统
CN102396191A (zh) * 2009-02-13 2012-03-28 Adc长途电讯有限公司 用于与物理层信息一起使用的互联网络设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI315952B (en) * 2006-10-20 2009-10-11 Ind Tech Res Inst System and method for controlling the devices connected to control gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464679A (zh) * 2002-06-18 2003-12-31 华为技术有限公司 一种网上鉴权方法
CN102396191A (zh) * 2009-02-13 2012-03-28 Adc长途电讯有限公司 用于与物理层信息一起使用的互联网络设备
CN101841456A (zh) * 2009-03-18 2010-09-22 中国电信股份有限公司 一种实现业务应用区分的方法和系统

Also Published As

Publication number Publication date
CN103959732A (zh) 2014-07-30
CN103959732B (zh) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2019157955A1 (zh) 设备接入方法、相关平台及计算机存储介质
JP7183416B2 (ja) 時間依存ネットワーキング通信方法及び装置
CN108024270B (zh) 一种信息发送方法、单元和系统
TW463509B (en) GPRS-subscriber selection of multiple internet service providers
CN111224821B (zh) 安全服务部署系统、方法及装置
JP2012170105A5 (zh)
CN101883436B (zh) 一种资源的并发处理方法、系统及移动终端
CN104636184A (zh) 虚拟机实例的部署方法和装置及设备
CN110268751A (zh) 用于在接入网环境中选择接入和移动性管理功能的方法和系统
CN103532878A (zh) 数据包的处理方法和网络流量的管理方法及装置和系统
WO2018094667A1 (zh) 一种管理方法、管理单元及系统
CN103281797A (zh) 一种移动终端及其传输业务数据的方法
CN105763385A (zh) 流量调度方法及装置
CN105577632A (zh) 一种基于网络隔离的安全连网方法及终端
WO2008105106A1 (ja) 通信品質制御システム
WO2016050109A1 (zh) 一种通信方法、云管理服务器及虚拟交换机
CN105144788A (zh) 用于指引多个连接上的内容路径的增强型呼叫控制
KR101408745B1 (ko) 안드로이드 시스템에 기반한 서비스 처리 방법 및 장치
JP2019510435A (ja) ネットワークアクセス方法、その関連機器およびシステム
WO2015100570A1 (zh) 确定gre隧道的方法、网关设备和接入站点
CN103428682A (zh) 辅助信息发送方法及用户设备、网络侧配置方法及网络侧
CN112491978B (zh) 一种调度方法和设备
CN107483330B (zh) 一种中继器桥接方法和网关
CN101742701A (zh) 处理at命令的装置、方法及系统
WO2013075513A1 (zh) 短信缓存方法及系统

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

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

Country of ref document: EP

Kind code of ref document: A1