Mobile network Interface Design
Summary: Mobile devices face diverse and dynamic network options, and the need to fully use these options requires knowing the intent of the application. Mobile network interface is a simple and powerful mechanism to deal with the diversity of networks. The application provides a declarative label for the network transport and matches the system to the most appropriate network. The mobile network interface can also defer and reorder transmitted data, providing application mutex and ordering constraint mechanisms.
Keywords: mobile network; interface design; data transmission
1 Introduction
Mobile devices are confronted with a diverse and dynamic network option. These options have a variety of advantages and disadvantages. Therefore, there is no single "best choice" in all cases, and the diversity of infrastructure is both a challenge and an opportunity. The challenge is to manage these changing options to meet the needs of each application, which itself varies over time. By doing so, applications bring significant benefits, while leveraging multiple networks and planning for future transmission intelligence. The current approach to solving this problem is inadequate. An extreme, operating system or middleware layer that represents all the routing and Interface decisions of an application. However, because these decisions do not know the application's use of network intent, they often miss optimization opportunities. At the other extreme, the system exposes the underlying details directly to the application, making the application aware of network changes, and the application must explicitly select the available options. This approach expresses the need to manage multiple wireless networks without requiring complex application tasks. Designing a network in between, the system manages to discover and describe the details of the available network options, and the application uses a small number of declarative tags to provide hints about traffic. The system then provides the matching network traffic to the available interfaces. The design of mobile network system provides a portable, user-level implementation method.
2 design principle of mobile network interface
The design follows the classic separation principle mechanism. The application determines the actual intent of using the network, and this intent represents a strategy for how data should be transmitted. On the other hand, the operating system or middleware library is the best place to provide a common mechanism to implement the specified policy. Each application must provide hints for using network intent, so a common mechanism makes it easy to deploy new applications using multiple mobile networks. The details of handling multiple heterogeneous and intermittent mobile networks are encapsulated at the bottom of the system. A common mechanism can also aggregate heterogeneous data transfers from multiple applications. Therefore, the network design through the data transmission label and the system bottom realization separation, formulates the policy data to map to the network best match the data transmission the label. The design wants the interface to be as simple as possible, requiring each application to expose quantitative specifications, the traffic it wants to generate, and the quality of service it needs. This principle leads to several decisions in which applications use qualitative attribute data to represent their intentions, rather than using a quantitative specification, that is, whether small or large, whether it is a foreground interaction or background traffic. Do not ask for what is "small" and "big". Allow the application to use the label that it deems appropriate. Concurrent systems include allowing programmers to exclude incorrect sorting mechanisms, increasing the synchronization of abstract expression atoms and previously occurring constraints. In addition to expressing such sort constraints, there is a need to deal with a partial failure mechanism. Sometimes some amount of information will be converted by any available transfer to provide the wrong service. Therefore, a callback mechanism is provided to handle deferred or disconnected connections.
3 Mobile network interface design scheme
In this section, you describe the network application interface. The basic abstract interface is described first. The application uses tags to communicate their intentions. The unit of expression information is called Irobs (isolatedreliableorderedbytestreams). Irobs provides atomicity (mutual exclusion), and applications can also specify order constraints between Irobs. When the operation must be delayed, the application can register thunks to recover them.
3.1 Tags
Tags are the main abstract information of an application, and the application declares a mechanism for any specific network information properties. A label is a system-defined qualitative attribute of a message. Currently only supports 4 tags, two dimensions, interactivity and scale, if the user event is waiting for a response, the message's label is set to Fore-ground, and if its timely delivery is not the key to the behavior, then the message label is background. For example, many hints do not need to be sent. Small tags describe messages such as single-packet RPC, large tags describe other messages, such as containing multimedia data.
3.2 Multi-mode data source processing
Tags are used with the label-aware socket interface. We call this set of interfaces multi-sockets. Intuitively, a multi-socket will combine several different tags with a single virtual set of interfaces. In most cases, the multi-sockets behavior is normal. However, the Multi-socket send call requires a label. Note that the sender is the entity responsible for assigning labels, and as a result, no labels are required for receiving them. It is conceivable to use a label to implement the filtered receive. Multi-socket is a logical connection that is dynamically instantiated and uses the actual TCP connection in one or more physical interfaces. Multi-sockets provides encapsulation: They hide multiple network interfaces, routes, and connected applications. The multi-sockets also encapsulates instantaneous disconnection, such as through a wireless dead zone. The application specifies a label that the network traffic Manager uses to select the correct network for sending data. The application is notified by each label that the network is not available by using thunk technology, which executes the deferred execution environment when an event occurs. Like the TCP socket interface, Multi-sockets supports reliable delivery of abstractions. However, Multi-sockets relaxes the TCP sort constraint, allowing the bytes to be logged to the application in the specified mutex and sort constraints, described in the following two sections.
3.3IROBs Byte stream
Tagged Irob is the basic unit of network transmission information, Multi-socket interface ensures that each irob is automatically received, that is, the Irob byte stream generated in the instruction does not affect other network transmission byte stream. However, a single irob may be reordered to another place. In other words, the previously sent Irob from the receiving Multi-socket interface is first seen by the application that is reading the data. However, bytes from two Irob never mix. Irobs provides mutually exclusive operations in the same way that locks provide mutually exclusive threads in multithreaded programs.
3.4 Sorting constraints
Because some applications need to order constraints between Irobs, the Multi-socket interface supports such constraint declarations. Each Multi-socket interface assigns a unique, monotonically increasing identifier to each irob. When a new Irob is created, the application can specify any Irob identifier, but must receive the previously created identifier. A sort constraint may only specify that Irobs has a lower unique identifier, which guarantees that such a constraint is deadlock-free. The TCP socket specifies that each Irob must receive the lowest identifier, the application handles successive byte streams, and the API provides a simple default send-call mechanism. However, many applications have more restrictive constraints; For example, Bluefs file system clients allow asynchronous writes. The sort constraint in multi-sockets is similar to a multithreaded application that provides a conditional variable for a thread.
3.5Thunks Technology
It is possible that the tagged Irob will not be available at the time of delivery without any "suitable" network. For example, when a bulk transfer starts with only one low-bandwidth link available, or the mobile computer may be in a wireless dead zone, there is no connection. This transmission is best handled when a high-bandwidth link is encountered at a later time. Of course, you do not want the application to poll for links, and you do not want the application to create a new connection for instantaneous disconnection within a short period of time. The Create Irobs action sets an optional thunk parameter that will be used to inform the application that the Irobs cannot be sent immediately due to a lack of a suitable network. When a irob is postponed, a call with the thunk parameter returns a special return code. Specifies that when the label data is next transferred, the library notifies the application by calling the function that thunk the specified parameter. The handler must be responsible for the thunk parameter resource relationship, thunk may be canceled, for example, the previous thunk is invalid, and subsequent cancellations will be canceled. Thunk is useful for applications that send messages on a regular basis, such as checking for new messages. It is undesirable to buffer redundant messages during disconnection and send all information later. Instead, the application registers a send thunk, which is notified when the appropriate network is available. The thunk handler only sends polling requests to protect valuable network bandwidth.
3.6API function
Lists the most important improved mobile network API functions. The Ms_sock-et function creates a new Multi-socket,ms_connect function to connect to the remote endpoint, and the Ms_connect function and the standard Connect function are unique except that the first parameter of the call is Multi-socket. You typically use ms_* to modify your application to replace functions such as socket,connect. The application uses the Ms_begin_irob function to create a new Irob that describes atomic information and ordering constraints through a label. The application calls the Ms_irob_send function to specify the irob portion of the data sent, alternately calling the send and Ms_irob_send functions. The application uses the Ms_end_irob function to notify the library that no Irob data is sent. The Ms_send function call facilitates the creation of a new irob based on all previous irobs and ends the Irob. If the application uses the Ms_send call, it will provide a tagged TCP connection, although it is not reordered. The MS_RECV function call returns a label. The server application wants to reply to a customer request using the label provided by the client's original request. For example, an IMAP server might want to reply to a customer background request with a background tag and reply to a customer foreground request using the foreground tag. Table 2 shows the APIs for creating and using the Multi-sockets mobile network. In addition to the functions shown, multi-sockets supports traditional socket functions, such as Accept,select.
3.7 Discussions
When designing a mobile network interface, consider that an application needs to provide its own events in order to implement application-aware functionality. First, the application needs to discover new network options, open the socket for each network option, and monitor the connection quality of each network in order to determine which network to use for the transmission. Sort by traffic requirements, the application may create multiple sockets per network, and then use a platform-specific approach to prioritize traffic from one set of interfaces to another. Applications also require transport media to span connections to increase throughput, and then manage the data segmentation ordering that inevitably results. Finally, the application may poll to implement Thunk functionality, Thunk allows the link to be modified, and can be deleted if no suitable network is currently available.
4 Communication process of mobile network interface
For each multi-socket, the library dynamically creates a separate TCP socket that determines the data sent by each interface. The Multi-socket connection continues until no TCP connection can use any network interface (for example, if the mobile computer moves out of the WiFi access point range, no other network options are available), or Multi-socket is turned off. For the sake of simplicity, select Use TCP. The TCP reliability mechanism limits the amount of work that must be implemented within Irob to implement command delivery bytes or to retransmit bytes due to network congestion loss. When the first TCP socket establishes an initial connection, the mobile client sends its peer data for each connection, including the available IP addresses, estimated bandwidth, and latency. It is equipped with updated network header information, the companion can establish a new TCP connection, and the new connection will be most suitable for a particular tag data. The Library maps tags to TCP connections using proactive and passive estimation of network bandwidth and latency. When a new network option is found, the Connection Scout provides a preliminary measurement of the quality of the connection. The library sends data through the connection, measuring the response time of a single transmission to produce passive measurements. The connection Scout provides periodic active measurements for evaluating network quality when no data transmission and passive measurements are not available. Active and passive measurements are combined with a trigger filter to get an estimate of the quality of the current connection running. The library uses the following policy to map label TCP connections. Foreground data has the highest priority, and the irobs with the {Foreground,small} tag is sent over a low-latency TCP connection. The irobs with the {Foreground,large} tag is sent over a high-bandwidth connection. These may be the same connection (for example, there is currently only one interface providing connectivity). The actual physical interface used for a particular label may vary over time with the link feature. Background data is lower priority than foreground data. The network sending the foreground data currently does not send background irobs, large background irobs is split into small pieces, each of which may be sent to another network. Foreground tags require low response time; Unfortunately, fragmentation can increase the latency of the last packet unless the network layer correctly predicts the instantaneous delay for each link. In contrast, the data specified by the background tag is not sensitive to latency, so it is ideal to maximize the use of each link in the segmentation strategy. A linked list indexes all Irobs tags in FIFO order. Each TCP connection has a list of currently appropriate send labels. When the network is able to send data, the library pulls the first Irob data from the list associated with the label with the highest priority. The library encapsulates the Irob data with a 32-byte specific network header, including the Irob identifier and its label, and the order constraints of the Irob. In a single connection, the library does not restrict the sending of all Irob bytes, it may decide that a irob is decomposed into small chunks, each of which sends a separate header. IRThe OB block is sent through multiple TCP connections, each Irob word is automatically transmitted in an orderly manner, and the receiving library confirms and reorganizes it. When multiple network applications are executing at the same time, the activities of all processes are reconciled through shared memory variables and synchronization. We assume that the link is close to the bottleneck of the mobile computer, most of which are interested in all path sharing. Therefore, the library instance updates the shared variable, which contains the number of buffers for unsent data on each network. The total amount of such data in all processes must not exceed the limit advance scheduling algorithm, in order to ensure good foreground performance. The network application will adjust its estimation of the quality of the passive observing network during the execution process, and therefore will consider competing traffic in its decision. The library processes connections between two mobile devices and multiple interfaces by establishing a possible interface.
5 Conclusion
Mobile nodes face a variety of changing network options, each with different advantages and disadvantages. Therefore, it is rare for an application to choose the best network option. By using the available options reasonably, the service of the application has been significantly improved. Unfortunately, this exposes the low-level details of the available networks to the application, which is unlikely to cause much attention. The mobile network was designed to solve this impasse. It provides the application with a simple declarative interface to express the intent behind each network message. The system matches the current network traffic to the best available interface. If there is no suitable network available, the traffic is postponed until the network is available. Delaying certain types of traffic can cause reordering. The mobile network interface is designed to provide a mechanism for expressing mutexes and ordering constraints so that their traffic matches the limits of the application.
Reference documents
[1] Yun Shin. Research on key technologies of network mobility support [D]. Southeast University, 2016.
[2] Yangbin, Li Leonard. Research and design of mobile network interface [J]. Computer programming techniques and maintenance, 2016, (02): 38-39+44.
[3] Li Ying. Design and implementation of distributed multi-level mobile-aware multimedia data management and retrieval system [D]. Posts and telecommunications, 2015.
[4] Chi Jie. Design and implementation of network quality assessment system based on customer perception [D]. 2015.
[5] Wang Zihe. Research on Msc-pool technology based on Aoip [D]. Lanzhou Jiaotong University, 2014.
[6] Chai Zhengxiang. Research on the Air interface monitoring system based on software radio [D]. Guangxi Normal University, 2014
[7] Luis P.backfill. A Theory of distribution Camel structure[j].press of caliph.0niauniversity,2001,21.
[8] Louis Stem and ambary.marketing chillier.5thed.upper saddle Riving[j],yinghuiyun.com,prentice hall,2003,14-15.
[9] Coughlin, Anent, Erin Anderson, Louis W. Stefan. El-ambary. Marketing Channels (6thed) [M]. Beijing:tsinghai University press,2001,20.
Article Source: http://www.yinghuiyun.com/fanwen/jisuanji/
Mobile network Interface Design